Use default names for binaries and man pages
If the names are changed, alternativized binares don't work, because mandoc expects to be invoked as "man.mandoc", not "man" for instance.
This commit is contained in:
parent
3e3cd43bf0
commit
a11aeace27
28
mandoc.spec
28
mandoc.spec
@ -67,19 +67,7 @@ echo 'LIBDIR=%{_libdir}' >> configure.local
|
||||
# with default settings rpmlint complains about cross-directory hardlinks
|
||||
echo 'LN="ln -sf"' >> configure.local
|
||||
|
||||
# change the names of binaries, conf files, and section 7 man pages
|
||||
# to avoid conflicts with man-db and groff
|
||||
echo 'MANM_MANCONF=mandoc.conf' >> configure.local
|
||||
echo 'BINM_MAN=man.mandoc' >> configure.local
|
||||
echo 'BINM_APROPOS=apropos.mandoc' >> configure.local
|
||||
echo 'BINM_WHATIS=whatis.mandoc' >> configure.local
|
||||
echo 'BINM_MAKEWHATIS=makewhatis.mandoc' >> configure.local
|
||||
echo 'BINM_SOELIM=soelim.mandoc' >> configure.local
|
||||
echo 'MANM_MAN=man.mandoc' >> configure.local
|
||||
echo 'MANM_MDOC=mdoc.mandoc' >> configure.local
|
||||
echo 'MANM_ROFF=roff.mandoc' >> configure.local
|
||||
echo 'MANM_EQN=eqn.mandoc' >> configure.local
|
||||
echo 'MANM_TBL=tbl.mandoc' >> configure.local
|
||||
|
||||
# override the install permissions so that owner-write bits are set,
|
||||
# so rpmbuild can do whatever modifications it does post-%%install
|
||||
@ -98,6 +86,22 @@ make %{?_smp_mflags}
|
||||
%install
|
||||
%make_install
|
||||
|
||||
# Rename files for alternative usage
|
||||
mv %{buildroot}%{_bindir}/man %{buildroot}%{_bindir}/man.mandoc
|
||||
mv %{buildroot}%{_bindir}/apropos %{buildroot}%{_bindir}/apropos.mandoc
|
||||
mv %{buildroot}%{_bindir}/whatis %{buildroot}%{_bindir}/whatis.mandoc
|
||||
mv %{buildroot}%{_bindir}/soelim %{buildroot}%{_bindir}/soelim.mandoc
|
||||
mv %{buildroot}%{_sbindir}/makewhatis %{buildroot}%{_sbindir}/makewhatis.mandoc
|
||||
mv %{buildroot}%{_mandir}/man1/apropos.1 %{buildroot}%{_mandir}/man1/apropos.mandoc.1
|
||||
mv %{buildroot}%{_mandir}/man1/man.1 %{buildroot}%{_mandir}/man1/man.mandoc.1
|
||||
mv %{buildroot}%{_mandir}/man1/soelim.1 %{buildroot}%{_mandir}/man1/soelim.mandoc.1
|
||||
mv %{buildroot}%{_mandir}/man1/whatis.1 %{buildroot}%{_mandir}/man1/whatis.mandoc.1
|
||||
mv %{buildroot}%{_mandir}/man7/man.7 %{buildroot}%{_mandir}/man7/man.mandoc.7
|
||||
mv %{buildroot}%{_mandir}/man7/mdoc.7 %{buildroot}%{_mandir}/man7/mdoc.mandoc.7
|
||||
mv %{buildroot}%{_mandir}/man7/roff.7 %{buildroot}%{_mandir}/man7/roff.mandoc.7
|
||||
mv %{buildroot}%{_mandir}/man7/eqn.7 %{buildroot}%{_mandir}/man7/eqn.mandoc.7
|
||||
mv %{buildroot}%{_mandir}/man7/tbl.7 %{buildroot}%{_mandir}/man7/tbl.mandoc.7
|
||||
mv %{buildroot}%{_mandir}/man8/makewhatis.8 %{buildroot}%{_mandir}/man8/makewhatis.mandoc.8
|
||||
|
||||
# Touch all the locations that update-alternatives will use
|
||||
touch %{buildroot}%{_bindir}/man
|
||||
|
Loading…
Reference in New Issue
Block a user