Release: 1
License: MIT
Group: Libraries
-#Source0Download: http://luajit.org/download.html
+# Source0Download: http://luajit.org/download.html
Source0: http://luajit.org/download/LuaJIT-%{version}.tar.gz
# Source0-md5: f14e9104be513913810cd59c8c658dc0
URL: http://luajit.org/
+BuildRequires: sed >= 4.0
ExclusiveArch: %{ix86} %{x8664} arm mips ppc
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%prep
%setup -q -n LuaJIT-%{version}
+# preserve timestamps
+sed -i -e '/install -m/s/-m/-p -m/' Makefile
+
%build
+# Q= - enable verbose output
+# E= @: - disable @echo messages
%{__make} \
CC="%{__cc}" \
CCOPT="%{rpmcflags} -fomit-frame-pointer" \
CCOPT_x86= \
+ MULTILIB=%{_lib} \
E="@:" \
Q=
%install
rm -rf $RPM_BUILD_ROOT
-
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT \
PREFIX=%{_prefix} \