Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package mailx for openSUSE:Factory checked in at 2021-02-01 14:41:35
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/mailx (Old)
and /work/SRC/openSUSE:Factory/.mailx.new.28504 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "mailx"
Mon Feb 1 14:41:35 2021 rev:43 rq:867651 version:12.5
Changes:
--------
--- /work/SRC/openSUSE:Factory/mailx/mailx.changes 2021-01-10 19:38:56.889485945 +0100
+++ /work/SRC/openSUSE:Factory/.mailx.new.28504/mailx.changes 2021-02-01 14:41:35.720658472 +0100
@@ -1,0 +2,5 @@
+Wed Jan 27 12:27:13 UTC 2021 - Ludwig Nussel
+
+- update-alternatives call needs to be in postun rather than preun
+
+-------------------------------------------------------------------
@@ -5,0 +11,5 @@
+
+-------------------------------------------------------------------
+Fri Oct 16 10:12:58 UTC 2020 - Ludwig Nussel
+
+- prepare usrmerge (boo#1029961)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ mailx.spec ++++++
--- /var/tmp/diff_new_pack.DSaBvz/_old 2021-02-01 14:41:36.332659349 +0100
+++ /var/tmp/diff_new_pack.DSaBvz/_new 2021-02-01 14:41:36.332659349 +0100
@@ -1,7 +1,7 @@
#
# spec file for package mailx
#
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -26,7 +26,7 @@
BuildRequires: update-alternatives
BuildRequires: pkgconfig(openssl)
Requires(post): update-alternatives
-Requires(preun): update-alternatives
+Requires(postun): update-alternatives
URL: http://heirloom.sourceforge.net/mailx.html
Provides: mail
Recommends: smtp_daemon
@@ -100,13 +100,17 @@
rm -rf %{buildroot}/bin
mkdir %{buildroot}/bin
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
+%if !0%{?usrmerged}
ln -sf %{_sysconfdir}/alternatives/binmail %{buildroot}/bin/mail
+%endif
ln -sf %{_sysconfdir}/alternatives/Mail %{buildroot}/usr/bin/Mail
ln -sf %{_sysconfdir}/alternatives/mail %{buildroot}/usr/bin/mail
ln -sf %{_sysconfdir}/alternatives/Mail.1%{?ext_man} %{buildroot}%{_mandir}/man1/Mail.1%{?ext_man}
ln -sf %{_sysconfdir}/alternatives/mail.1%{?ext_man} %{buildroot}%{_mandir}/man1/mail.1%{?ext_man}
#
+%if !0%{?usrmerged}
ln -sf %{_bindir}/mailx %{buildroot}%{_sysconfdir}/alternatives/binmail
+%endif
ln -sf %{_bindir}/mailx %{buildroot}%{_sysconfdir}/alternatives/Mail
ln -sf %{_bindir}/mailx %{buildroot}%{_sysconfdir}/alternatives/mail
ln -sf %{_mandir}/man1/mailx.1%{?ext_man} %{buildroot}%{_sysconfdir}/alternatives/Mail.1%{?ext_man}
@@ -117,12 +121,14 @@
%post
%{_sbindir}/update-alternatives --quiet --force \
--install %{_bindir}/mail mail %{_bindir}/mailx 20 \
+%if !0%{?usrmerged}
--slave /bin/mail binmail %{_bindir}/mailx \
+%endif
--slave %{_bindir}/Mail Mail %{_bindir}/mailx \
--slave %{_mandir}/man1/mail.1%{?ext_man} mail.1%{?ext_man} %{_mandir}/man1/mailx.1%{?ext_man} \
--slave %{_mandir}/man1/Mail.1%{?ext_man} Mail.1%{?ext_man} %{_mandir}/man1/mailx.1%{?ext_man}
-%preun
+%postun
if test ! -e %{_bindir}/mailx; then
%{_sbindir}/update-alternatives --quiet --force --remove mail %{_bindir}/mailx
fi
@@ -131,9 +137,11 @@
%defattr(-,root,root)
%license COPYING
%doc README manual.ps.gz nail.rc
-/bin/mail
%config /etc/mail.rc
+%if !0%{?usrmerged}
+/bin/mail
%ghost %config %{_sysconfdir}/alternatives/binmail
+%endif
%ghost %config %{_sysconfdir}/alternatives/Mail
%ghost %config %{_sysconfdir}/alternatives/mail
%ghost %config %{_sysconfdir}/alternatives/Mail.1%{?ext_man}