From c02621eb85d3f4a908ed2ab161f1c92bae25b2932305382d9ca7ea0782ada17a Mon Sep 17 00:00:00 2001 From: Callum Farmer Date: Sat, 20 Aug 2022 18:18:34 +0000 Subject: [PATCH] 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 --- _service | 4 ++-- lua-luasocket.changes | 23 ++++++++++++++++++++ lua-luasocket.spec | 23 +++++++++++++++----- luasocket-3.0~rc1+git20170515.5a17f79.tar.xz | 3 --- luasocket-3.1.0.tar.xz | 3 +++ luasocket-makefile.patch | 13 +++++------ 6 files changed, 50 insertions(+), 19 deletions(-) delete mode 100644 luasocket-3.0~rc1+git20170515.5a17f79.tar.xz create mode 100644 luasocket-3.1.0.tar.xz diff --git a/_service b/_service index 6417984..d1dc00c 100644 --- a/_service +++ b/_service @@ -1,10 +1,10 @@ - https://github.com/diegonehab/luasocket.git + https://github.com/lunarmodules/luasocket.git git enable luasocket - 3.0~rc1+git%cd.%h + 3.1.0 *.tar diff --git a/lua-luasocket.changes b/lua-luasocket.changes index 9070e27..6b54e74 100644 --- a/lua-luasocket.changes +++ b/lua-luasocket.changes @@ -1,3 +1,26 @@ +------------------------------------------------------------------- +Sat Aug 20 17:43:12 UTC 2022 - Gordon Leung + +rebase: luasocket-makefile.patch +fix: W: package-with-huge-docs 69% +- Create a speperate doc package, lua*-luasocket will recommend it +fix: update URL + +------------------------------------------------------------------- +Sat Aug 20 06:55:28 UTC 2022 - pirateclip@protonmail.com + +- 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 + ------------------------------------------------------------------- Sun Jul 11 16:15:33 UTC 2021 - Callum Farmer diff --git a/lua-luasocket.spec b/lua-luasocket.spec index fb990a9..eb858a5 100644 --- a/lua-luasocket.spec +++ b/lua-luasocket.spec @@ -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 diff --git a/luasocket-3.0~rc1+git20170515.5a17f79.tar.xz b/luasocket-3.0~rc1+git20170515.5a17f79.tar.xz deleted file mode 100644 index f4b4a98..0000000 --- a/luasocket-3.0~rc1+git20170515.5a17f79.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9cc8eba1531179c7ed67e3ec30aec74863ccb9d73e32a3cf8032fc8390255bac -size 228132 diff --git a/luasocket-3.1.0.tar.xz b/luasocket-3.1.0.tar.xz new file mode 100644 index 0000000..f088e3f --- /dev/null +++ b/luasocket-3.1.0.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9b05313fe17ec6325549fb0c68732fd71584bdabf06c64d3e4a95a7c37f487f5 +size 231732 diff --git a/luasocket-makefile.patch b/luasocket-makefile.patch index f8681b3..2084014 100644 --- a/luasocket-makefile.patch +++ b/luasocket-makefile.patch @@ -2,14 +2,11 @@ diff --git a/src/makefile b/src/makefile index 494baab..fb56ba4 100644 --- a/src/makefile +++ b/src/makefile -@@ -169,9 +169,9 @@ DEF_linux=-DLUASOCKET_$(DEBUG) \ - -DLUASOCKET_API='__attribute__((visibility("default")))' \ - -DUNIX_API='__attribute__((visibility("default")))' \ - -DMIME_API='__attribute__((visibility("default")))' --CFLAGS_linux= -I$(LUAINC) $(DEF) -Wall -Wshadow -Wextra \ -- -Wimplicit -O2 -ggdb3 -fpic -fvisibility=hidden --LDFLAGS_linux=-O -shared -fpic -o -+CFLAGS_linux= -I$(LUAINC) $(DEF) $(OPTFLAGS) -Wall -Wshadow -Wextra \ +@@ -177,6 +177,6 @@ DEF_linux=-DLUASOCKET_$(DEBUG) \ +-CFLAGS_linux=$(LUAINC:%=-I%) $(DEF) -Wall -Wshadow -Wextra \ +- -Wimplicit -O2 -ggdb3 -fpic +-LDFLAGS_linux=-O -shared -fpic -o ++CFLAGS_linux=$(LUAINC:%=-I%) $(DEF) $(OPTFLAGS) -Wall -Wshadow -Wextra \ + -Wimplicit -fpic -fvisibility=hidden +LDFLAGS_linux=-O $(OPTFLAGS) -shared -fpic -o LD_linux=gcc