From 39fce819e74c648084eb007bb0b071f3c2a2f087485f4b5b7d7a4dd0fc99812b Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Fri, 8 Mar 2019 13:14:55 +0000 Subject: [PATCH] Manual pages also should have alternatives OBS-URL: https://build.opensuse.org/package/show/Base:System/man?expand=0&rev=98 --- man.changes | 5 +++++ man.spec | 17 +++++++++++++++-- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/man.changes b/man.changes index 53351ed..757720c 100644 --- a/man.changes +++ b/man.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Mar 8 13:12:07 UTC 2019 - Dr. Werner Fink + +- Ah ... yes, manual pages are also provides by e.g. mandoc + ------------------------------------------------------------------- Thu Mar 7 07:59:37 UTC 2019 - Dr. Werner Fink diff --git a/man.spec b/man.spec index e0a1ba1..efc4e07 100644 --- a/man.spec +++ b/man.spec @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # 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/ # @@ -233,6 +233,13 @@ fi ln -sf manpath.5%{?ext_man} $d/manpath.config.5%{?ext_man} done + for man in apropos man whatis + do + mv man1/${man}.1%{?ext_man} man1/${man}-db.1%{?ext_man} + ln -sf %{_sysconfdir}/alternatives/${man}.1%{?ext_man} man1/${man}.1%{?ext_man} + ln -sf %{_mandir}/man1/${man}-db.1%{?ext_man} %{buildroot}%{_sysconfdir}/alternatives/${man}.1%{?ext_man} + done + # remove japanese pages, as they are in man-pages-ja # (need to cross verify at some point that they are up to date there) rm -rf ja @@ -283,7 +290,10 @@ test -d var/catman/ && rm -rf var/catman/ || true %{_sbindir}/update-alternatives --quiet --force \ --install %{_bindir}/man man %{_libexecdir}/man-db/wrapper 1010 \ --slave %{_bindir}/apropos apropos %{_libexecdir}/man-db/whatis \ - --slave %{_bindir}/whatis whatis %{_libexecdir}/man-db/whatis + --slave %{_bindir}/whatis whatis %{_libexecdir}/man-db/whatis \ + --slave %{_mandir}/man1/man.1%{?ext_man} man.1%{?ext_man} %{_mandir}/man1/man-db.1%{?ext_man} \ + --slave %{_mandir}/man1/apropos.1%{?ext_man} apropos.1%{?ext_man} %{_mandir}/man1/apropos-db.1%{?ext_man} \ + --slave %{_mandir}/man1/whatis.1%{?ext_man} whatis.1%{?ext_man} %{_mandir}/man1/whatis-db.1%{?ext_man} %preun %service_del_preun man-db-create.service @@ -317,6 +327,9 @@ test -d /var/cache/man && mandb --quiet --create ||: %ghost %config %{_sysconfdir}/alternatives/man %ghost %config %{_sysconfdir}/alternatives/apropos %ghost %config %{_sysconfdir}/alternatives/whatis +%ghost %config %{_sysconfdir}/alternatives/man.1%{ext_man} +%ghost %config %{_sysconfdir}/alternatives/apropos.1%{ext_man} +%ghost %config %{_sysconfdir}/alternatives/whatis.1%{ext_man} %{_bindir}/man %{_bindir}/apropos %{_bindir}/whatis