forked from pool/lua-luv
Accepting request 713882 from home:mcepl:neovim
Update and final version useable for neovim. OBS-URL: https://build.opensuse.org/request/show/713882 OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-luv?expand=0&rev=4
This commit is contained in:
@@ -1,7 +1,26 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 19 14:26:07 CEST 2019 - Matej Cepl <mcepl@suse.com>
|
||||
Sun Jul 7 19:38:27 CEST 2019 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Let the package build also a dynamic library.
|
||||
- Make system buildable on Fedora/CentOS as well.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jul 4 18:18:59 CEST 2019 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Provide public shared library again.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jul 3 08:05:09 CEST 2019 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Upgrade to 1.30.0-0:
|
||||
- Reduce latency and speed up testing
|
||||
- improve thread and threadpool
|
||||
- more flexible callback support
|
||||
- Simplify callback in thread and threadpool
|
||||
- support custom/external event callback
|
||||
- Speed up by reduce regristry table queries
|
||||
- Allow dns tests that require an internet connection to fail when offline
|
||||
- CMake: use REQUIRED with LuaJIT/Lua
|
||||
- cmake: handle luajit 2.1 (#343)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jun 13 17:01:39 CEST 2019 - Matej Cepl <mcepl@suse.com>
|
||||
|
49
lua-luv.spec
49
lua-luv.spec
@@ -16,13 +16,13 @@
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
%define libluv_sover 1
|
||||
|
||||
%define flavor @BUILD_FLAVOR@
|
||||
%define mod_name luv
|
||||
%define lua_value %(echo "%{flavor}" |sed -e 's:lua::')
|
||||
%define upver 1.29.1-2
|
||||
Version: 1.29.1
|
||||
%define upver 1.30.0-0
|
||||
%define libluv_sover 1
|
||||
|
||||
Version: 1.30.0
|
||||
Release: 0
|
||||
Summary: Bare libuv bindings for lua
|
||||
License: Apache-2.0
|
||||
@@ -32,10 +32,16 @@ Source: https://github.com/luvit/%{mod_name}/archive/%{upver}.tar.gz#/%{
|
||||
BuildRequires: cmake
|
||||
BuildRequires: lua-macros
|
||||
BuildRequires: libuv-devel
|
||||
%if 0%{?suse_version}
|
||||
BuildRequires: %{flavor}-devel
|
||||
BuildRequires: %{flavor}-luafilesystem
|
||||
BuildRequires: %{flavor}-compat-5.3
|
||||
Requires: %{flavor}
|
||||
%else
|
||||
BuildRequires: lua-devel
|
||||
BuildRequires: lua-filesystem
|
||||
BuildRequires: lua-compat53
|
||||
%endif # suse_version
|
||||
%if "%{flavor}" == ""
|
||||
Name: lua-%{mod_name}
|
||||
ExclusiveArch: do_not_build
|
||||
@@ -56,28 +62,29 @@ handles between states/loops.
|
||||
The best docs currently are the libuv docs themselves. Hopfully
|
||||
soon we'll have a copy locally tailored for lua.
|
||||
|
||||
%package -n libluv%{libluv_sover}
|
||||
Summary: libuv bindings for lua as a library
|
||||
Group: System/Libraries
|
||||
|
||||
%description -n libluv%{libluv_sover}
|
||||
This library makes libuv available to lua scripts. It was made
|
||||
for the luvit project but should usable from nearly any lua
|
||||
project.
|
||||
|
||||
%post -n libluv%{libluv_sover} -p /sbin/ldconfig
|
||||
%postun -n libluv%{libluv_sover} -p /sbin/ldconfig
|
||||
|
||||
%package devel
|
||||
Summary: Header files for %{flavor}-%{mod_name}
|
||||
Group: Development/Languages/Other
|
||||
Requires: %{flavor}-%{mod_name} = %{version}
|
||||
Requires: libluv%{libluv_sover} = %{version}
|
||||
Requires: %{flavor}-libluv%{libluv_sover}
|
||||
|
||||
%description devel
|
||||
This subpackage contains header files for developing applications that
|
||||
want to make use of %{flavor}-%{mod_name}.
|
||||
|
||||
%package -n %{flavor}-libluv%{libluv_sover}
|
||||
Summary: Lua bindings for libluv as a library
|
||||
Group: System/Libraries
|
||||
|
||||
%description -n %{flavor}-libluv%{libluv_sover}
|
||||
This library makes libuv available to lua scripts. It was made
|
||||
for the luvit project but should usable from nearly any lua
|
||||
project.
|
||||
|
||||
%post -n %{flavor}-libluv%{libluv_sover} -p /sbin/ldconfig
|
||||
%postun -n %{flavor}-libluv%{libluv_sover} -p /sbin/ldconfig
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n %{mod_name}-%{upver}
|
||||
|
||||
@@ -88,6 +95,7 @@ rm -rf deps
|
||||
rm -fv tests/test-dns.lua
|
||||
|
||||
%build
|
||||
# Build luv.so module
|
||||
cmake -H. -Bbuild -DCMAKE_C_FLAGS="$RPM_OPT_FLAGS" \
|
||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||
-DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_COLOR_MAKEFILE=OFF \
|
||||
@@ -97,7 +105,7 @@ cmake -H. -Bbuild -DCMAKE_C_FLAGS="$RPM_OPT_FLAGS" \
|
||||
-DLUA_BUILD_TYPE=System -DLUA_COMPAT53_DIR="%{lua_incdir}/"
|
||||
( cd build ; make )
|
||||
|
||||
|
||||
# # Build libluv.so shared library
|
||||
cmake -H. -Bbuild -DCMAKE_C_FLAGS="$RPM_OPT_FLAGS" \
|
||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||
-DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_COLOR_MAKEFILE=OFF \
|
||||
@@ -109,9 +117,8 @@ cmake -H. -Bbuild -DCMAKE_C_FLAGS="$RPM_OPT_FLAGS" \
|
||||
|
||||
ls -l build
|
||||
|
||||
|
||||
%install
|
||||
install -v -D -m 0644 -p -t %{buildroot}%{lua_archdir} build/luv.so
|
||||
install -v -D -m 0755 -p -t %{buildroot}%{lua_archdir} build/luv.so
|
||||
install -v -m 0755 -p -t %{buildroot}%{lua_archdir} build/libluv*
|
||||
install -v -D -m 0644 -p -t %{buildroot}%{lua_incdir}/%{mod_name} src/*.h
|
||||
|
||||
@@ -133,7 +140,7 @@ lua tests/run.lua
|
||||
%{lua_incdir}/%{mod_name}/*
|
||||
%{lua_archdir}/libluv.so
|
||||
|
||||
%files -n libluv%{libluv_sover}
|
||||
%files -n %{flavor}-libluv%{libluv_sover}
|
||||
%{lua_archdir}/libluv.so.*
|
||||
|
||||
%changelog
|
||||
|
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:e75d8fd2a14433bb798900a71e45318b3c0b8c2ef2c1c43593482ce95b4999e2
|
||||
size 86609
|
3
luv-1.30.0-0.tar.gz
Normal file
3
luv-1.30.0-0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:6e468fa17bf222ca8ce0bfffdbdf947fc897da48643a12955db92f80e2c852f5
|
||||
size 87491
|
Reference in New Issue
Block a user