From a958377d05212099ce659f08fcc7422e49ec315e Mon Sep 17 00:00:00 2001 From: fly_fzc <2385803914@qq.com> Date: Tue, 30 Sep 2025 14:30:53 +0800 Subject: [PATCH] fix package version (cherry picked from commit 809c81ec15c0bf5301070692cb995225efd8ceba) --- lua-5.4.0-beta-autotoolize.patch | 2 +- lua.spec | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/lua-5.4.0-beta-autotoolize.patch b/lua-5.4.0-beta-autotoolize.patch index 2ff70f8..e7e0871 100644 --- a/lua-5.4.0-beta-autotoolize.patch +++ b/lua-5.4.0-beta-autotoolize.patch @@ -3,7 +3,7 @@ diff -up lua-5.4.0-beta/configure.ac.autoxxx lua-5.4.0-beta/configure.ac +++ lua-5.4.0-beta/configure.ac 2019-10-23 15:03:13.296916443 -0400 @@ -0,0 +1,69 @@ +AC_PREREQ(2.59) -+AC_INIT([lua], [5.4.0], [https://bugzilla.redhat.com/], [lua-at], [http://www.lua.org]) ++AC_INIT([lua], [@PACKAGE_VERSION@], [https://bugzilla.redhat.com/], [lua-at], [http://www.lua.org]) +AC_SUBST([MAJOR_VERSION], [5.4]) + +AC_CONFIG_HEADERS([config.h]) diff --git a/lua.spec b/lua.spec index 356712f..6f09393 100644 --- a/lua.spec +++ b/lua.spec @@ -6,7 +6,7 @@ Name: lua Version: 5.4.3 -Release: 14 +Release: 15 Summary: A powerful, efficient, lightweight, embeddable scripting language License: MIT URL: http://www.lua.org/ @@ -94,8 +94,8 @@ mv src/luaconf.h src/luaconf.h.template.in %patch6017 -p1 %patch6018 -p1 -# Put proper version in configure.ac, patch0 hardcodes 5.3.0 -sed -i 's|5.3.0|%{version}|g' configure.ac +# Put proper version in configure.ac, patch0 hardcodes 5.4.0 +sed -i 's|@PACKAGE_VERSION@|%{version}|g' configure.ac && grep 'AC_INIT(\[lua\], \[%{version}\]' configure.ac autoreconf -ifv %build @@ -167,6 +167,9 @@ LD_LIBRARY_PATH=$RPM_BUILD_ROOT/%{_libdir} $RPM_BUILD_ROOT/%{_bindir}/lua -e"_U= %{_mandir}/man1/lua*.1* %changelog +* Tue Sep 30 2025 fuanan - 5.4.3-15 +- fix package version + * Wed May 08 2024 fuanan - 5.4.3-14 - add lua_closethread to adapt interfacechange -- Gitee