From a0ce68fd71a5e18c374b030297297c03e69c3f00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Forr=C3=B3?= Date: Sun, 1 Mar 2020 23:18:45 +0100 Subject: [PATCH] Fix %pre scriptlets --- groff.spec | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/groff.spec b/groff.spec index 479f8d3..bf1fa97 100644 --- a/groff.spec +++ b/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ó - 1.22.3-24 +- Fix %pre scriptlets + * Fri Feb 28 2020 Nikola Forró - 1.22.3-23 - Fix upgrades from non-alternativized versions