Manual pages also should have alternatives
OBS-URL: https://build.opensuse.org/package/show/Base:System/man?expand=0&rev=98
This commit is contained in:
parent
1d5ffd2bc2
commit
39fce819e7
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 8 13:12:07 UTC 2019 - Dr. Werner Fink <werner@suse.de>
|
||||
|
||||
- Ah ... yes, manual pages are also provides by e.g. mandoc
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 7 07:59:37 UTC 2019 - Dr. Werner Fink <werner@suse.de>
|
||||
|
||||
|
17
man.spec
17
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
|
||||
|
Loading…
Reference in New Issue
Block a user