Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package swaylock for openSUSE:Factory 
checked in at 2023-01-17 17:35:23
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/swaylock (Old)
 and      /work/SRC/openSUSE:Factory/.swaylock.new.32243 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "swaylock"

Tue Jan 17 17:35:23 2023 rev:6 rq:1058817 version:1.7

Changes:
--------
--- /work/SRC/openSUSE:Factory/swaylock/swaylock.changes        2022-12-01 
17:00:00.403418165 +0100
+++ /work/SRC/openSUSE:Factory/.swaylock.new.32243/swaylock.changes     
2023-01-17 17:35:34.605272611 +0100
@@ -1,0 +2,5 @@
+Mon Jan 16 13:37:35 UTC 2023 - Stefan Schubert <sch...@suse.com>
+
+- Migration of PAM settings to /usr/lib/pam.d. 
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ swaylock.spec ++++++
--- /var/tmp/diff_new_pack.24Jgjn/_old  2023-01-17 17:35:35.369277043 +0100
+++ /var/tmp/diff_new_pack.24Jgjn/_new  2023-01-17 17:35:35.373277065 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package swaylock
 #
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -79,10 +79,30 @@
 
 %install
 %meson_install
+%if 0%{?suse_version} > 1500
+mkdir -p %{buildroot}%{_pam_vendordir}
+mv %{buildroot}%{_sysconfdir}/pam.d/swaylock %{buildroot}%{_pam_vendordir}
+
+%pre
+# Prepare for migration to /usr/lib; save any old .rpmsave
+for i in pam.d/swaylock ; do
+     test -f %{_sysconfdir}/${i}.rpmsave && mv -v %{_sysconfdir}/${i}.rpmsave 
%{_sysconfdir}/${i}.rpmsave.old ||:
+done
+
+%posttrans
+# Migration to /usr/lib, restore just created .rpmsave
+for i in pam.d/swaylock ; do
+     test -f %{_sysconfdir}/${i}.rpmsave && mv -v %{_sysconfdir}/${i}.rpmsave 
%{_sysconfdir}/${i} ||:
+done
+%endif
 
 %files
 %{_bindir}/swaylock
+%if 0%{?suse_version} > 1500
+%{_pam_vendordir}/swaylock
+%else
 %config %{_sysconfdir}/pam.d/swaylock
+%endif
 %{_mandir}/man1/swaylock.1%{?ext_man}
 
 %files bash-completion

Reply via email to