10
0
forked from pool/lua-luasocket

Accepting request 998383 from home:Pi-Cla:branches:devel:languages:lua

rebase: luasocket-makefile.patch
fix: W: package-with-huge-docs 69%
- Create a speperate doc package, lua*-luasocket will recommend it
fix: update URL

- Update to version 3.1.0:
  * chore: Release v3.1.0
  * ci: Echo correct platform in job title
  * fix(build): Use gai_strerrorA not gai_strerror on Windows
  * feat(tcp): Add support for TCP Defer Accept
  * feat(tcp): Add support for TCP Fast Open
  * chore(rockspec): Move recent PR change to proper rockspec (#384)
  * fix(rockspec): Fixup Windows (mingw32) builds (#383)
  * chore: Update internal version references to match release (#370)
  * chore: Release v3.0.0
  * chore: Copy-edit description in dev rockspec

OBS-URL: https://build.opensuse.org/request/show/998383
OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-luasocket?expand=0&rev=26
This commit is contained in:
2022-08-20 18:18:34 +00:00
committed by Git OBS Bridge
parent da87d6588c
commit c02621eb85
6 changed files with 50 additions and 19 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package lua-luasocket
# spec file
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,12 +18,12 @@
%define flavor @BUILD_FLAVOR@
%define mod_name luasocket
Version: 3.0~rc1+git20170515.5a17f79
Version: 3.1.0
Release: 0
Summary: Network support for the Lua language
License: MIT
Group: Development/Languages/Other
URL: https://github.com/diegonehab/luasocket
URL: https://github.com/lunarmodules/luasocket
Source: %{mod_name}-%{version}.tar.xz
Patch0: luasocket-makefile.patch
BuildRequires: %{flavor}-devel
@@ -35,6 +35,7 @@ Name: lua-%{mod_name}
ExclusiveArch: do_not_build
%else
Name: %{flavor}-%{mod_name}
Recommends: %{flavor}-%{mod_name}-doc
%endif
%description
@@ -55,6 +56,14 @@ Requires: %{flavor}-%{mod_name} = %{version}
This subpackage contains header files for developing applications that
want to make use of %{flavor}-%{mod_name}.
%package doc
Summary: Documentation for %{flavor}-%{mod_name}
Group: Development/Languages/Other
BuildArch: noarch
%description doc
This subpackage contains documentation for %{flavor}-%{mod_name}.
%prep
%setup -q -n %{mod_name}-%{version}
%patch0 -p1
@@ -73,8 +82,6 @@ install -p -m 0644 src/*.h %{buildroot}%{lua_incdir}
%files
%license LICENSE
%doc doc/*
%doc README
%{lua_archdir}/mime
%{lua_archdir}/socket
%{lua_noarchdir}/ltn12.lua
@@ -85,4 +92,8 @@ install -p -m 0644 src/*.h %{buildroot}%{lua_incdir}
%files devel
%{lua_incdir}/*.h
%files doc
%doc docs/*
%doc README.md
%changelog