[packages/luajit] - build with lua 5.2 abi, rel 2

baggins baggins at pld-linux.org
Sun Dec 22 20:58:50 CET 2024


commit c79245286a29f544a56bb32bb61510464e492a57
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sun Dec 22 21:46:26 2024 +0100

    - build with lua 5.2 abi, rel 2

 abi-5.2.patch | 33 +++++++++++++++++++++++++++++++++
 luajit.spec   | 12 +++++++-----
 2 files changed, 40 insertions(+), 5 deletions(-)
---
diff --git a/luajit.spec b/luajit.spec
index 9256f8d..25b9323 100644
--- a/luajit.spec
+++ b/luajit.spec
@@ -8,13 +8,14 @@ Summary:	Just-in-Time compiler for Lua
 Summary(pl.UTF-8):	Kompilator JIT dla języka Lua
 Name:		luajit
 Version:	2.1.0
-Release:	0.%{snap}.1
+Release:	0.%{snap}.2
 License:	MIT
 Group:		Libraries
 # Source0Download: http://luajit.org/download.html
 Source0:	%{name}-%{version}-%{snap}.tar.xz
 # Source0-md5:	8a1c8fe490bf2619948dcc5790c06361
 Patch0:		config.patch
+Patch1:		abi-5.2.patch
 URL:		http://luajit.org/
 BuildRequires:	sed >= 4.0
 BuildRequires:	tar >= 1:1.22
@@ -23,8 +24,8 @@ Requires:	%{name}-libs = %{version}-%{release}
 ExclusiveArch:	%{ix86} %{x8664} %{arm} aarch64 mips mips64 mipsel ppc
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define		lua_abi		5.1
-%define		luajit_abi		2.1
+%define		lua_abi		5.2
+%define		luajit_abi	2.1
 
 %description
 LuaJIT is a Just-In-Time (JIT) compiler for the Lua programming
@@ -70,7 +71,8 @@ Statyczna biblioteka LuaJIT.
 
 %prep
 %setup -q -n luajit
-%patch0 -p1
+%patch -P 0 -p1
+%patch -P 1 -p1
 
 # preserve timestamps
 sed -i -e '/install -m/s/-m/-p -m/' Makefile
@@ -129,7 +131,7 @@ rm -rf $RPM_BUILD_ROOT
 %files libs
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/libluajit-%{lua_abi}.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libluajit-%{lua_abi}.so.2
+%attr(755,root,root) %ghost %{_libdir}/libluajit-*.so.2
 %dir %{_libdir}/luajit
 %dir %{_libdir}/luajit/%{luajit_abi}
 %dir %{_datadir}/luajit
diff --git a/abi-5.2.patch b/abi-5.2.patch
new file mode 100644
index 0000000..167775c
--- /dev/null
+++ b/abi-5.2.patch
@@ -0,0 +1,33 @@
+--- luajit/Makefile~	2024-12-22 21:14:21.000000000 +0100
++++ luajit/Makefile	2024-12-22 21:19:35.786666153 +0100
+@@ -15,7 +15,7 @@
+ 
+ MAJVER=  2
+ MINVER=  1
+-ABIVER=  5.1
++ABIVER=  5.2
+ 
+ # LuaJIT uses rolling releases. The release version is based on the time of
+ # the latest git commit. The 'git' command must be available during the build.
+--- luajit/src/luaconf.h~	2024-12-22 21:14:21.000000000 +0100
++++ luajit/src/luaconf.h	2024-12-22 21:20:27.446666155 +0100
+@@ -36,7 +36,7 @@
+ #define LUA_LMULTILIB	"lib"
+ #endif
+ #define LUA_LROOT	"/usr/local"
+-#define LUA_LUADIR	"/lua/5.1/"
++#define LUA_LUADIR	"/lua/5.2/"
+ #define LUA_LJDIR	"/luajit/" MAJVER "." MINVER "/"
+ 
+ #ifdef LUA_ROOT
+--- luajit/etc/luajit.pc~	2024-07-09 00:14:05.000000000 +0200
++++ luajit/etc/luajit.pc	2024-12-22 21:45:06.933332925 +0100
+@@ -3,7 +3,7 @@
+ minver=1
+ relver=ROLLING
+ version=${majver}.${minver}.${relver}
+-abiver=5.1
++abiver=5.2
+ 
+ prefix=/usr/local
+ multilib=lib
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/luajit.git/commitdiff/c79245286a29f544a56bb32bb61510464e492a57



More information about the pld-cvs-commit mailing list