From ad59b68f979319cb490a7b96d34f9acb9c731fc4 Mon Sep 17 00:00:00 2001 From: lilong Date: Fri, 22 Dec 2023 14:18:53 +0800 Subject: [PATCH] Fix crash when mandoc install --- groff.spec | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/groff.spec b/groff.spec index f37d100..180a962 100644 --- a/groff.spec +++ b/groff.spec @@ -2,7 +2,7 @@ %{!?with_x:%global with_x 1} Name: groff Version: 1.22.4 -Release: 10 +Release: 11 Summary: A typesetting system License: GPLv3+ and GFDL and BSD and MIT URL: http://www.gnu.org/software/groff/ @@ -87,6 +87,12 @@ done %install %make_install +#rename files for alternative usage +mv %{buildroot}%{_bindir}/soelim %{buildroot}%{_bindir}/soelim.%{name} +touch %{buildroot}%{_bindir}/soelim +mv %{buildroot}%{_mandir}/man1/soelim.1 %{buildroot}%{_mandir}/man1/soelim.%{name}.1 +touch %{buildroot}%{_mandir}/man1/soelim.1 + # some binaries need alias with 'g' or 'z' prefix for file in g{nroff,troff,tbl,pic,eqn,neqn,refer,lookbib,indxbib,soelim} zsoelim; do ln -s ${file#?} %{buildroot}%{_bindir}/${file} @@ -283,9 +289,12 @@ make check %{_bindir}/post-grohtml %{_bindir}/pre-grohtml %{_bindir}/preconv -%{_bindir}/soelim +%ghost %{_bindir}/soelim +%{_bindir}/soelim.%{name} %{_bindir}/tbl %{_bindir}/troff +%ghost %{_mandir}/man1/soelim.1* +%{_mandir}/man1/soelim.%{name}.* %{_bindir}/gnroff %{_bindir}/gtroff %{_bindir}/gtbl @@ -320,6 +329,9 @@ make check %{_infodir}/groff.info* %changelog +* Fri Dec 22 2023 lilong - 1.22.4-11 +- Fix crash when mandoc install + * Tue Oct 25 2022 yanglongkang - 1.22.4-10 - rebuild for next release