Fix crash when mandoc install

This commit is contained in:
lilong 2023-12-22 14:18:53 +08:00
parent fdbde9de48
commit ad59b68f97

View File

@ -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 <lilong@kylinos.cn> - 1.22.4-11
- Fix crash when mandoc install
* Tue Oct 25 2022 yanglongkang <yanglongkang@h-partners.com> - 1.22.4-10
- rebuild for next release