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

a2ps.spec

index fce86d93f760e3c4a1752c081e2c6109d0cd951c..59aaa135ab698504a9911ee5b9ee200940454246 100644 (file)
--- a/a2ps.spec
+++ b/a2ps.spec
@@ -8,7 +8,6 @@ Group:          Utilities/Text
 Group(pl):     Narzêdzia/Tekst
 Source:                ftp://ftp.enst.fr/pub/unix/a2ps/%{name}-%{version}.tar.gz
 Patch0:                a2ps-info.patch
-Prereq:                /usr/sbin/fix-info-dir
 Prereq:                /sbin/ldconfig
 URL:           http://www.inf.enst.fr/~demaille/a2ps/
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -91,11 +90,11 @@ gzip -9nf $RPM_BUILD_ROOT%{_infodir}/* \
 rm -rf $RPM_BUILD_ROOT
 
 %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
 /sbin/ldconfig
 
 %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
 /sbin/ldconfig
 
 %files -f %{name}.lang
This page took 0.094506 seconds and 4 git commands to generate.