From 90e44f64b84cc85ec89871996f67395cec074717 Mon Sep 17 00:00:00 2001 From: fly_fzc <2385803914@qq.com> Date: Tue, 30 Sep 2025 14:23:02 +0800 Subject: [PATCH] fix package version (cherry picked from commit b0e5297567dcd55e35b5028f7e05ae7c6bfd0ceb) --- 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 29b057b..7239291 100644 --- a/lua.spec +++ b/lua.spec @@ -6,7 +6,7 @@ Name: lua Version: 5.4.6 -Release: 3 +Release: 4 Summary: A powerful, efficient, lightweight, embeddable scripting language License: MIT URL: http://www.lua.org/ @@ -59,8 +59,8 @@ mv src/luaconf.h src/luaconf.h.template.in %patch3 -p1 -z .configure-compat-all %patch6000 -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 @@ -132,6 +132,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.6-4 +- fix package version + * Fri Mar 14 2025 mahailiang - 5.4.6-3 - add sw_64 support -- Gitee