Compare commits
25 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
eb9b55cb85 | ||
|
|
0a26f58b25 | ||
|
|
a991d71a64 | ||
|
|
0abdb434ef | ||
|
|
2b4fcf685a | ||
|
|
272698d73d | ||
|
|
4f3ef8f24c | ||
|
|
6375dbc3e0 | ||
|
|
59d1e202ba | ||
|
|
19104fbe8f | ||
|
|
cf2d0da41f | ||
|
|
a578cb7d08 | ||
|
|
a2b9554e9f | ||
|
|
c705b186ce | ||
|
|
a6ae8b3d73 | ||
|
|
91295253fd | ||
|
|
d46908f948 | ||
|
|
4735fa65eb | ||
|
|
844775d91c | ||
|
|
6624593a3c | ||
|
|
3e7ab73c13 | ||
|
|
0a96623703 | ||
|
|
2a87cf278a | ||
|
|
c19899ad33 | ||
|
|
b9c7242352 |
9 changed files with 7494 additions and 226424 deletions
10
.gitignore
vendored
10
.gitignore
vendored
|
|
@ -3,3 +3,13 @@
|
|||
/LuaJIT-2.0.4.tar.gz
|
||||
/LuaJIT-2.1.0-beta2.tar.gz
|
||||
/LuaJIT-2.1.0-beta3.tar.gz
|
||||
/LuaJIT-2.1.1692716794.tar.gz
|
||||
/LuaJIT-test-cleanup.tar.gz
|
||||
/LuaJIT-2.1.1707061634.tar.gz
|
||||
/LuaJIT-2.1.1713773202.tar.gz
|
||||
/LuaJIT-2.1.1720049189.tar.gz
|
||||
/LuaJIT-2.1.1724232689.tar.gz
|
||||
/LuaJIT-2.1.1731485912.tar.gz
|
||||
/LuaJIT-2.1.1744318430.tar.gz
|
||||
/LuaJIT-2.1.1748459687.tar.gz
|
||||
/LuaJIT-2.1.1761727121.tar.gz
|
||||
|
|
|
|||
186
changelog
Normal file
186
changelog
Normal file
|
|
@ -0,0 +1,186 @@
|
|||
* Fri Mar 01 2024 Andreas Schneider <asn@redhat.com> - 2.1.1707061634-2
|
||||
- Add support for s390x
|
||||
resolves: rhbz#2222911
|
||||
|
||||
* Thu Feb 22 2024 Andreas Schneider <asn@redhat.com> - 2.1.1707061634-1
|
||||
- Update to version 2.1.1707061634
|
||||
|
||||
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.1692716794-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.1692716794-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Sat Aug 26 2023 Andreas Schneider <asn@redhat.com> - 2.1.1692716794-1
|
||||
- Update to rolling release version of luajit
|
||||
- Adapted patches and cleaned up spec file
|
||||
|
||||
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-0.28beta3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||
|
||||
* Sun Mar 12 2023 Andreas Schneider <asn@redhat.com> - 2.1.0-0.27beta3
|
||||
- Update to latest luajit v2.1 git version
|
||||
|
||||
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-0.26beta3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||
|
||||
* Sun Aug 21 2022 Andreas Schneider <asn@redhat.com> - 2.1.0-0.25beta3
|
||||
- Update to latest luajit v2.1 git version
|
||||
|
||||
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-0.24beta3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||
|
||||
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-0.23beta3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
* Tue Oct 26 2021 Siddhesh Poyarekar <siddhesh@gotplt.org> - 2.1.0-0.22beta3
|
||||
- Bring back the earlier code to do ln -sf.
|
||||
|
||||
* Tue Oct 12 2021 Andreas Schneider <asn@redhat.com> - 2.1.0-0.21beta3
|
||||
- Rebase onto https://github.com/LuaJIT/LuaJIT/tree/v2.1
|
||||
- Dropped support for ppc64le
|
||||
- Dropped support for s390x
|
||||
|
||||
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-0.20beta3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||
|
||||
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-0.19beta3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-0.18beta3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-0.17beta3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
* Wed Sep 25 2019 Siddhesh Poyarekar <sid@reserved-bit.com> - 2.1.0-0.16beta3
|
||||
- New API functions jit.prngstate and thread.exdata from OpenResty.
|
||||
- Bug fixes in ppc64le and aarch64.
|
||||
- Optimised string hash function for SSE4.2
|
||||
- Miscellaneous bug fixes.
|
||||
|
||||
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-0.16beta3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||
|
||||
* Tue Jun 25 2019 Siddhesh Poyarekar <sid@reserved-bit.com> - 2.1.0-0.15beta3
|
||||
- Port JIT features and fixes from openresty/luajit2.
|
||||
|
||||
* Wed Jun 19 2019 Siddhesh Poyarekar <sid@reserved-bit.com> - 2.1.0-0.14beta3
|
||||
- Patch for PPC64 support.
|
||||
|
||||
* Wed Jun 19 2019 Siddhesh Poyarekar <sid@reserved-bit.com> - 2.1.0-0.13beta3
|
||||
- arm: Fix up condition codes for conditional arithmetic insn.
|
||||
- bugfix: fixed a segfault when unsinking 64-bit pointers.
|
||||
- Remove setrlimit on FreeBSD.
|
||||
- test: Check for package.searchers only in compat5.2.
|
||||
|
||||
* Mon Jun 17 07:10:20 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.1.0-0.12beta3
|
||||
- Enable Lua 5.2 compatibility
|
||||
|
||||
* Wed Apr 24 2019 Siddhesh Poyarekar <sid@reserved-bit.com> - 2.1.0-0.11beta3
|
||||
- Add s390x support.
|
||||
|
||||
* Fri Apr 12 2019 Siddhesh Poyarekar <sid@reserved-bit.com> - 2.1.0-0.10beta3
|
||||
- Add upstream bug fixes from the v2.1 branch.
|
||||
- Add bug fixes from https://github.com/siddhesh/LuaJIT.git
|
||||
- Incorporate tests and benchmarks from LuaJIT-test-cleanup.
|
||||
|
||||
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-0.9beta3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-0.8beta3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-0.7beta3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||
|
||||
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-0.6beta3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
||||
|
||||
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-0.5beta3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||
|
||||
* Mon May 15 2017 Tom Callaway <spot@fedoraproject.org> - 2.1.0-0.4beta3
|
||||
- Update to 2.1.0-beta3
|
||||
|
||||
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-0.3beta2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||
|
||||
* Mon Aug 29 2016 Igor Gnatenko <ignatenko@redhat.com> - 2.1.0-0.2beta2
|
||||
- Add aarch64 to ExclusiveArch
|
||||
|
||||
* Mon Aug 29 2016 Igor Gnatenko <ignatenko@redhat.com> - 2.1.0-0.1beta2
|
||||
- Update to 2.1.0-beta2 (RHBZ #1371158)
|
||||
|
||||
* Mon May 09 2016 Dan Horák <dan[at]danny.cz> - 2.0.4-5
|
||||
- set ExclusiveArch also for Fedora
|
||||
|
||||
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.4-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||
|
||||
* Fri Aug 07 2015 Oliver Haessler <oliver@redhat.com> - 2.0.4-3
|
||||
- only build x86_64 on EPEL as luajit has no support for ppc64
|
||||
|
||||
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.4-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||
|
||||
* Thu May 21 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.4-1
|
||||
- 2.0.4
|
||||
|
||||
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.3-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
||||
|
||||
* Wed Jul 09 2014 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.3-3
|
||||
- rebuild against lua 5.2
|
||||
|
||||
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.3-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||
|
||||
* Thu Mar 13 2014 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.3-1
|
||||
- 2.0.3 upstream release
|
||||
|
||||
* Sun Dec 15 2013 Clive Messer <clive.messer@communitysqueeze.org> - 2.0.2-9
|
||||
- Apply luajit-path64.patch on x86_64.
|
||||
|
||||
* Mon Dec 09 2013 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.2-8
|
||||
- Fix strip (thanks Ville Skyttä)
|
||||
|
||||
* Fri Dec 06 2013 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.2-7
|
||||
- Fix executable binary
|
||||
|
||||
* Mon Dec 02 2013 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.2-6
|
||||
- Fix .pc
|
||||
|
||||
* Sun Dec 01 2013 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.2-5
|
||||
- Fixed short-circuit builds (schwendt)
|
||||
|
||||
* Sat Nov 30 2013 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.2-4
|
||||
- Preserve timestamps at install
|
||||
|
||||
* Fri Nov 29 2013 Igor Gnatenko <i.gnatenko.brain@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@gmail.com> - 2.0.2-2
|
||||
- Re-update
|
||||
|
||||
* Mon Sep 02 2013 Muayyad Alsadi <alsadi@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@gmx.com> - 2.0.0-0.2.beta8
|
||||
- Append upstream hotfix #1
|
||||
|
||||
* Sun Jul 03 2011 Andrei Lapshin <alapshin@gmx.com> - 2.0.0-0.1.beta8
|
||||
- Initial build
|
||||
188730
luajit-2.1-fedora.patch
188730
luajit-2.1-fedora.patch
File diff suppressed because it is too large
Load diff
157
luajit-2.1-make-check.patch
Normal file
157
luajit-2.1-make-check.patch
Normal file
|
|
@ -0,0 +1,157 @@
|
|||
From fdd83775c8e0e6a4e0ffd30dacd0b841bd243820 Mon Sep 17 00:00:00 2001
|
||||
From: Siddhesh Poyarekar <siddhesh@sourceware.org>
|
||||
Date: Thu, 21 Oct 2021 11:04:58 +0200
|
||||
Subject: [PATCH] Update Makefile to run LuaJIT-test-cleanup
|
||||
|
||||
The tests and benchmarks in the LuaJIT-test-cleanup repo are more or
|
||||
less complete and with scaffolding added, they can now be called
|
||||
seamlessly from within the luajit sources using `make check` and `make
|
||||
bench` respectively.
|
||||
---
|
||||
Makefile | 17 ++++++++++++---
|
||||
bench/Makefile | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
2 files changed, 70 insertions(+), 3 deletions(-)
|
||||
create mode 100644 bench/Makefile
|
||||
|
||||
Index: LuaJIT-2.1/Makefile
|
||||
===================================================================
|
||||
--- LuaJIT-2.1.orig/Makefile 2023-08-29 08:35:57.939200606 +0200
|
||||
+++ LuaJIT-2.1/Makefile 2023-08-29 08:40:59.284925468 +0200
|
||||
@@ -118,14 +118,14 @@ endif
|
||||
|
||||
##############################################################################
|
||||
|
||||
-INSTALL_DEP= src/luajit
|
||||
+LUAJIT_BIN= src/luajit
|
||||
|
||||
default all $(INSTALL_DEP):
|
||||
@echo "==== Building LuaJIT $(MMVERSION) ===="
|
||||
$(MAKE) -C src
|
||||
@echo "==== Successfully built LuaJIT $(MMVERSION) ===="
|
||||
|
||||
-install: $(INSTALL_DEP)
|
||||
+install: $(LUAJIT_BIN)
|
||||
@echo "==== Installing LuaJIT $(VERSION) to $(PREFIX) ===="
|
||||
$(MKDIR) $(INSTALL_DIRS)
|
||||
cd src && $(INSTALL_X) $(FILE_T) $(INSTALL_T)
|
||||
@@ -158,6 +158,17 @@ uninstall:
|
||||
$(RMDIR) $(UNINSTALL_DIRS) || :
|
||||
@echo "==== Successfully uninstalled LuaJIT $(VERSION) from $(PREFIX) ===="
|
||||
|
||||
+check: $(LUAJIT_BIN)
|
||||
+ @echo "==== Running tests for LuaJIT $(VERSION) ===="
|
||||
+ $^ test/test.lua
|
||||
+ @echo "==== All tests for LuaJIT $(VERSION) succeeded ===="
|
||||
+
|
||||
+# It is assumed that libluajit.a is built in the process of building LUAJIT_BIN.
|
||||
+bench: $(LUAJIT_BIN)
|
||||
+ @echo "==== Running benchmark for LuaJIT $(VERSION) ===="
|
||||
+ make -C bench FILE_A=$(FILE_A)
|
||||
+ @echo "==== Successfully finished running benchmark for LuaJIT $(VERSION) ===="
|
||||
+
|
||||
##############################################################################
|
||||
|
||||
amalg:
|
||||
@@ -168,6 +179,6 @@ amalg:
|
||||
clean:
|
||||
$(MAKE) -C src clean
|
||||
|
||||
-.PHONY: all install amalg clean
|
||||
+.PHONY: all install amalg clean bench check
|
||||
|
||||
##############################################################################
|
||||
Index: LuaJIT-2.1/bench/Makefile
|
||||
===================================================================
|
||||
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
|
||||
+++ LuaJIT-2.1/bench/Makefile 2023-08-29 08:36:28.443172755 +0200
|
||||
@@ -0,0 +1,56 @@
|
||||
+CC=gcc
|
||||
+
|
||||
+LUA_FILE_ARG = -a
|
||||
+LUA_ARG = $(patsubst %.lua,%,$^)
|
||||
+
|
||||
+ifndef LUA_BIN
|
||||
+BENCH_BIN = luajit-bench
|
||||
+LUA_BIN_NAME = ./$(BENCH_BIN)
|
||||
+else
|
||||
+ifdef BENCH_DURATION
|
||||
+BENCH_ARG = -t $(BENCH_DURATION)
|
||||
+endif
|
||||
+LUA_BIN_NAME = $(LUA_BIN) luajit-bench.lua $(BENCH_ARG)
|
||||
+endif
|
||||
+
|
||||
+BENCHMARKS = array3d binary-trees chameneos coroutine-ring euler14-bit \
|
||||
+ fannkuch fasta k-nucleotide life mandelbrot mandelbrot-bit md5 \
|
||||
+ meteor nbody nsieve nsieve-bit nsieve-bit-fp partialsums \
|
||||
+ pidigits-nogmp ray recursive-ack recursive-fib revcomp \
|
||||
+ scimark-2010-12-20 scimark-fft scimark-lu series scimark-sparse \
|
||||
+ scimark-sor spectral-norm sum-file
|
||||
+
|
||||
+# Specify benchmarks that need input files.
|
||||
+INPUT-k-nucleotide = FASTA_1000000
|
||||
+INPUT-revcomp = FASTA_1000000
|
||||
+INPUT-sum-file = SUMCOL_1000
|
||||
+
|
||||
+input-file = $(INPUT-$(patsubst %.result,%,$@))
|
||||
+input-file-arg = $(if $(input-file),$(LUA_FILE_ARG) $(input-file),)
|
||||
+LUA_CMD = $(LUA_BIN_NAME) $(LUA_ARG) $(input-file-arg)
|
||||
+
|
||||
+bench_targets = $(patsubst %,%.result,$(BENCHMARKS))
|
||||
+
|
||||
+all: $(BENCH_BIN) $(bench_targets)
|
||||
+
|
||||
+%.result: %.lua
|
||||
+ @$(LUA_CMD)
|
||||
+
|
||||
+ifndef LUA_BIN
|
||||
+ifdef BENCH_DURATION
|
||||
+DURATION = -DBENCH_DURATION=$(BENCH_DURATION)
|
||||
+endif
|
||||
+
|
||||
+LUAJIT_A = ../src/$(FILE_A)
|
||||
+
|
||||
+$(BENCH_BIN): $(LUAJIT_A) $(BENCH_BIN).c Makefile
|
||||
+ $(CC) $@.c -std=gnu11 $(DURATION) -g -O3 -c -o $@.o -I ../src
|
||||
+ $(CC) $@.o -lpthread $< -lm -ldl -o $@
|
||||
+
|
||||
+# Build the luajit static library if it doesn't exist.
|
||||
+$(LUAJIT_A):
|
||||
+ make -C ..
|
||||
+
|
||||
+clean:
|
||||
+ rm -f $(BENCH_BIN) main.o
|
||||
+endif
|
||||
Index: LuaJIT-2.1/LuaJIT-test-cleanup-master/test/lib/contents.lua
|
||||
===================================================================
|
||||
--- LuaJIT-2.1.orig/LuaJIT-test-cleanup-master/test/lib/contents.lua 2016-10-19 23:27:03.000000000 +0200
|
||||
+++ LuaJIT-2.1/LuaJIT-test-cleanup-master/test/lib/contents.lua 2023-08-29 08:36:28.444172754 +0200
|
||||
@@ -76,8 +76,9 @@ do --- 5.2 string +lua>=5.2
|
||||
assert(not string.gfind)
|
||||
end
|
||||
|
||||
+-- Adapted for latest changes
|
||||
do --- pre-5.2 table +lua<5.2
|
||||
- check(table, "concat:foreach:foreachi:getn:insert:maxn:remove:sort", "pack:unpack:setn:new")
|
||||
+ check(table, "concat:foreach:foreachi:getn:insert:maxn:move:remove:sort", "pack:unpack:setn:new")
|
||||
end
|
||||
|
||||
do --- 5.2 table +lua>=5.2
|
||||
@@ -118,10 +119,17 @@ end
|
||||
|
||||
do --- pre-5.2 package +lua<5.2
|
||||
assert(package.loaders)
|
||||
- assert(not package.searchers)
|
||||
assert(package.seeall)
|
||||
end
|
||||
|
||||
+-- LuaJIT version check for lua will return true for +lua<5.2 since it
|
||||
+-- does not fully implement 5.2. Move the (not package.searchers) check
|
||||
+-- to +compat5.2 instead of the version check since it is implemented by
|
||||
+-- compat5.2.
|
||||
+do --- 5.2 compat package +compat5.2
|
||||
+ assert(package.searchers)
|
||||
+end
|
||||
+
|
||||
do --- 5.2 package +lua>=5.2
|
||||
assert(not package.loaders)
|
||||
assert(package.searchers)
|
||||
6998
luajit-2.1-s390x-support.patch
Normal file
6998
luajit-2.1-s390x-support.patch
Normal file
File diff suppressed because it is too large
Load diff
37572
luajit-2.1-update.patch
37572
luajit-2.1-update.patch
File diff suppressed because it is too large
Load diff
212
luajit.spec
212
luajit.spec
|
|
@ -1,25 +1,35 @@
|
|||
%global rctag beta3
|
||||
%global pkgname LuaJIT
|
||||
|
||||
%global luajit_version_major 2
|
||||
%global luajit_version_minor 1
|
||||
%global luajit_version_patch 1761727121
|
||||
%global luajit_version %{luajit_version_major}.%{luajit_version_minor}.%{luajit_version_patch}
|
||||
|
||||
|
||||
Name: luajit
|
||||
Version: 2.1.0
|
||||
Version: %{luajit_version}
|
||||
%global apiver %(v=%{version}; echo ${v%.${v#[0-9].[0-9].}})
|
||||
%global srcver %{version}%{?rctag:-%{rctag}}
|
||||
Release: 0.23%{?rctag:%{rctag}}%{?dist}
|
||||
Release: %autorelease
|
||||
Summary: Just-In-Time Compiler for Lua
|
||||
License: MIT
|
||||
URL: http://luajit.org/
|
||||
Source0: http://luajit.org/download/LuaJIT-%{srcver}.tar.gz
|
||||
URL: http://luajit.org
|
||||
# LuaJIT is a rolling release, see http://luajit.org/status.html
|
||||
# To update the tarball you can use the update_tarball.sh script
|
||||
Source0: https://github.com/LuaJIT/LuaJIT/archive/refs/heads/v2.1/%{pkgname}-%{version}.tar.gz
|
||||
Source1: https://github.com/LuaJIT/LuaJIT-test-cleanup/archive/refs/heads/master/LuaJIT-test-cleanup.tar.gz
|
||||
Source2: update_tarball.sh
|
||||
|
||||
# Patches from https://github.com/LuaJit/LuaJIT.git
|
||||
# Generated from v2.1 branch against the 2.1.0-beta3 tag using
|
||||
# git diff v2.1.0-beta3..v2.1 > luajit-2.1-update.patch
|
||||
Patch0: luajit-2.1-update.patch
|
||||
# Add 'make check'
|
||||
Patch0: luajit-2.1-make-check.patch
|
||||
# Patches from https://github.com/cryptomilk/LuaJIT/commits/v2.1-fedora
|
||||
# git format-patch --stdout -l1 --no-renames v2.1..v2.1-fedora > luajit-2.1-fedora.patch
|
||||
# git format-patch --stdout -l1 --no-renames origin/v2.1..v2.1-fedora > luajit-2.1-fedora.patch
|
||||
Patch1: luajit-2.1-fedora.patch
|
||||
# If the patch doesn't apply, send a mail to:
|
||||
# Ilya Leoshkevich <iii@de.ibm.com> or Andreas.Krebbel@de.ibm.com
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=2222911
|
||||
Patch2: https://github.com/luajit/luajit/pull/631.patch#/luajit-2.1-s390x-support.patch
|
||||
|
||||
# ppc64le and s390x patchsets doesn't apply or build anymore
|
||||
ExclusiveArch: %{arm} %{ix86} x86_64 %{mips} aarch64
|
||||
ExcludeArch: riscv64 ppc64 ppc64le
|
||||
|
||||
BuildRequires: gcc
|
||||
BuildRequires: make
|
||||
|
|
@ -37,7 +47,12 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
|
|||
This package contains development files for %{name}.
|
||||
|
||||
%prep
|
||||
%autosetup -n LuaJIT-%{srcver} -p1
|
||||
%autosetup -p1 -n %{pkgname}-%{luajit_version_major}.%{luajit_version_minor} -a1
|
||||
|
||||
echo "%{luajit_version_patch}" > .relver
|
||||
|
||||
ln -s LuaJIT-test-cleanup-master/bench bench
|
||||
ln -s LuaJIT-test-cleanup-master/test test
|
||||
|
||||
# Enable Lua 5.2 features
|
||||
sed -i -e '/-DLUAJIT_ENABLE_LUA52COMPAT/s/^#//' src/Makefile
|
||||
|
|
@ -45,6 +60,7 @@ sed -i -e '/-DLUAJIT_ENABLE_LUA52COMPAT/s/^#//' src/Makefile
|
|||
# preserve timestamps (cicku)
|
||||
sed -i -e '/install -m/s/-m/-p -m/' Makefile
|
||||
|
||||
|
||||
%build
|
||||
# Q= - enable verbose output
|
||||
# E= @: - disable @echo messages
|
||||
|
|
@ -66,26 +82,19 @@ cp -a doc _tmp_html/html
|
|||
# Remove static .a
|
||||
find %{buildroot} -type f -name *.a -delete -print
|
||||
|
||||
%if %{defined rctag}
|
||||
# Development versions are not doing such symlink
|
||||
ln -s %{name}-%{srcver} %{buildroot}%{_bindir}/%{name}
|
||||
%endif
|
||||
|
||||
%ldconfig_scriptlets
|
||||
|
||||
%check
|
||||
|
||||
# Don't fail the build on a check failure.
|
||||
make check || true
|
||||
make check
|
||||
|
||||
%files
|
||||
%license COPYRIGHT
|
||||
%doc README
|
||||
%{_bindir}/%{name}
|
||||
%{_bindir}/%{name}-%{srcver}
|
||||
%{_bindir}/%{name}-%{luajit_version}
|
||||
%{_libdir}/lib%{name}-*.so.*
|
||||
%{_mandir}/man1/%{name}.1*
|
||||
%{_datadir}/%{name}-%{srcver}/
|
||||
%{_datadir}/%{name}-%{luajit_version_major}.%{luajit_version_minor}/
|
||||
|
||||
%files devel
|
||||
%doc _tmp_html/html/
|
||||
|
|
@ -94,157 +103,4 @@ make check || true
|
|||
%{_libdir}/pkgconfig/%{name}.pc
|
||||
|
||||
%changelog
|
||||
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-0.23beta3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
* Tue Oct 26 2021 Siddhesh Poyarekar <siddhesh@gotplt.org> - 2.1.0-0.22beta3
|
||||
- Bring back the earlier code to do ln -sf.
|
||||
|
||||
* Tue Oct 12 2021 Andreas Schneider <asn@redhat.com> - 2.1.0-0.21beta3
|
||||
- Rebase onto https://github.com/LuaJIT/LuaJIT/tree/v2.1
|
||||
- Dropped support for ppc64le
|
||||
- Dropped support for s390x
|
||||
|
||||
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-0.20beta3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||
|
||||
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-0.19beta3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-0.18beta3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-0.17beta3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
* Wed Sep 25 2019 Siddhesh Poyarekar <sid@reserved-bit.com> - 2.1.0-0.16beta3
|
||||
- New API functions jit.prngstate and thread.exdata from OpenResty.
|
||||
- Bug fixes in ppc64le and aarch64.
|
||||
- Optimised string hash function for SSE4.2
|
||||
- Miscellaneous bug fixes.
|
||||
|
||||
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-0.16beta3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||
|
||||
* Tue Jun 25 2019 Siddhesh Poyarekar <sid@reserved-bit.com> - 2.1.0-0.15beta3
|
||||
- Port JIT features and fixes from openresty/luajit2.
|
||||
|
||||
* Wed Jun 19 2019 Siddhesh Poyarekar <sid@reserved-bit.com> - 2.1.0-0.14beta3
|
||||
- Patch for PPC64 support.
|
||||
|
||||
* Wed Jun 19 2019 Siddhesh Poyarekar <sid@reserved-bit.com> - 2.1.0-0.13beta3
|
||||
- arm: Fix up condition codes for conditional arithmetic insn.
|
||||
- bugfix: fixed a segfault when unsinking 64-bit pointers.
|
||||
- Remove setrlimit on FreeBSD.
|
||||
- test: Check for package.searchers only in compat5.2.
|
||||
|
||||
* Mon Jun 17 07:10:20 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.1.0-0.12beta3
|
||||
- Enable Lua 5.2 compatibility
|
||||
|
||||
* Wed Apr 24 2019 Siddhesh Poyarekar <sid@reserved-bit.com> - 2.1.0-0.11beta3
|
||||
- Add s390x support.
|
||||
|
||||
* Fri Apr 12 2019 Siddhesh Poyarekar <sid@reserved-bit.com> - 2.1.0-0.10beta3
|
||||
- Add upstream bug fixes from the v2.1 branch.
|
||||
- Add bug fixes from https://github.com/siddhesh/LuaJIT.git
|
||||
- Incorporate tests and benchmarks from LuaJIT-test-cleanup.
|
||||
|
||||
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-0.9beta3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-0.8beta3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-0.7beta3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||
|
||||
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-0.6beta3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
||||
|
||||
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-0.5beta3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||
|
||||
* Mon May 15 2017 Tom Callaway <spot@fedoraproject.org> - 2.1.0-0.4beta3
|
||||
- Update to 2.1.0-beta3
|
||||
|
||||
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-0.3beta2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||
|
||||
* Mon Aug 29 2016 Igor Gnatenko <ignatenko@redhat.com> - 2.1.0-0.2beta2
|
||||
- Add aarch64 to ExclusiveArch
|
||||
|
||||
* Mon Aug 29 2016 Igor Gnatenko <ignatenko@redhat.com> - 2.1.0-0.1beta2
|
||||
- Update to 2.1.0-beta2 (RHBZ #1371158)
|
||||
|
||||
* Mon May 09 2016 Dan Horák <dan[at]danny.cz> - 2.0.4-5
|
||||
- set ExclusiveArch also for Fedora
|
||||
|
||||
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.4-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||
|
||||
* Fri Aug 07 2015 Oliver Haessler <oliver@redhat.com> - 2.0.4-3
|
||||
- only build x86_64 on EPEL as luajit has no support for ppc64
|
||||
|
||||
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.4-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||
|
||||
* Thu May 21 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.4-1
|
||||
- 2.0.4
|
||||
|
||||
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.3-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
||||
|
||||
* Wed Jul 09 2014 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.3-3
|
||||
- rebuild against lua 5.2
|
||||
|
||||
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.3-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||
|
||||
* Thu Mar 13 2014 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.3-1
|
||||
- 2.0.3 upstream release
|
||||
|
||||
* Sun Dec 15 2013 Clive Messer <clive.messer@communitysqueeze.org> - 2.0.2-9
|
||||
- Apply luajit-path64.patch on x86_64.
|
||||
|
||||
* Mon Dec 09 2013 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.2-8
|
||||
- Fix strip (thanks Ville Skyttä)
|
||||
|
||||
* Fri Dec 06 2013 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.2-7
|
||||
- Fix executable binary
|
||||
|
||||
* Mon Dec 02 2013 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.2-6
|
||||
- Fix .pc
|
||||
|
||||
* Sun Dec 01 2013 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.2-5
|
||||
- Fixed short-circuit builds (schwendt)
|
||||
|
||||
* Sat Nov 30 2013 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.2-4
|
||||
- Preserve timestamps at install
|
||||
|
||||
* Fri Nov 29 2013 Igor Gnatenko <i.gnatenko.brain@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@gmail.com> - 2.0.2-2
|
||||
- Re-update
|
||||
|
||||
* Mon Sep 02 2013 Muayyad Alsadi <alsadi@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@gmx.com> - 2.0.0-0.2.beta8
|
||||
- Append upstream hotfix #1
|
||||
|
||||
* Sun Jul 03 2011 Andrei Lapshin <alapshin@gmx.com> - 2.0.0-0.1.beta8
|
||||
- Initial build
|
||||
%autochangelog
|
||||
|
|
|
|||
3
sources
3
sources
|
|
@ -1 +1,2 @@
|
|||
SHA512 (LuaJIT-2.1.0-beta3.tar.gz) = c44e967a0f671ed32b55aee810bc8b3b63737a2d7363b8984ae1949b24f98dbb3f9be7c1e10239fdeb96a3e3c836f606342cbd61838cf9bcadb077443eb5bc12
|
||||
SHA512 (LuaJIT-2.1.1761727121.tar.gz) = 67f5ca8952a8d7b0f0c92783aa67c1ede86f46483466fd834974f413e6f16980d3255bb6c16d3a5af009e36e0cbe1e7facbcc9d7fc63f8278f1e4683d9488b1b
|
||||
SHA512 (LuaJIT-test-cleanup.tar.gz) = a49baef3f27a157b3a2289dc3b10eec20befa5231a491a03d3393f280c6f73fa39893abb8e7e47c54e0341305ee3b320b8eb43af423c579781f108a040b62b57
|
||||
|
|
|
|||
50
update_tarball.sh
Normal file
50
update_tarball.sh
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
#!/bin/bash
|
||||
|
||||
LUAJIT_PKGNAME="LuaJIT"
|
||||
LUAJIT_URL=$(rpmspec -P *.spec | awk '/Source0/ { print $NF }')
|
||||
LUAJIT_TARBALL=$(basename $LUAJIT_URL)
|
||||
LUAJIT_VERSION_MAJOR=$(awk '/%global luajit_version_major/ { print $NF }' *.spec)
|
||||
LUAJIT_VERSION_MINOR=$(awk '/%global luajit_version_minor/ { print $NF }' *.spec)
|
||||
LUAJIT_VERSION_PATCH=$(awk '/%global luajit_version_patch/ { print $NF }' *.spec)
|
||||
LUAJIT_VERSION="${LUAJIT_VERSION_MAJOR}.${LUAJIT_VERSION_MINOR}.${LUAJIT_VERSION_PATCH}"
|
||||
|
||||
LUAJIT_PKGDIR="$(pwd)"
|
||||
LUAJIT_TMPDIR=$(mktemp --tmpdir -d luajit-XXXXXXXX)
|
||||
|
||||
cleanup_tmpdir() {
|
||||
popd 2>/dev/null || true
|
||||
rm -rf "${LUAJIT_TMPDIR}"
|
||||
}
|
||||
trap cleanup_tmpdir SIGINT
|
||||
|
||||
cleanup_and_exit() {
|
||||
cleanup_tmpdir
|
||||
if test "$1" = 0 -o -z "$1" ; then
|
||||
exit 0
|
||||
else
|
||||
exit "${1}"
|
||||
fi
|
||||
}
|
||||
|
||||
pushd "${LUAJIT_TMPDIR}" || cleanup_and_exit 1
|
||||
|
||||
wget "${LUAJIT_URL}"
|
||||
|
||||
tar xf ${LUAJIT_PKGNAME}-${LUAJIT_VERSION}.tar.gz
|
||||
|
||||
# commiter date, unix timestamp
|
||||
LUAJIT_VERSION_PATCH_NEW=$(<${LUAJIT_PKGNAME}-${LUAJIT_VERSION_MAJOR}.${LUAJIT_VERSION_MINOR}/.relver)
|
||||
LUAJIT_VERSION_NEW="${LUAJIT_VERSION_MAJOR}.${LUAJIT_VERSION_MINOR}.${LUAJIT_VERSION_PATCH_NEW}"
|
||||
echo "LUAJIT_VERSION=${LUAJIT_VERSION_NEW}"
|
||||
|
||||
mv "${LUAJIT_PKGNAME}-${LUAJIT_VERSION}.tar.gz" "${LUAJIT_PKGDIR}/${LUAJIT_PKGNAME}-${LUAJIT_VERSION_NEW}.tar.gz"
|
||||
echo
|
||||
echo ">>> New tarball, run: fedpkg new-sources ${LUAJIT_PKGNAME}-${LUAJIT_VERSION_NEW}.tar.gz LuaJIT-test-cleanup.tar.gz"
|
||||
|
||||
popd || cleanup_and_exit 1
|
||||
|
||||
echo
|
||||
echo ">>> Update spec file with: %global luajit_version_patch ${LUAJIT_VERSION_PATCH_NEW}"
|
||||
echo
|
||||
|
||||
cleanup_and_exit 0
|
||||
Loading…
Add table
Add a link
Reference in a new issue