forked from pool/lua-mpack
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
This commit is contained in:
@@ -1,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Oct 27 19:22:34 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
|
||||||
|
|
||||||
|
- 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 <mcepl@cepl.eu>
|
Fri Oct 24 14:50:42 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
%define flavor @BUILD_FLAVOR@
|
%define flavor @BUILD_FLAVOR@
|
||||||
%define libmpack_version 1.0.5
|
%define libmpack_version 1.0.5
|
||||||
%define mod_name mpack
|
%define mod_name mpack
|
||||||
Version: 1.0.12
|
Version: 1.0.13
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Implementation of MessagePack for Lua 5.1
|
Summary: Implementation of MessagePack for Lua 5.1
|
||||||
License: MIT
|
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
|
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
|
# 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
|
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: %{flavor}-devel
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
|
|||||||
@@ -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)
|
|
||||||
BIN
mpack-1.0.12.tar.gz
(Stored with Git LFS)
BIN
mpack-1.0.12.tar.gz
(Stored with Git LFS)
Binary file not shown.
BIN
mpack-1.0.13.tar.gz
(Stored with Git LFS)
Normal file
BIN
mpack-1.0.13.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
Reference in New Issue
Block a user