Accepting request 867514 from home:lnussel:usrmove
- update-alternatives call needs to be in postun rather than preun - prepare usrmerge (boo#1029961) OBS-URL: https://build.opensuse.org/request/show/867514 OBS-URL: https://build.opensuse.org/package/show/server:mail/mailx?expand=0&rev=67
This commit is contained in:
parent
dbe86bf863
commit
bca9fe0607
@ -1,9 +1,19 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jan 27 12:27:13 UTC 2021 - Ludwig Nussel <lnussel@suse.de>
|
||||||
|
|
||||||
|
- update-alternatives call needs to be in postun rather than preun
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Dec 25 10:51:08 UTC 2020 - Thorsten Kukuk <kukuk@suse.com>
|
Fri Dec 25 10:51:08 UTC 2020 - Thorsten Kukuk <kukuk@suse.com>
|
||||||
|
|
||||||
- fix-sendmail-name.patch: fix name argument when calling
|
- fix-sendmail-name.patch: fix name argument when calling
|
||||||
/usr/sbin/sendmail [bsc#1180355].
|
/usr/sbin/sendmail [bsc#1180355].
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Oct 16 10:12:58 UTC 2020 - Ludwig Nussel <lnussel@suse.de>
|
||||||
|
|
||||||
|
- prepare usrmerge (boo#1029961)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Nov 19 09:47:38 UTC 2018 - Dr. Werner Fink <werner@suse.de>
|
Mon Nov 19 09:47:38 UTC 2018 - Dr. Werner Fink <werner@suse.de>
|
||||||
|
|
||||||
|
16
mailx.spec
16
mailx.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package mailx
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -26,7 +26,7 @@ BuildRequires: postfix
|
|||||||
BuildRequires: update-alternatives
|
BuildRequires: update-alternatives
|
||||||
BuildRequires: pkgconfig(openssl)
|
BuildRequires: pkgconfig(openssl)
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(preun): update-alternatives
|
Requires(postun): update-alternatives
|
||||||
URL: http://heirloom.sourceforge.net/mailx.html
|
URL: http://heirloom.sourceforge.net/mailx.html
|
||||||
Provides: mail
|
Provides: mail
|
||||||
Recommends: smtp_daemon
|
Recommends: smtp_daemon
|
||||||
@ -100,13 +100,17 @@ minor enhancements like the ability to set a "From:" address.
|
|||||||
rm -rf %{buildroot}/bin
|
rm -rf %{buildroot}/bin
|
||||||
mkdir %{buildroot}/bin
|
mkdir %{buildroot}/bin
|
||||||
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
|
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
|
||||||
|
%if !0%{?usrmerged}
|
||||||
ln -sf %{_sysconfdir}/alternatives/binmail %{buildroot}/bin/mail
|
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 %{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}
|
||||||
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
|
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 %{_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}
|
ln -sf %{_mandir}/man1/mailx.1%{?ext_man} %{buildroot}%{_sysconfdir}/alternatives/Mail.1%{?ext_man}
|
||||||
@ -117,12 +121,14 @@ minor enhancements like the ability to set a "From:" address.
|
|||||||
%post
|
%post
|
||||||
%{_sbindir}/update-alternatives --quiet --force \
|
%{_sbindir}/update-alternatives --quiet --force \
|
||||||
--install %{_bindir}/mail mail %{_bindir}/mailx 20 \
|
--install %{_bindir}/mail mail %{_bindir}/mailx 20 \
|
||||||
|
%if !0%{?usrmerged}
|
||||||
--slave /bin/mail binmail %{_bindir}/mailx \
|
--slave /bin/mail binmail %{_bindir}/mailx \
|
||||||
|
%endif
|
||||||
--slave %{_bindir}/Mail Mail %{_bindir}/mailx \
|
--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} \
|
||||||
--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
|
if test ! -e %{_bindir}/mailx; then
|
||||||
%{_sbindir}/update-alternatives --quiet --force --remove mail %{_bindir}/mailx
|
%{_sbindir}/update-alternatives --quiet --force --remove mail %{_bindir}/mailx
|
||||||
fi
|
fi
|
||||||
@ -131,9 +137,11 @@ fi
|
|||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%license COPYING
|
%license COPYING
|
||||||
%doc README manual.ps.gz nail.rc
|
%doc README manual.ps.gz nail.rc
|
||||||
/bin/mail
|
|
||||||
%config /etc/mail.rc
|
%config /etc/mail.rc
|
||||||
|
%if !0%{?usrmerged}
|
||||||
|
/bin/mail
|
||||||
%ghost %config %{_sysconfdir}/alternatives/binmail
|
%ghost %config %{_sysconfdir}/alternatives/binmail
|
||||||
|
%endif
|
||||||
%ghost %config %{_sysconfdir}/alternatives/Mail
|
%ghost %config %{_sysconfdir}/alternatives/Mail
|
||||||
%ghost %config %{_sysconfdir}/alternatives/mail
|
%ghost %config %{_sysconfdir}/alternatives/mail
|
||||||
%ghost %config %{_sysconfdir}/alternatives/Mail.1%{?ext_man}
|
%ghost %config %{_sysconfdir}/alternatives/Mail.1%{?ext_man}
|
||||||
|
Loading…
Reference in New Issue
Block a user