]> git.pld-linux.org Git - packages/gawk.git/commitdiff
- removed Prereq: /usr/sbin/fix-info-dir
authorSebastian Zagrodzki <sebek@zagrodzki.net>
Mon, 1 May 2000 20:11:40 +0000 (20:11 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- fix-info-dir in %pre/post is executed only when info is already
  installed

Changed files:
    gawk.spec -> 1.31

gawk.spec

index 3e337df20e091c0da75cd1b70d4a4969bec9f65a..b94acde3a537ba2a738267df5d1df5ae8f03c6af 100644 (file)
--- a/gawk.spec
+++ b/gawk.spec
@@ -18,7 +18,6 @@ Patch3:               gawk-DESTDIR.patch
 Patch4:                gawk-zero_flag.patch
 Requires:      mktemp
 Requires:      sed
-Prereq:                /usr/sbin/fix-info-dir
 BuildRequires: texinfo
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -91,10 +90,10 @@ gzip -9nf $RPM_BUILD_ROOT{%{_infodir}/gawk.info*,%{_mandir}/man1/*} \
        README_d/README.linux POSIX.STD
 
 %post
-/usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+[ -x /usr/sbin/fix-info-dir ] && /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
 
 %postun
-/usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+[ -x /usr/sbin/fix-info-dir ] && /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
 
 %clean
 rm -rf $RPM_BUILD_ROOT
This page took 0.096494 seconds and 4 git commands to generate.