[luajit] Initial import

Igor Gnatenko ignatenkobrain at fedoraproject.org
Tue Dec 3 19:40:51 UTC 2013


commit de7b13ff72cd4efaf51fa94178acd26de3f97a03
Author: Igor Gnatenko <i.gnatenko.brain at gmail.com>
Date:   Tue Dec 3 23:40:40 2013 +0400

    Initial import
    
    Signed-off-by: Igor Gnatenko <i.gnatenko.brain at gmail.com>

 .gitignore  |    1 +
 luajit.spec |  112 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources     |    1 +
 3 files changed, 114 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..3cb4ae4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/LuaJIT-2.0.2.tar.gz
diff --git a/luajit.spec b/luajit.spec
new file mode 100644
index 0000000..def89bd
--- /dev/null
+++ b/luajit.spec
@@ -0,0 +1,112 @@
+Name:           luajit
+Version:        2.0.2
+Release:        6%{?dist}
+Summary:        Just-In-Time Compiler for Lua
+License:        MIT
+URL:            http://luajit.org/
+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}
+Requires:       %{name}%{?_isa} = %{version}-%{release}
+
+%description devel
+This package contains development files for %{name}.
+
+%prep
+%setup -q -n LuaJIT-%{version}
+echo '#!/bin/sh' > ./configure
+chmod +x ./configure
+
+# drop no-stack-protector (besser82)
+sed -i -e '/-fno-stack-protector/s/^/#/' src/Makefile
+
+# drop strip (besser82)
+sed -i -e "/\$\\(TARGET_STRIP\\)/s/^/#/" src/Makefile
+
+# fix .pc (besser82)
+sed -i -e 's!${.*prefix}/lib!%{_libdir}!g' etc/luajit.pc
+
+# preserve timestamps (cicku)
+sed -i -e '/install -m/s/-m/-p -m/' Makefile
+
+%build
+%configure
+# 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}
+
+rm -rf _tmp_html ; mkdir _tmp_html
+cp -a doc _tmp_html/html
+
+# Remove static .a
+find %{buildroot} -type f -name *.a -delete
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files
+%doc COPYRIGHT README
+%{_bindir}/luajit
+%{_libdir}/libluajit*.so.*
+%{_mandir}/man1/luajit*
+%{_datadir}/%{name}-%{version}/
+
+%files devel
+%doc _tmp_html/html/
+%{_includedir}/luajit-2.0/
+%{_libdir}/libluajit*.so
+%{_libdir}/pkgconfig/*.pc
+
+%changelog
+* Mon Dec 02 2013 Igor Gnatenko <i.gnatenko.brain at gmail.com> - 2.0.2-6
+- Fix .pc
+
+* Sun Dec 01 2013 Igor Gnatenko <i.gnatenko.brain at gmail.com> - 2.0.2-5
+- Fixed short-circuit builds (schwendt)
+
+* Sat Nov 30 2013 Igor Gnatenko <i.gnatenko.brain at gmail.com> - 2.0.2-4
+- Preserve timestamps at install
+
+* Fri Nov 29 2013 Igor Gnatenko <i.gnatenko.brain at gmail.com> - 2.0.2-3
+- fixed some issues found by besser82
+- Moved html-docs to -devel subpackage (besser82)
+ 
+* Thu Nov 28 2013 Igor Gnatenko <i.gnatenko.brain at gmail.com> - 2.0.2-2
+- Re-update
+
+* Mon Sep 02 2013 Muayyad Alsadi <alsadi at gmail.com> - 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 <alapshin at gmx.com> - 2.0.0-0.2.beta8
+- Append upstream hotfix #1
+
+* Sun Jul 03 2011 Andrei Lapshin <alapshin at gmx.com> - 2.0.0-0.1.beta8
+- Initial build
diff --git a/sources b/sources
index e69de29..bb29ee1 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+112dfb82548b03377fbefbba2e0e3a5b  LuaJIT-2.0.2.tar.gz


More information about the scm-commits mailing list