Accepting request 650161 from server:mail

- Repair ghost links used by update-alternatives

OBS-URL: https://build.opensuse.org/request/show/650161
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mailx?expand=0&rev=41
This commit is contained in:
Dominique Leuenberger 2018-11-20 21:30:36 +00:00 committed by Git OBS Bridge
commit 10edc49cde
2 changed files with 21 additions and 7 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Nov 19 09:47:38 UTC 2018 - Dr. Werner Fink <werner@suse.de>
- Repair ghost links used by update-alternatives
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Oct 31 18:30:32 UTC 2018 - Cristian Rodríguez <crrodriguez@opensuse.org> Wed Oct 31 18:30:32 UTC 2018 - Cristian Rodríguez <crrodriguez@opensuse.org>

View File

@ -12,7 +12,7 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/ # Please submit bugfixes or comments via http://bugs.opensuse.org/
# #
@ -96,11 +96,18 @@ minor enhancements like the ability to set a "From:" address.
%make_install PREFIX=/usr %make_install PREFIX=/usr
rm -rf %{buildroot}/bin rm -rf %{buildroot}/bin
mkdir %{buildroot}/bin mkdir %{buildroot}/bin
ln -sf ../usr/bin/mailx %{buildroot}/bin/mail mkdir -p %{buildroot}%{_sysconfdir}/alternatives
ln -sf mailx %{buildroot}/usr/bin/Mail ln -sf %{_sysconfdir}/alternatives/binmail %{buildroot}/bin/mail
ln -sf mailx %{buildroot}/usr/bin/mail ln -sf %{_sysconfdir}/alternatives/Mail %{buildroot}/usr/bin/Mail
ln -sf mailx.1.gz %{buildroot}%{_mandir}/man1/Mail.1.gz ln -sf %{_sysconfdir}/alternatives/mail %{buildroot}/usr/bin/mail
ln -sf mailx.1.gz %{buildroot}%{_mandir}/man1/mail.1.gz 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 %{_bindir}/mailx %{buildroot}%{_sysconfdir}/alternatives/binmail
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}
install -m 0644 mail.rc %{buildroot}/etc install -m 0644 mail.rc %{buildroot}/etc
mkdir -p %{buildroot}%{_defaultdocdir}/%{name} mkdir -p %{buildroot}%{_defaultdocdir}/%{name}
@ -113,7 +120,9 @@ minor enhancements like the ability to set a "From:" address.
--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 %preun
%{_sbindir}/update-alternatives --quiet --force --remove mail %{_bindir}/mu-mail if test ! -e %{_bindir}/mailx; then
%{_sbindir}/update-alternatives --quiet --force --remove mail %{_bindir}/mailx
fi
%files %files
%defattr(-,root,root) %defattr(-,root,root)