From c6e51d06ebac6178978de5e285b7634eeb9e4985 Mon Sep 17 00:00:00 2001 From: Nikola Forró Date: Mar 01 2020 22:20:27 +0000 Subject: fix %pre scriptlet --- diff --git a/man-pages.spec b/man-pages.spec index 7311778..9199e17 100644 --- a/man-pages.spec +++ b/man-pages.spec @@ -7,7 +7,7 @@ Summary: Linux kernel and C library user-space interface documentation Name: man-pages Version: 5.04 -Release: 5%{?dist} +Release: 6%{?dist} License: GPL+ and GPLv2+ and BSD and MIT and Copyright only and IEEE URL: http://www.kernel.org/doc/man-pages/ Source: http://www.kernel.org/pub/linux/docs/man-pages/man-pages-%{version}.tar.xz @@ -92,7 +92,7 @@ touch %{buildroot}%{_mandir}/man7/man.7 %pre # remove alternativized files if they are not symlinks -[ -L %{_mandir}/man7/man.7.gz ] || rm -f %{_mandir}/man7/man.7.gz +[ -L %{_mandir}/man7/man.7.gz ] || %{__rm} -f %{_mandir}/man7/man.7.gz >/dev/null 2>&1 || : %post # set up the alternatives files @@ -118,6 +118,9 @@ fi %{_mandir}/man*/* %changelog +* Sun Mar 01 2020 Nikola Forró - 5.04-6 +- fix %pre scriptlet + * Fri Feb 28 2020 Nikola Forró - 5.04-5 - fix upgrades from non-alternativized versions