Fix %pre scriptlets

This commit is contained in:
Nikola Forró 2020-03-01 23:18:45 +01:00
parent 9c9fe94dd0
commit a0ce68fd71

View File

@ -3,7 +3,7 @@
Summary: A document formatting system Summary: A document formatting system
Name: groff Name: groff
Version: 1.22.3 Version: 1.22.3
Release: 23%{?dist} Release: 24%{?dist}
License: GPLv3+ and GFDL and BSD and MIT License: GPLv3+ and GFDL and BSD and MIT
URL: http://www.gnu.org/software/groff/ URL: http://www.gnu.org/software/groff/
Source: ftp://ftp.gnu.org/gnu/groff/groff-%{version}.tar.gz Source: ftp://ftp.gnu.org/gnu/groff/groff-%{version}.tar.gz
@ -158,7 +158,7 @@ sed --in-place 's|#! /bin/sed -f|#! /usr/bin/sed -f|' %{buildroot}%{_datadir}/gr
%pre %pre
# remove alternativized files if they are not symlinks # remove alternativized files if they are not symlinks
[ -L %{_mandir}/man7/roff.7.gz ] || rm -f %{_mandir}/man7/roff.7.gz [ -L %{_mandir}/man7/roff.7.gz ] || %{__rm} -f %{_mandir}/man7/roff.7.gz >/dev/null 2>&1 || :
%post %post
# set up the alternatives files # set up the alternatives files
@ -179,8 +179,8 @@ fi
%pre base %pre base
# remove alternativized files if they are not symlinks # remove alternativized files if they are not symlinks
[ -L %{_bindir}/soelim ] || rm -f %{_bindir}/soelim [ -L %{_bindir}/soelim ] || %{__rm} -f %{_bindir}/soelim >/dev/null 2>&1 || :
[ -L %{_mandir}/man1/soelim.1.gz ] || rm -f %{_mandir}/man1/soelim.1.gz [ -L %{_mandir}/man1/soelim.1.gz ] || %{__rm} -f %{_mandir}/man1/soelim.1.gz >/dev/null 2>&1 || :
%post base %post base
# set up the alternatives files # set up the alternatives files
@ -471,6 +471,9 @@ fi
%doc %{_pkgdocdir}/pdf/ %doc %{_pkgdocdir}/pdf/
%changelog %changelog
* Sun Mar 01 2020 Nikola Forró <nforro@redhat.com> - 1.22.3-24
- Fix %pre scriptlets
* Fri Feb 28 2020 Nikola Forró <nforro@redhat.com> - 1.22.3-23 * Fri Feb 28 2020 Nikola Forró <nforro@redhat.com> - 1.22.3-23
- Fix upgrades from non-alternativized versions - Fix upgrades from non-alternativized versions