From 8915664389b3ea51784233ea5aa9005d7d1dc905 Mon Sep 17 00:00:00 2001 From: vcrhonek Date: Thu, 3 Sep 2009 10:26:21 +0000 Subject: Fix errors installing m4 with --excludedocs --- m4.spec | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/m4.spec b/m4.spec index 08ad431..7efd15d 100644 --- a/m4.spec +++ b/m4.spec @@ -1,7 +1,7 @@ Summary: The GNU macro processor Name: m4 Version: 1.4.13 -Release: 3%{?dist} +Release: 4%{?dist} License: GPLv3+ Group: Applications/Text Source: http://ftp.gnu.org/gnu/m4/m4-%{version}.tar.xz @@ -44,17 +44,25 @@ make %{?_smp_mflags} check %{_mandir}/man1/m4.1* %post -/sbin/install-info %{_infodir}/m4.info %{_infodir}/dir || : +if [ -f %{_infodir}/m4.info ]; then # --excludedocs? + /sbin/install-info %{_infodir}/m4.info %{_infodir}/dir || : +fi %preun if [ "$1" = 0 ]; then - /sbin/install-info --delete %{_infodir}/m4.info %{_infodir}/dir || : + if [ -f %{_infodir}/m4.info ]; then # --excludedocs? + /sbin/install-info --delete %{_infodir}/m4.info %{_infodir}/dir || : + fi fi %clean rm -rf $RPM_BUILD_ROOT %changelog +* Thu Sep 3 2009 Vitezslav Crhonek - 1.4.13-4 +- Fix errors installing m4 with --excludedocs + Resolves: #516013 + * Wed Aug 12 2009 Ville Skyttä - 1.4.13-3 - Use xz compressed upstream tarball. -- cgit