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 2021-06-15 16:36:52
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/lua-macros (Old)
 and      /work/SRC/openSUSE:Factory/.lua-macros.new.32437 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "lua-macros"

Tue Jun 15 16:36:52 2021 rev:6 rq:899445 version:20170611

Changes:
--------
--- /work/SRC/openSUSE:Factory/lua-macros/lua-macros.changes    2021-04-15 
16:56:38.630600867 +0200
+++ /work/SRC/openSUSE:Factory/.lua-macros.new.32437/lua-macros.changes 
2021-06-15 16:37:07.813672000 +0200
@@ -1,0 +2,6 @@
+Thu Jun 10 16:58:39 UTC 2021 - Callum Farmer <gm...@opensuse.org>
+
+- Add -n (name) option to %lua_provides
+- Use lua instead of perl for %lua_version_nodots
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ macros.lua ++++++
--- /var/tmp/diff_new_pack.Wf3iRW/_old  2021-06-15 16:37:08.361672948 +0200
+++ /var/tmp/diff_new_pack.Wf3iRW/_new  2021-06-15 16:37:08.361672948 +0200
@@ -2,7 +2,7 @@
 
 # The major.minor version of Lua
 %lua_version %(lua -e 'print(_VERSION)' | cut -d ' ' -f 2)
-%lua_version_nodots %(perl -e "print %{lua_version}*10")
+%lua_version_nodots %(lua -e 'print(math.floor((%{lua_version}*10)))')
 
 # compiled modules should go here
 %lua_archdir %{_libdir}/lua/%{lua_version}
@@ -15,8 +15,13 @@
 
 # Lua default version
 # -e: Exclude lua prefix
-%lua_provides(e) \
+# -n: Specify name
+%lua_provides(en:) \
 %if "%{flavor}" == "lua54" \
+%if 0%{?-n:1} \
+Provides: %{-n*} = %{version}-%{release} \
+Obsoletes: %{-n*} < %{version}-%{release} \
+%else \
 %if 0%{?-e:1} \
 Provides: %{mod_name} = %{version}-%{release} \
 Obsoletes: %{mod_name} < %{version}-%{release} \
@@ -25,4 +30,5 @@
 Obsoletes: lua-%{mod_name} < %{version}-%{release} \
 %endif \
 %endif \
+%endif \
 %{nil}

Reply via email to