]> git.pld-linux.org Git - packages/ed.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:
    ed.spec -> 1.19

ed.spec

diff --git a/ed.spec b/ed.spec
index e53304f0f1bcaba3735fbc0518633b833e1d90ed..ce48b905c281b85bbecebdf84b594a72ecbd9bc1 100644 (file)
--- a/ed.spec
+++ b/ed.spec
@@ -12,7 +12,6 @@ Group(pl):    Aplikacje/Edytory
 Source:                ftp://prep.ai.mit.edu/pub/gnu/ed/%{name}-%{version}.tar.gz
 Patch0:                ed-info.patch
 Patch1:                ed-autoconf.patch
-Prereq:                /usr/sbin/fix-info-dir
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _prefix         /usr
@@ -64,10 +63,10 @@ gzip -9nf $RPM_BUILD_ROOT{%{_mandir}/man1/*,%{_infodir}/*info*} \
        NEWS POSIX README
 
 %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.070156 seconds and 4 git commands to generate.