[packages/lua51] - unified
qboosh
qboosh at pld-linux.org
Sat Oct 31 08:17:13 CET 2020
commit f90093da3e91687f00690513ab8f98be1e7314dd
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Oct 31 08:17:09 2020 +0100
- unified
lua51.spec | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/lua51.spec b/lua51.spec
index 2c8341c..e6cfefc 100644
--- a/lua51.spec
+++ b/lua51.spec
@@ -172,8 +172,10 @@ cp -p %{SOURCE1} %{SOURCE2} .
PLAT=posix \
CC="diet %{__cc}" \
CFLAGS="%{rpmcflags} -Wall -fPIC -Os -DPIC -D_GNU_SOURCE -DLUA_USE_POSIX"
-mv src/lua lua.static
-mv src/luac luac.static
+
+%{__mv} src/lua lua.static
+%{__mv} src/luac luac.static
+
%{__make} clean
%endif
@@ -246,15 +248,14 @@ EOF
for f in lua luac ; do
ln -sf ${f}5.1 $RPM_BUILD_ROOT%{_bindir}/${f}
echo ".so ${f}5.1.1" >$RPM_BUILD_ROOT%{_mandir}/man1/${f}.1
+%if %{with luastatic}
+ ln -sf ${f}5.1.static $RPM_BUILD_ROOT%{_bindir}/${f}.static
+%endif
done
ln -sf liblua5.1.so $RPM_BUILD_ROOT%{_libdir}/liblua.so
ln -sf liblua5.1.a $RPM_BUILD_ROOT%{_libdir}/liblua.a
ln -sf lua5.1 $RPM_BUILD_ROOT%{_includedir}/lua
ln -sf lua5.1.pc $RPM_BUILD_ROOT%{_pkgconfigdir}/lua.pc
-%if %{with luastatic}
-ln -sf lua5.1.static $RPM_BUILD_ROOT%{_bindir}/lua.static
-ln -sf luac5.1.static $RPM_BUILD_ROOT%{_bindir}/luac.static
-%endif
%endif
%clean
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/lua51.git/commitdiff/f90093da3e91687f00690513ab8f98be1e7314dd
More information about the pld-cvs-commit
mailing list