forked from pool/mandoc
Use libalternatives for soelim #1
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 28 18:58:55 UTC 2026 - Antonio Teixeira <antonio.teixeira@suse.com>
|
||||
|
||||
- Use libalternatives for soelim, fixing conflict with groff.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 28 15:29:57 UTC 2026 - Matej Cepl <mcepl@cepl.eu>
|
||||
|
||||
|
||||
19
mandoc.spec
19
mandoc.spec
@@ -32,10 +32,14 @@ Patch0: boo1209830-endless-loop.patch
|
||||
# PATCH-FIX-OPENSUSE dont-change-rights.patch mcepl@suse.com
|
||||
# https://inbox.vuxu.org/mandoc-discuss/20210814145000.GC88512@athene.usta.de/T/#t
|
||||
Patch1: dont-change-rights.patch
|
||||
BuildRequires: alts
|
||||
BuildRequires: less
|
||||
BuildRequires: zlib-devel
|
||||
Requires: alts
|
||||
Requires: %{name}-bin = %{version}
|
||||
Requires: soelim-common
|
||||
Provides: man = %{version}
|
||||
Provides: soelim
|
||||
Conflicts: makewhat
|
||||
Conflicts: man
|
||||
# file triggers use rpm.execute()
|
||||
@@ -75,8 +79,17 @@ cp -fv %{buildroot}%{_bindir}/apropos %{_tmppath}/
|
||||
mv -fv %{_tmppath}/apropos %{buildroot}%{_sbindir}/makewhatis
|
||||
install -D -m 644 %{SOURCE1} %{buildroot}%{_rpmconfigdir}/lua/mandoc.lua
|
||||
|
||||
# the only conflict with groff, just remove it
|
||||
# conflicts with groff
|
||||
# remove roff manpage
|
||||
rm -v %{buildroot}%{_mandir}/man7/roff.7
|
||||
# use libalternatives config for soelim
|
||||
mv %{buildroot}%{_bindir}/soelim %{buildroot}%{_bindir}/mandoc-soelim
|
||||
mv %{buildroot}%{_mandir}/man1/soelim.1 %{buildroot}%{_mandir}/man1/mandoc-soelim.1
|
||||
mkdir -p %{buildroot}%{_datadir}/libalternatives/soelim
|
||||
cat > %{buildroot}%{_datadir}/libalternatives/soelim/5.conf <<EOF
|
||||
binary=%{_bindir}/mandoc-soelim
|
||||
man=mandoc-soelim.1
|
||||
EOF
|
||||
|
||||
# remove executable bits on manpages
|
||||
chmod -x %{buildroot}%{_mandir}/man*/*
|
||||
@@ -123,7 +136,7 @@ mandoc.done()
|
||||
%{_bindir}/apropos
|
||||
%{_bindir}/demandoc
|
||||
%{_bindir}/man
|
||||
%{_bindir}/soelim
|
||||
%{_bindir}/mandoc-soelim
|
||||
%{_bindir}/whatis
|
||||
%{_sbindir}/makewhatis
|
||||
%dir %{_rpmconfigdir}/lua
|
||||
@@ -133,6 +146,8 @@ mandoc.done()
|
||||
%{_mandir}/man7/*.7%{?ext_man}
|
||||
%{_mandir}/man8/*.8%{?ext_man}
|
||||
%ghost %{_mandir}/mandoc.db
|
||||
%dir %{_datadir}/libalternatives/soelim
|
||||
%{_datadir}/libalternatives/soelim/5.conf
|
||||
|
||||
%files bin
|
||||
%{_bindir}/mandoc
|
||||
|
||||
Reference in New Issue
Block a user