From d48508b4d63d6d68c3eef78b15a552ebb0147d41a5137cf703bd20da8a3f768b Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Sat, 24 Apr 2021 15:22:06 +0000 Subject: [PATCH] Accepting request 888218 from home:gmbr3:Lua - Update to version 1.41.0: * Fix build with Lua 5.4 * Updated Libuv to 1.40.0 * Fix garbage collection-related memory bug with threads * Make symlink/copyfile bindings more user-friendly - Tests and examples no longer included in tarball - Removed skip-failing-test.patch: no longer applicable OBS-URL: https://build.opensuse.org/request/show/888218 OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-luv?expand=0&rev=27 --- lua-luv.changes | 11 +++++++++++ lua-luv.spec | 29 ++++++----------------------- luv-1.30.1-1.tar.gz | 3 --- luv-1.41.0-0.tar.gz | 3 +++ skip-failing-test.patch | 14 -------------- 5 files changed, 20 insertions(+), 40 deletions(-) delete mode 100644 luv-1.30.1-1.tar.gz create mode 100644 luv-1.41.0-0.tar.gz delete mode 100644 skip-failing-test.patch diff --git a/lua-luv.changes b/lua-luv.changes index 761d654..9337196 100644 --- a/lua-luv.changes +++ b/lua-luv.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Sat Apr 24 15:05:17 UTC 2021 - Callum Farmer + +- Update to version 1.41.0: + * Fix build with Lua 5.4 + * Updated Libuv to 1.40.0 + * Fix garbage collection-related memory bug with threads + * Make symlink/copyfile bindings more user-friendly +- Tests and examples no longer included in tarball +- Removed skip-failing-test.patch: no longer applicable + ------------------------------------------------------------------- Fri Feb 26 11:05:09 UTC 2021 - Callum Farmer diff --git a/lua-luv.spec b/lua-luv.spec index 89c566f..052165a 100644 --- a/lua-luv.spec +++ b/lua-luv.spec @@ -18,7 +18,7 @@ %define mod_name luv -%define upver 1.30.1-1 +%define upver 1.41.0-0 %define libluv_sover 1 %if 0%{?suse_version} %define flavor @BUILD_FLAVOR@ @@ -42,16 +42,13 @@ ExclusiveArch: do_not_build %else Name: %{flavor}-%{mod_name} %endif -Version: 1.30.1 +Version: 1.41.0 Release: 0 Summary: Bare libuv bindings for lua License: Apache-2.0 Group: Development/Languages/Other -URL: https://github.com/luvit/luv -Source: https://github.com/luvit/%{mod_name}/archive/%{upver}.tar.gz#/%{mod_name}-%{upver}.tar.gz -# PATCH-FIX-UPSTREAM skip-failing-test.patch gh#luvit/luv#473 mcepl@suse.com -# skip failing test thread - test thread create with options table -Patch0: skip-failing-test.patch +URL: https://github.com/luvit/%{mod_name} +Source: %{url}/archive/%{upver}/%{mod_name}-%{upver}.tar.gz BuildRequires: libuv-devel BuildRequires: lua-macros %lua_provides @@ -113,14 +110,7 @@ project. %prep echo "Name is %{name}, Flavor is %{flavor}" -%setup -q -n %{mod_name}-%{upver} -%autopatch -p1 - -# Remove bundled dependencies -rm -rf deps - -# Remove network sensitive tests gh#luvit/luv#340 -rm -fv tests/test-dns.lua +%autosetup -n %{mod_name}-%{upver} %build %if %{with public_lib} @@ -158,16 +148,9 @@ install -v -m 0755 -p build/libluv* %{buildroot}%{lua_archdir}/ mkdir -p %{buildroot}%{lua_incdir}/%{mod_name} install -v -m 0644 -p src/*.h %{buildroot}%{lua_incdir}/%{mod_name}/ -# For %%doc -cp -rv lib/ examples/ - -%check -ln -sf build/luv.so . -lua tests/run.lua - %files %license LICENSE.txt -%doc *.md examples/ +%doc *.md %{lua_archdir}/luv.so %files devel diff --git a/luv-1.30.1-1.tar.gz b/luv-1.30.1-1.tar.gz deleted file mode 100644 index 6992e3e..0000000 --- a/luv-1.30.1-1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2b17921e2e18094df6221e3cd291c82d4569e50d8c081518d3e775dceae267cf -size 88948 diff --git a/luv-1.41.0-0.tar.gz b/luv-1.41.0-0.tar.gz new file mode 100644 index 0000000..8b3208b --- /dev/null +++ b/luv-1.41.0-0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4018f293d71c2d75757b64fcdacf982729c9dc8b0bf8eda4015a8818a5a29321 +size 1430613 diff --git a/skip-failing-test.patch b/skip-failing-test.patch deleted file mode 100644 index 31add8c..0000000 --- a/skip-failing-test.patch +++ /dev/null @@ -1,14 +0,0 @@ ---- a/tests/test-thread.lua -+++ b/tests/test-thread.lua -@@ -59,6 +59,11 @@ return require('lib/tap')(function (test - end) - - test("test thread create with options table", function(print, p, expect, uv) -+ local version = 0x10000 + 26*0x100 + 0 -+ if uv.version() < version then -+ print("skipped, requires libuv >= 1.26.0") -+ return -+ end - local delay = 100 - uv.update_time() - local before = uv.now()