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-07-06 18:28:39
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/lua-lmod (Old)
 and      /work/SRC/openSUSE:Factory/.lua-lmod.new.23466 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "lua-lmod"

Thu Jul  6 18:28:39 2023 rev:38 rq:1097041 version:8.7.17

Changes:
--------
--- /work/SRC/openSUSE:Factory/lua-lmod/lua-lmod.changes        2023-02-08 
17:20:37.422040513 +0100
+++ /work/SRC/openSUSE:Factory/.lua-lmod.new.23466/lua-lmod.changes     
2023-07-06 18:28:43.711166236 +0200
@@ -1,0 +2,9 @@
+Tue Jul  4 17:08:22 UTC 2023 - Egbert Eich <e...@suse.com>
+
+- Add apparmor bash abstraction for Lmod (bsc#1212837).
+- Create an rpmlint file.
+- Rename Provides: modules to environment-modules. This way,
+  it is compatible with the other provider.
+- Stop building on 32 bit.
+
+-------------------------------------------------------------------

New:
----
  lua-lmod-rpmlintrc

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

Other differences:
------------------
++++++ lua-lmod.spec ++++++
--- /var/tmp/diff_new_pack.nsS3B8/_old  2023-07-06 18:28:44.439170705 +0200
+++ /var/tmp/diff_new_pack.nsS3B8/_new  2023-07-06 18:28:44.443170731 +0200
@@ -26,6 +26,8 @@
 %define build_pdf 1
 %endif
 
+ExcludeArch:    i586 %arm s390
+
 %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}
@@ -45,6 +47,7 @@
 Release:        0
 URL:            https://github.com/TACC/Lmod
 Source0:        
https://github.com/TACC/Lmod/archive/%{version}.tar.gz#$/%{name}-%{version}.tar.gz
+Source1:        %{name}-rpmlintrc
 Patch1:         
Messages-Remove-message-about-creating-a-consulting-ticket.patch
 Patch2:         Doc-Ugly-workaround-for-bug-in-Sphinx.patch
 
@@ -62,15 +65,17 @@
 Requires:       lua%{version_name_suffix %lua_version}-luaposix
 Requires:       lua%{version_name_suffix %lua_version}-luaterm
 Requires:       tcl
+Requires:       (lua-lmod-apparmor-abstractions if apparmor-abstractions)
 Conflicts:      Modules
 %if 0%{suse_version} >= 1550
 BuildRequires:  python3-Sphinx
 %else
 BuildRequires:  python-Sphinx
 %endif
+Provides:       environment-modules
 Provides:       lua-lmod-man = %{version}-%{release}
 Provides:       ml = %{version}
-Provides:       modules = %{version}
+Conflicts:      environment-modules
 %if 0%{?build_pdf:1}
 
 %if 0%{suse_version} >= 1550
@@ -130,6 +135,16 @@
 %description doc
 Documentation (pdf) for the Lmod Environment Modules System.
 
+%package apparmor-abstractions
+Summary:        Apparmor bash Abstraction for Lmod
+BuildRequires:  apparmor-abstractions
+BuildRequires:  apparmor-rpm-macros
+Requires:       apparmor-abstractions
+BuildArch:      noarch
+
+%description apparmor-abstractions
+Profile for shell source scripts for lua-lmod
+
 %prep
 %setup -q -n Lmod-%{version}
 %patch1 -p1
@@ -266,11 +281,21 @@
 module try-add suse-hpc
 
 EOF
+install -d -m755 %{buildroot}%{_sysconfdir}/apparmor.d/abstractions/bash.d
+cat <<EOF > %{buildroot}%{_sysconfdir}/apparmor.d/abstractions/bash.d/lmod
+   abi <abi/3.0>,
+
+   %_datadir/lmod/%{version}/init/*    r,
+EOF
 
 mkdir -p %{buildroot}/%{_mandir}/man1
 install -p -m644 docs/build/man/lmod.1 %{buildroot}/%{_mandir}/man1/
 %endif
 
+%posttrans apparmor-abstractions
+rm -rf /var/cache/apparmor/* 2>/dev/null
+systemctl is-active -q apparmor && systemctl reload apparmor ||:
+
 %if 0%{!?build_pdf:1}
 %files
 %license License
@@ -284,6 +309,10 @@
 %{_rpmmacrodir}/macros.lmod
 %{_datadir}/lmod/*
 %{_mandir}/man1/lmod.1.*
+
+%files apparmor-abstractions
+%dir %{_sysconfdir}/apparmor.d/abstractions/bash.d
+%{_sysconfdir}/apparmor.d/abstractions/bash.d/lmod
 %endif
 
 %if 0%{?build_pdf}

++++++ lua-lmod-rpmlintrc ++++++
# lua-lmod contains some arch-specific paths so it cannot be marked 'noarch'.
addFilter("lua-lmod.*: (W|E): no-binary")

Reply via email to