SHA256
10
0
forked from pool/lua-luv

Accepting request 793421 from home:mcepl:neovim

- We don't need to define macros, when lua-macros is finally
  fixed.

OBS-URL: https://build.opensuse.org/request/show/793421
OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-luv?expand=0&rev=18
This commit is contained in:
2020-04-12 15:52:47 +00:00
committed by Git OBS Bridge
parent a60bd34565
commit a9ec51ae90
2 changed files with 11 additions and 7 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sun Apr 12 12:30:52 UTC 2020 - Matej Cepl <mcepl@suse.com>
- We don't need to define macros, when lua-macros is finally
fixed.
-------------------------------------------------------------------
Sat Apr 11 07:01:18 UTC 2020 - Matej Cepl <mcepl@suse.com>

View File

@@ -33,10 +33,6 @@ BuildRequires: cmake
%endif
%if 0%{?fedora} || 0%{?rhel}
%define flavor lua
%define lua_version %(lua -e 'print(_VERSION)' | cut -d ' ' -f 2)
%define lua_archdir %{_libdir}/lua/%{lua_version}
%define lua_noarchdir %{_datadir}/lua/%{lua_version}
%define lua_incdir %{_includedir}/lua%{lua_version}
%endif
%bcond_with public_lib
%define lua_value %(echo "%{flavor}" |sed -e 's:lua::')
@@ -153,11 +149,13 @@ rm -fv tests/test-dns.lua
find build -name \*.so\*
%install
install -v -D -m 0755 -p -t %{buildroot}%{lua_archdir} build/luv.so
install -v -D -m 0755 -p build/luv.so %{buildroot}%{lua_archdir}/luv.so
%if %{with public_lib}
install -v -m 0755 -p -t %{buildroot}%{lua_archdir} build/libluv*
mkdir -p %{buildroot}%{lua_archdir}/
install -v -m 0755 -p build/libluv* %{buildroot}%{lua_archdir}/
%endif
install -v -D -m 0644 -p -t %{buildroot}%{lua_incdir}/%{mod_name} src/*.h
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/