]> git.pld-linux.org Git - packages/plotutils.git/commitdiff
- removed Prereq: /usr/sbin/fix-info-dir
authorSebastian Zagrodzki <sebek@zagrodzki.net>
Mon, 1 May 2000 20:11:41 +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:
    plotutils.spec -> 1.16

plotutils.spec

index fd7988ea7949298d82a755aef101b8dc0c3be138..00c3eb663906ea295b00a3cbd02ed5d2f65bb7a0 100644 (file)
@@ -12,7 +12,6 @@ Source:               %{name}-%{version}.tar.gz
 URL:           http://www.gnu.org/software/plotutils/plotutils.html
 Requires:      libplot
 BuildRequires: libstdc++
-Prereq:                /usr/sbin/fix-info-dir
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -97,11 +96,11 @@ rm -rf $RPM_BUILD_ROOT
 
 %post
 /sbin/ldconfig
-/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 
 /sbin/ldconfig
-/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
 
 #######################################
 %files
This page took 0.721798 seconds and 4 git commands to generate.