Use make macros
https://docs.fedoraproject.org/en-US/packaging-guidelines/#_parallel_make
This commit is contained in:
parent
0c7ff179d8
commit
786a69eca4
6
lua.spec
6
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}
|
||||
|
|
Loading…
Reference in New Issue