From 83a796d9b34337596766797e7229cdf6ac2659ea875bc78c356e732affeac7cc Mon Sep 17 00:00:00 2001 From: Antonio Teixeira Date: Wed, 28 Jan 2026 15:59:41 -0300 Subject: [PATCH] Use libalternatives for soelim --- mandoc.changes | 5 +++++ mandoc.spec | 19 +++++++++++++++++-- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/mandoc.changes b/mandoc.changes index a9d9889..0a42153 100644 --- a/mandoc.changes +++ b/mandoc.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jan 28 18:58:55 UTC 2026 - Antonio Teixeira + +- Use libalternatives for soelim, fixing conflict with groff. + ------------------------------------------------------------------- Wed Jan 28 15:29:57 UTC 2026 - Matej Cepl diff --git a/mandoc.spec b/mandoc.spec index ec87c4a..4c57c5e 100644 --- a/mandoc.spec +++ b/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 <