From 786a69eca4a9dcaa95c1cbf2036518d1e4574056 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Tue, 4 May 2021 18:15:29 +0200 Subject: [PATCH] Use make macros https://docs.fedoraproject.org/en-US/packaging-guidelines/#_parallel_make --- lua.spec | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lua.spec b/lua.spec index 11d662b..1bee11a 100644 --- a/lua.spec +++ b/lua.spec @@ -121,7 +121,7 @@ sed -i 's|@pkgdatadir@|%{_datadir}|g' src/luaconf.h.template # hack so that only /usr/bin/lua gets linked with readline as it is the # only one which needs this and otherwise we get License troubles -make %{?_smp_mflags} LIBS="-lm -ldl" +%make_build LIBS="-lm -ldl" # only /usr/bin/lua links with readline now #luac_LDADD="liblua.la -lm -ldl" %if 0%{?bootstrap} @@ -134,7 +134,7 @@ sed -i 's|@pkgdatadir@|%{_datadir}|g' src/luaconf.h.template # hack so that only /usr/bin/lua gets linked with readline as it is the # only one which needs this and otherwise we get License troubles -make %{?_smp_mflags} LIBS="-lm -ldl" luac_LDADD="liblua.la -lm -ldl" +%make_build LIBS="-lm -ldl" luac_LDADD="liblua.la -lm -ldl" popd %endif @@ -158,7 +158,7 @@ sed -i.orig -e ' LD_LIBRARY_PATH=$RPM_BUILD_ROOT/%{_libdir} $RPM_BUILD_ROOT/%{_bindir}/lua -e"_U=true" all.lua %install -make install DESTDIR=$RPM_BUILD_ROOT +%make_install rm $RPM_BUILD_ROOT%{_libdir}/*.la mkdir -p $RPM_BUILD_ROOT%{_libdir}/lua/%{major_version} mkdir -p $RPM_BUILD_ROOT%{_datadir}/lua/%{major_version}