%define luajit_version 2.1 %define luajit_date_version 20210510 %define luajit_bin_version 2.1.0-beta3 Name: luajit Version: %{luajit_version}.%{luajit_date_version} Release: 1%{?dist} Summary: Just-In-Time Compiler for Lua License: MIT URL: http://luajit.org/ Source0: https://github.com/openresty/luajit2/archive/v%{luajit_version}-%{luajit_date_version}.tar.gz#/luajit2-%{luajit_version}-%{luajit_date_version}.tar.gz %if 0%{?rhel} ExclusiveArch: %{ix86} x86_64 %endif %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. This package uses the OpenResty's fork of LuaJIT 2. https://github.com/openresty/luajit2 %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 luajit2-%{luajit_version}-%{luajit_date_version} echo '#!/bin/sh' > ./configure chmod +x ./configure # preserve timestamps (cicku) sed -i -e '/install -m/s/-m/-p -m/' Makefile %ifarch x86_64 %global multilib_flag MULTILIB=lib64 %endif %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} TARGET_STRIP=: \ CFLAGS="%{optflags}" \ %{?multilib_flag} \ %{?_smp_mflags} %install # PREREL= - disable -betaX suffix # INSTALL_TNAME - executable name %make_install PREFIX=%{_prefix} \ %{?multilib_flag} 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 %license COPYRIGHT %doc README %{_bindir}/%{name} %{_bindir}/%{name}-%{luajit_bin_version} %{_libdir}/libluajit*.so.* %{_mandir}/man1/luajit* %{_datadir}/%{name}-%{luajit_bin_version}/ %files devel %doc _tmp_html/html/ %{_includedir}/luajit-2.1/ %{_libdir}/libluajit*.so %{_libdir}/pkgconfig/*.pc %changelog * Wed Jul 07 2021 Hiroaki Nakamura - 2.1.20210510-1 - 2.1.20210510 * Wed Feb 17 2021 Hiroaki Nakamura - 2.1.20201229-1 - 2.1.20201229 * Wed Oct 28 2020 Hiroaki Nakamura - 2.1.20201027-1 - 2.1.20201027 * Tue Jan 21 2020 Hiroaki Nakamura - 2.1.20200102-1 - 2.1.20200102 * Sat Sep 14 2019 Hiroaki Nakamura - 2.1.20190912-1 - 2.1.20190912 * Mon Jul 22 2019 Hiroaki Nakamura - 2.1.20190626-1 - 2.1.20190626 * Wed Jun 26 2019 Hiroaki Nakamura - 2.1.20190530-1 - 2.1.20190530 * Thu Apr 18 2019 Hiroaki Nakamura - 2.1.20190329-1 - 2.1.20190329 * Wed Mar 27 2019 Hiroaki Nakamura - 2.1.20190302-1 - 2.1.20190302 * Wed Feb 27 2019 Hiroaki Nakamura - 2.1.20190221-1 - 2.1.20190221 * Tue Feb 12 2019 Hiroaki Nakamura - 2.1.20181029-1 - 2.1.20181029 * Wed Nov 07 2018 Hiroaki Nakamura - 2.1.20181029-1 - 2.1.20181029 * Wed Jun 06 2018 Hiroaki Nakamura - 2.1.20180420-1 - 2.1.20180420 * Wed Nov 08 2017 Hiroaki Nakamura - 2.1.20171103-1 - 2.1.20171103 * Tue Oct 03 2017 Hiroaki Nakamura - 2.1.20170925-1 - 2.1.20170925 * Wed Aug 09 2017 Hiroaki Nakamura - 2.1.20170808-1 - 2.1.20170808 * Mon Jun 12 2017 Hiroaki Nakamura - 2.1.20170517-1 - 2.1.20170517 * Mon Apr 10 2017 Hiroaki Nakamura - 2.1.20170405-1 - 2.1.20170405 * Thu Nov 10 2016 Hiroaki Nakamura - 2.1.20161104-1 - Switch to the OpenResty's fork of LuaJIT 2, version 2.1-20161104 * Fri Aug 07 2015 Oliver Haessler - 2.0.4-3 - only build x86_64 on EPEL as luajit has no support for ppc64 * Wed Jun 17 2015 Fedora Release Engineering - 2.0.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Thu May 21 2015 Igor Gnatenko - 2.0.4-1 - 2.0.4 * Sun Aug 17 2014 Fedora Release Engineering - 2.0.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Wed Jul 09 2014 Igor Gnatenko - 2.0.3-3 - rebuild against lua 5.2 * Sat Jun 07 2014 Fedora Release Engineering - 2.0.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Thu Mar 13 2014 Igor Gnatenko - 2.0.3-1 - 2.0.3 upstream release * Sun Dec 15 2013 Clive Messer - 2.0.2-9 - Apply luajit-path64.patch on x86_64. * Mon Dec 09 2013 Igor Gnatenko - 2.0.2-8 - Fix strip (thanks Ville Skyttä) * Fri Dec 06 2013 Igor Gnatenko - 2.0.2-7 - Fix executable binary * Mon Dec 02 2013 Igor Gnatenko - 2.0.2-6 - Fix .pc * Sun Dec 01 2013 Igor Gnatenko - 2.0.2-5 - Fixed short-circuit builds (schwendt) * Sat Nov 30 2013 Igor Gnatenko - 2.0.2-4 - Preserve timestamps at install * Fri Nov 29 2013 Igor Gnatenko - 2.0.2-3 - fixed some issues found by besser82 - Moved html-docs to -devel subpackage (besser82) * Thu Nov 28 2013 Igor Gnatenko - 2.0.2-2 - Re-update * 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