#5 Use make macros
Merged 2 years ago by spot. Opened 2 years ago by tbaeder.
rpms/ tbaeder/lua rawhide  into  rawhide

file modified
+3 -3
@@ -121,7 +121,7 @@ 

  

  # 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 @@ 

  

  # 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 @@ 

  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}

Metadata