From f2a6396c0fa4c97eef5e499d4bb01e282a11e727df08ae5be65753c9f57af1df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C4=9Bj=20Cepl?= Date: Mon, 27 Oct 2025 20:23:32 +0100 Subject: [PATCH] Update to 1.0.13: - fix: make the package build with Lua API < 5.2 - support various lua executable formats Remove upstreamed patch: - luajit-build.patch --- lua-mpack.changes | 9 +++++++++ lua-mpack.spec | 5 +---- luajit-build.patch | 19 ------------------- mpack-1.0.12.tar.gz | 3 --- mpack-1.0.13.tar.gz | 3 +++ 5 files changed, 13 insertions(+), 26 deletions(-) delete mode 100644 luajit-build.patch delete mode 100644 mpack-1.0.12.tar.gz create mode 100644 mpack-1.0.13.tar.gz diff --git a/lua-mpack.changes b/lua-mpack.changes index b8a6a1e..49c2fdb 100644 --- a/lua-mpack.changes +++ b/lua-mpack.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Mon Oct 27 19:22:34 UTC 2025 - Matej Cepl + +- Update to 1.0.13: + - fix: make the package build with Lua API < 5.2 + - support various lua executable formats +- Remove upstreamed patch: + - luajit-build.patch + ------------------------------------------------------------------- Fri Oct 24 14:50:42 UTC 2025 - Matej Cepl diff --git a/lua-mpack.spec b/lua-mpack.spec index 8935a58..8ec4872 100644 --- a/lua-mpack.spec +++ b/lua-mpack.spec @@ -19,7 +19,7 @@ %define flavor @BUILD_FLAVOR@ %define libmpack_version 1.0.5 %define mod_name mpack -Version: 1.0.12 +Version: 1.0.13 Release: 0 Summary: Implementation of MessagePack for Lua 5.1 License: MIT @@ -28,9 +28,6 @@ URL: https://github.com/libmpack/libmpack-lua Source: https://github.com/libmpack/libmpack-lua/archive/refs/tags/%{version}.tar.gz#/%{mod_name}-%{version}.tar.gz # libmpack source is necessary to build lua-mpack, need to package mpack to Factory Source1: https://github.com/libmpack/libmpack/archive/refs/tags/%{libmpack_version}.tar.gz#/libmpack-%{libmpack_version}.tar.gz -# PATCH-FIX-UPSTREAM luajit-build.patch gh#libmpack/libmpack-lua!34 mcepl@suse.com -# Add #define to mask Lua API 5.1 / 5.2 incompatibility -Patch2: luajit-build.patch BuildRequires: %{flavor}-devel BuildRequires: gcc BuildRequires: libtool diff --git a/luajit-build.patch b/luajit-build.patch deleted file mode 100644 index 91b873f..0000000 --- a/luajit-build.patch +++ /dev/null @@ -1,19 +0,0 @@ ---- - lmpack.c | 4 ++++ - 1 file changed, 4 insertions(+) - -Index: libmpack-lua-1.0.12/lmpack.c -=================================================================== ---- libmpack-lua-1.0.12.orig/lmpack.c 2024-02-07 00:28:09.000000000 +0100 -+++ libmpack-lua-1.0.12/lmpack.c 2025-10-13 15:00:35.793539104 +0200 -@@ -54,6 +54,10 @@ - #define luaL_reg luaL_Reg - #endif - -+#if LUA_VERSION_NUM < 502 -+# define luaL_reg luaL_Reg -+#endif -+ - #if LUA_VERSION_NUM > 501 - #ifndef luaL_register - #define luaL_register(L,n,f) luaL_setfuncs(L,f,0) diff --git a/mpack-1.0.12.tar.gz b/mpack-1.0.12.tar.gz deleted file mode 100644 index 45195ac..0000000 --- a/mpack-1.0.12.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7c3f0a5fcd0d7c169fd7bc95978412628d8f59eb9da1d32cf3e8a864b741ec92 -size 16524 diff --git a/mpack-1.0.13.tar.gz b/mpack-1.0.13.tar.gz new file mode 100644 index 0000000..f79ef6e --- /dev/null +++ b/mpack-1.0.13.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:436a6a3973207403d3f20082002c32e74c25d9149ff2516dc06b0b41514044bf +size 16556