Name: luajit Version: 2.0.2 Release: 1%{?dist} Summary: Just-In-Time Compiler for Lua Group: Development/Languages License: MIT URL: http://luajit.org/luajit.html Source0: http://luajit.org/download/LuaJIT-%{version}.tar.gz %description LuaJIT implements the full set of language features defined by Lua 5.1. The virtual machine (VM) is API- and ABI-compatible to the standard Lua interpreter and can be deployed as a drop-in replacement. %package devel Summary: Development files for %{name} Group: Development/Libraries Requires: %{name}%{?_isa} = %{version}-%{release} Requires: pkgconfig %description devel This package contains development files for %{name}. %package static Summary: Static library for %{name} Group: Development/Libraries Requires: %{name}%{?_isa} = %{version}-%{release} %description static This package contains the static version of libluajit for %{name}. %prep %setup -q -n LuaJIT-%{version} %build # Q= - enable verbose output # E= @: - disable @echo messages # NOTE: we use amalgamated build as per documentation suggestion doc/install.html make amalg Q= E=@: PREFIX=%{_prefix} \ INSTALL_LIB=%{_libdir} CFLAGS="%{optflags}" %{?_smp_mflags} %install # PREREL= - disable -betaX suffix # INSTALL_TNAME - executable name make install INSTALL_TNAME=%{name} PREFIX=%{_prefix} \ INSTALL_LIB=%{buildroot}%{_libdir} DESTDIR=%{buildroot} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files # %%defattr(-,root,root,-) # no longer needed %doc COPYRIGHT README doc/*.html doc/*.css doc/img/*.png %{_bindir}/luajit %{_libdir}/libluajit*.so.* %{_mandir}/man1/luajit* %{_datadir}/%{name}-%{version}/ # directories that might contain libraries/modules %dir %{_libdir}/lua %dir %{_libdir}/lua/5.1 %dir %{_datadir}/lua %dir %{_datadir}/lua/5.1 %files devel %defattr(-,root,root,-) %{_includedir}/luajit-2.0/l*.h %{_includedir}/luajit-2.0/l*.hpp %{_libdir}/libluajit*.so %{_libdir}/pkgconfig/*.pc %dir %{_includedir}/luajit-2.0 %files static %defattr(-,root,root,-) %{_libdir}/*.a %changelog * Mon Sep 02 2013 Muayyad Alsadi - 2.0.2-1 - Update to new upstream version - remove PREREL= option * Mon Feb 06 2012 Andrei Lapshin - 2.0.0-0.4.beta9 - Update to new upstream version - Rename main executable to luajit - Remove BuildRoot tag and %%clean section * Sun Oct 09 2011 Andrei Lapshin - 2.0.0-0.3.beta8 - Enable debug build - Enable verbose build output - Move libluajit-*.so to -devel - Add link to upstream hotfix #1 * Tue Jul 05 2011 Andrei Lapshin - 2.0.0-0.2.beta8 - Append upstream hotfix #1 * Sun Jul 03 2011 Andrei Lapshin - 2.0.0-0.1.beta8 - Initial build