forked from pool/lua-luv
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
This commit is contained in:
@@ -1,3 +1,14 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Apr 24 15:05:17 UTC 2021 - Callum Farmer <gmbr3@opensuse.org>
|
||||
|
||||
- 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 <gmbr3@opensuse.org>
|
||||
|
||||
|
29
lua-luv.spec
29
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
|
||||
|
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:2b17921e2e18094df6221e3cd291c82d4569e50d8c081518d3e775dceae267cf
|
||||
size 88948
|
3
luv-1.41.0-0.tar.gz
Normal file
3
luv-1.41.0-0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:4018f293d71c2d75757b64fcdacf982729c9dc8b0bf8eda4015a8818a5a29321
|
||||
size 1430613
|
@@ -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()
|
Reference in New Issue
Block a user