Fix %pre scriptlets
This commit is contained in:
parent
9c9fe94dd0
commit
a0ce68fd71
11
groff.spec
11
groff.spec
@ -3,7 +3,7 @@
|
||||
Summary: A document formatting system
|
||||
Name: groff
|
||||
Version: 1.22.3
|
||||
Release: 23%{?dist}
|
||||
Release: 24%{?dist}
|
||||
License: GPLv3+ and GFDL and BSD and MIT
|
||||
URL: http://www.gnu.org/software/groff/
|
||||
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
|
||||
# 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
|
||||
# set up the alternatives files
|
||||
@ -179,8 +179,8 @@ fi
|
||||
|
||||
%pre base
|
||||
# remove alternativized files if they are not symlinks
|
||||
[ -L %{_bindir}/soelim ] || rm -f %{_bindir}/soelim
|
||||
[ -L %{_mandir}/man1/soelim.1.gz ] || rm -f %{_mandir}/man1/soelim.1.gz
|
||||
[ -L %{_bindir}/soelim ] || %{__rm} -f %{_bindir}/soelim >/dev/null 2>&1 || :
|
||||
[ -L %{_mandir}/man1/soelim.1.gz ] || %{__rm} -f %{_mandir}/man1/soelim.1.gz >/dev/null 2>&1 || :
|
||||
|
||||
%post base
|
||||
# set up the alternatives files
|
||||
@ -471,6 +471,9 @@ fi
|
||||
%doc %{_pkgdocdir}/pdf/
|
||||
|
||||
%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
|
||||
- Fix upgrades from non-alternativized versions
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user