File project.diff of Package lua-macros
--- lua-macros.changes.orig
+++ lua-macros.changes
@@ -1,4 +1,9 @@
-------------------------------------------------------------------
+Thu Nov 6 17:58:22 UTC 2025 - Michal Suchanek <msuchanek@suse.de>
+
+- Fix build on older releases
+
+-------------------------------------------------------------------
Mon Nov 3 00:20:49 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
- Finally broke %lua_provides to be working. I got stumped by the
--- lua-macros.spec.orig
+++ lua-macros.spec
@@ -1,7 +1,7 @@
#
# spec file for package lua-macros
#
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
--- macros.lua.orig
+++ macros.lua
@@ -72,13 +72,13 @@ if mod_name == "" or mod_name == "%{?mod
print("-- Error: %%{mod_name} is not defined!")
return
end
-
+--
local lua_ver_nodots = rpm.expand("%{lua_version_nodots}")
local lua_ver_default_nodots = rpm.expand("%{lua_version_default_nodots}")
local flavor = rpm.expand("%{flavor}")
local version = rpm.expand("%{version}")
local release = rpm.expand("%{release}")
-
+--
local provides_name
if rpm.expand("%{-n*}") ~= "" then
provides_name = rpm.expand("%{-n*}")
@@ -87,12 +87,12 @@ elseif rpm.expand("%{-e:1}") == "1" then
else
provides_name = "lua-" .. mod_name
end
-
+--
if lua_ver_nodots == lua_ver_default_nodots then
print("Provides: " .. provides_name .. " = " .. version .. "-" .. release .. "\\n")
print("Obsoletes: " .. provides_name .. " < " .. version .. "-" .. release .. "\\n")
end
-
+--
if flavor == "luajit" then
print("Obsoletes: lua51-" .. mod_name .. " <= " .. version .. "-" .. release .. "\\n")
end