forked from pool/lua-luv
Accepting request 711144 from home:mcepl:neovim
Fix request. OBS-URL: https://build.opensuse.org/request/show/711144 OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-luv?expand=0&rev=3
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 19 14:26:07 CEST 2019 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Let the package build also a dynamic library.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jun 13 17:01:39 CEST 2019 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
|
37
lua-luv.spec
37
lua-luv.spec
@@ -16,9 +16,9 @@
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
%define libluv_sover 1
|
||||
|
||||
# %%define flavor @BUILD_FLAVOR@
|
||||
%define flavor lua51
|
||||
%define flavor @BUILD_FLAVOR@
|
||||
%define mod_name luv
|
||||
%define lua_value %(echo "%{flavor}" |sed -e 's:lua::')
|
||||
%define upver 1.29.1-2
|
||||
@@ -56,10 +56,23 @@ 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}
|
||||
|
||||
%description devel
|
||||
This subpackage contains header files for developing applications that
|
||||
@@ -75,6 +88,16 @@ rm -rf deps
|
||||
rm -fv tests/test-dns.lua
|
||||
|
||||
%build
|
||||
cmake -H. -Bbuild -DCMAKE_C_FLAGS="$RPM_OPT_FLAGS" \
|
||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||
-DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_COLOR_MAKEFILE=OFF \
|
||||
-DBUILD_STATIC_LIBS=OFF -DCMAKE_INSTALL_DO_STRIP=OFF \
|
||||
-DBUILD_MODULE=OFF -DBUILD_SHARED_LIBS=ON \
|
||||
-DWITH_SHARED_LIBUV=ON -DWITH_LUA_ENGINE=Lua \
|
||||
-DLUA_BUILD_TYPE=System -DLUA_COMPAT53_DIR="%{lua_incdir}/"
|
||||
( cd build ; make )
|
||||
|
||||
|
||||
cmake -H. -Bbuild -DCMAKE_C_FLAGS="$RPM_OPT_FLAGS" \
|
||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||
-DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_COLOR_MAKEFILE=OFF \
|
||||
@@ -82,12 +105,14 @@ cmake -H. -Bbuild -DCMAKE_C_FLAGS="$RPM_OPT_FLAGS" \
|
||||
-DBUILD_MODULE=ON -DBUILD_SHARED_LIBS=ON \
|
||||
-DWITH_SHARED_LIBUV=ON -DWITH_LUA_ENGINE=Lua \
|
||||
-DLUA_BUILD_TYPE=System -DLUA_COMPAT53_DIR="%{lua_incdir}/"
|
||||
cd build
|
||||
make
|
||||
( cd build ; make )
|
||||
|
||||
ls -l build
|
||||
|
||||
|
||||
%install
|
||||
install -v -D -m 0644 -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
|
||||
|
||||
# For %%doc
|
||||
@@ -106,5 +131,9 @@ lua tests/run.lua
|
||||
%license LICENSE.txt
|
||||
%dir %{lua_incdir}/%{mod_name}
|
||||
%{lua_incdir}/%{mod_name}/*
|
||||
%{lua_archdir}/libluv.so
|
||||
|
||||
%files -n libluv%{libluv_sover}
|
||||
%{lua_archdir}/libluv.so.*
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user