- Add %{_sbindir}/makewhatis to the alternatives mechanism to

avoid conflict with the mandoc package.

OBS-URL: https://build.opensuse.org/package/show/Documentation/mandoc?expand=0&rev=2
This commit is contained in:
Matej Cepl 2019-12-16 13:53:54 +00:00 committed by Git OBS Bridge
parent 1d24bf1819
commit 38d3a0a3a7
2 changed files with 12 additions and 1 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Dec 16 14:43:39 CET 2019 - Matej Cepl <mcepl@suse.com>
- Add %{_sbindir}/makewhatis to the alternatives mechanism to
avoid conflict with the mandoc package.
-------------------------------------------------------------------
Sun Mar 10 17:27:07 CET 2019 - Matej Cepl <mcepl@suse.com>

View File

@ -64,6 +64,9 @@ for cmd in apropos man soelim ; do
ln -s -f %{_sysconfdir}/alternatives/$cmd %{buildroot}%{_bindir}/$cmd
done
mv %{buildroot}%{_sbindir}/makewhatis{,.mandoc}
ln -s -f %{_sysconfdir}/alternatives/makewhatis %{buildroot}%{_sbindir}/makewhatis
# sec 1
for man in apropos man soelim whatis ; do
from=$(ls %{buildroot}%{_mandir}/man1/$man.1*)
@ -84,6 +87,7 @@ update-alternatives --install \
%{_bindir}/man man %{_bindir}/man.mandoc 1000 \
--slave %{_bindir}/apropos apropos %{_bindir}/apropos.mandoc \
--slave %{_bindir}/soelim soelim %{_bindir}/soelim.mandoc \
--slave %{_sbindir}/makewhatis makewhatis %{_sbindir}/makewhatis.mandoc \
--slave %{_mandir}/man1/apropos.1%{?ext_man} apropos.1%{?ext_man} %{_mandir}/man1/apropos-mandoc.1%{?ext_man} \
--slave %{_mandir}/man1/man.1%{?ext_man} man.1%{?ext_man} %{_mandir}/man1/man-mandoc.1%{?ext_man} \
--slave %{_mandir}/man1/soelim.1%{?ext_man} soelim.1%{?ext_man} %{_mandir}/man1/soelim-mandoc.1%{?ext_man} \
@ -108,7 +112,7 @@ fi
%{_bindir}/man*
%{_bindir}/soelim*
%{_bindir}/whatis
%{_sbindir}/makewhatis
%{_sbindir}/makewhatis*
%{_mandir}/man1/*.1%{?ext_man}
%{_mandir}/man5/*.5%{?ext_man}
%{_mandir}/man7/*.7%{?ext_man}
@ -116,6 +120,7 @@ fi
%ghost %{_sysconfdir}/alternatives/man
%ghost %{_sysconfdir}/alternatives/apropos
%ghost %{_sysconfdir}/alternatives/soelim
%ghost %{_sysconfdir}/alternatives/makewhatis
%ghost %{_sysconfdir}/alternatives/apropos.1%{?ext_man}
%ghost %{_sysconfdir}/alternatives/man.1%{?ext_man}
%ghost %{_sysconfdir}/alternatives/soelim.1%{?ext_man}