From df04f2da7a62337ef667acb1b373899d2f1b11d2 Mon Sep 17 00:00:00 2001 From: Funda Wang Date: Wed, 17 Sep 2025 17:30:57 +0800 Subject: [PATCH] fix package version --- 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 9a8f133..80528fc 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 315423e..03f90bc 100644 --- a/lua.spec +++ b/lua.spec @@ -2,7 +2,7 @@ Name: lua Version: 5.4.8 -Release: 1 +Release: 2 Summary: A powerful, efficient, lightweight, embeddable scripting language License: MIT URL: https://www.lua.org/ @@ -52,8 +52,8 @@ cp %{S:3} . mv src/luaconf.h src/luaconf.h.template.in %autopatch -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 @@ -115,6 +115,9 @@ LD_LIBRARY_PATH=$RPM_BUILD_ROOT/%{_libdir} $RPM_BUILD_ROOT/%{_bindir}/lua -e"_U= %{_mandir}/man1/lua*.1* %changelog +* Wed Sep 17 2025 Funda Wang - 5.4.8-2 +- fix package version + * Thu Jun 05 2025 Funda Wang - 5.4.8-1 - update to 5.4.8 -- Gitee