Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package lua-lmod for openSUSE:Factory 
checked in at 2023-02-08 17:20:11
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/lua-lmod (Old)
 and      /work/SRC/openSUSE:Factory/.lua-lmod.new.4462 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "lua-lmod"

Wed Feb  8 17:20:11 2023 rev:37 rq:1063843 version:8.7.17

Changes:
--------
--- /work/SRC/openSUSE:Factory/lua-lmod/lua-lmod.changes        2023-01-14 
00:04:11.086048864 +0100
+++ /work/SRC/openSUSE:Factory/.lua-lmod.new.4462/lua-lmod.changes      
2023-02-08 17:20:37.422040513 +0100
@@ -1,0 +2,14 @@
+Tue Feb  7 19:25:14 UTC 2023 - Egbert Eich <e...@suse.com>
+
+- Match the Lua version and version name suffix of Lua libraries
+  in Requires: to what has been used for building. Also set the
+  minimal Lua version required by Lmod (bsc#1207970).
+- Do not 'Require:' lua interpreter explicitly: this will be
+  handled by an auto-generated dependency.
+- After a discussion with Dominique (dims...@opensuse.org)
+  he agreed to define the preferred Lua vesion in %%lua_pref
+  in the ProjConfig of oS:Factory so that it can be used in
+  'BuildRequires:'. Take advantage of this new value (with a
+  fallback).
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ lua-lmod.spec ++++++
--- /var/tmp/diff_new_pack.EIFWne/_old  2023-02-08 17:20:37.994043321 +0100
+++ /var/tmp/diff_new_pack.EIFWne/_new  2023-02-08 17:20:37.998043341 +0100
@@ -26,6 +26,10 @@
 %define build_pdf 1
 %endif
 
+%define lmod_min_lua_version 5.1
+%define version_name_suffix() %{lua: 
x=string.gsub(rpm.expand("%*"),"([0-9]+)%.([0-9]+).*","%1%2"); print(x)}
+%{!?lua_pref:%define lua_pref lua}
+
 %define lua_lmod_modulesdir %{_datarootdir}/lmod/modulefiles
 %define lua_lmod_admin_modulesdir %{_datarootdir}/lmod/admin/modulefiles
 %define lua_lmod_moduledeps %{_datarootdir}/lmod/moduledeps
@@ -44,19 +48,19 @@
 Patch1:         
Messages-Remove-message-about-creating-a-consulting-ticket.patch
 Patch2:         Doc-Ugly-workaround-for-bug-in-Sphinx.patch
 
+BuildRequires:  %{lua_pref} >= %{lmod_min_lua_version}
+BuildRequires:  %{lua_pref}-devel >= %{lmod_min_lua_version}
+BuildRequires:  %{lua_pref}-luafilesystem
+BuildRequires:  %{lua_pref}-luaposix
+BuildRequires:  %{lua_pref}-luaterm
 BuildRequires:  bc
-BuildRequires:  lua >= %{lua_version}
-BuildRequires:  lua-devel >= %{lua_version}
-BuildRequires:  lua-luafilesystem
-BuildRequires:  lua-luaposix
-BuildRequires:  lua-luaterm
 BuildRequires:  procps
 BuildRequires:  rsync
 BuildRequires:  tcl
-Requires:       lua >= %{lua_version}
-Requires:       lua-luafilesystem
-Requires:       lua-luaposix
-Requires:       lua-luaterm
+# Do not require a lua interpreter directly, this will be handled implicitly
+Requires:       lua%{version_name_suffix %lua_version}-luafilesystem
+Requires:       lua%{version_name_suffix %lua_version}-luaposix
+Requires:       lua%{version_name_suffix %lua_version}-luaterm
 Requires:       tcl
 Conflicts:      Modules
 %if 0%{suse_version} >= 1550

Reply via email to