Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package lua-macros for openSUSE:Factory 
checked in at 2025-10-15 12:44:28
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/lua-macros (Old)
 and      /work/SRC/openSUSE:Factory/.lua-macros.new.18484 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "lua-macros"

Wed Oct 15 12:44:28 2025 rev:12 rq:1311191 version:20210827

Changes:
--------
--- /work/SRC/openSUSE:Factory/lua-macros/lua-macros.changes    2025-10-12 
22:21:26.786392499 +0200
+++ /work/SRC/openSUSE:Factory/.lua-macros.new.18484/lua-macros.changes 
2025-10-15 12:44:30.310701101 +0200
@@ -1,0 +2,10 @@
+Sat Oct 11 16:45:06 UTC 2025 - Matej Cepl <[email protected]>
+
+- Rework Lua version and path macros using RPM Lua blocks.
+
+-------------------------------------------------------------------
+Fri Oct 10 10:56:01 UTC 2025 - Matej Cepl <[email protected]>
+
+- Make %{lua_noarchdir} work even without lua-devel installed.
+
+-------------------------------------------------------------------

New:
----
  Makefile

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ Makefile ++++++
all:
        mkdir -p build && cd build/ \
        && cmake .. \
                '-GUnix Makefiles' \
                -DCMAKE_INSTALL_PREFIX:PATH=/usr \
                -DCMAKE_BUILD_TYPE=RelWithDebInfo '-DCMAKE_C_FLAGS=-O2 -Wall 
-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables 
-fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type 
-flto=auto -g' \
                '-DCMAKE_EXE_LINKER_FLAGS=-flto=auto -Wl,--as-needed 
-Wl,--no-undefined -Wl,-z,now' \
                '-DCMAKE_MODULE_LINKER_FLAGS=-flto=auto -Wl,--as-needed' \
                '-DCMAKE_SHARED_LINKER_FLAGS=-flto=auto -Wl,--as-needed 
-Wl,--no-undefined -Wl,-z,now' \
                -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
                -DBUILD_SHARED_LIBS:BOOL=ON \
                -DCMAKE_COLOR_MAKEFILE:BOOL=OFF \
                -DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
                -DLUA_INCLUDE_DIR:PATH=$(shell pkgconf --variable=includedir 
lua) \
        && make

clean:
        rm -rf build CMakeCache.txt

++++++ _scmsync.obsinfo ++++++
--- /var/tmp/diff_new_pack.5POT5S/_old  2025-10-15 12:44:31.158736568 +0200
+++ /var/tmp/diff_new_pack.5POT5S/_new  2025-10-15 12:44:31.162736735 +0200
@@ -1,6 +1,6 @@
-mtime: 1760049853
-commit: db9766d6bd3427a28de3d6839f6f471ed86e6ae894bd85374497c35a2cc5dcdf
+mtime: 1760224634
+commit: 984b4bf4f2aada9069ea10fd24cedbfd7304d1b1bc74d792201a56543a747683
 url: https://src.opensuse.org/lua/lua-macros.git
-revision: db9766d6bd3427a28de3d6839f6f471ed86e6ae894bd85374497c35a2cc5dcdf
+revision: 984b4bf4f2aada9069ea10fd24cedbfd7304d1b1bc74d792201a56543a747683
 projectscmsync: https://src.opensuse.org/lua/_ObsPrj.git
 

++++++ build.specials.obscpio ++++++

++++++ build.specials.obscpio ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/.gitignore new/.gitignore
--- old/.gitignore      1970-01-01 01:00:00.000000000 +0100
+++ new/.gitignore      2025-10-12 01:17:32.000000000 +0200
@@ -0,0 +1,9 @@
+.osc
+_scmsync.obsinfo
+_buildconfig-*
+_buildinfo-*.xml
+lua-macros-*-build/
+*.obscpio
+*.osc
+_build.*
+.pbuild

++++++ macros.lua ++++++
--- /var/tmp/diff_new_pack.5POT5S/_old  2025-10-15 12:44:31.350744598 +0200
+++ /var/tmp/diff_new_pack.5POT5S/_new  2025-10-15 12:44:31.354744765 +0200
@@ -1,14 +1,39 @@
 # RPM macros for Lua
 
 # The major.minor version of Lua
-%lua_version %(lua -e 'print(_VERSION)' | cut -d ' ' -f 2)
-%lua_version_nodots %(lua -e 'print((string.gsub("%{lua_version}", "%.", 
"")))')
+%lua_version %{lua:
+local f = io.popen("lua -e 'print(_VERSION)'")
+local output = f:read("*a")
+f:close()
+local ver = output:match("Lua (%d%.%d)")
+print(ver)
+}
+%lua_version_nodots %{lua:
+  local ver = rpm.expand("%{lua_version}")
+  local nodots = ver:gsub("%.", "")
+  print(nodots)
+}
 
 # compiled modules should go here
 %lua_archdir %(pkgconf --variable=INSTALL_CMOD lua)
 
 # pure Lua modules should go here
-%lua_noarchdir %(pkgconf --variable=INSTALL_LMOD lua)
+%lua_noarchdir %{lua:
+local output = ""
+local f = io.popen("pkgconf --variable=INSTALL_LMOD lua")
+
+if f ~= nil then
+    output = f:read("*a"):gsub("^%s*(.-)%s*$", "%1")
+    f:close()
+end
+
+if output:len() > 0 then
+    print(output)
+    return
+end
+
+print(rpm.expand("%{_datadir}/lua/%{lua_version}"))
+}
 
 # lua includes folder
 %lua_incdir %(pkgconf --variable=includedir lua)
@@ -33,6 +58,7 @@
 %{nil}
 
 # Lua default version
+# This REQUIRES macro %{mod_name} to be defined.
 # -e: Exclude lua prefix
 # -n: Specify name
 %lua_provides(en:) \

Reply via email to