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

grep.spec

index eb930e357d1eda9d08dcf00f69db856b3b005ef9..ca0b809b826631000df5dffa607258b239f142a8 100644 (file)
--- a/grep.spec
+++ b/grep.spec
@@ -13,7 +13,6 @@ Group(pl):    Narz
 Source0:       ftp://alpha.gnu.org/gnu/%{name}/%{name}-%{version}.tar.gz
 Source1:       grep.1.pl
 Patch0:                grep-info.patch
-Prereq:                /usr/sbin/fix-info-dir
 BuildRequires: pcre-devel
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -86,10 +85,10 @@ gzip -9nf $RPM_BUILD_ROOT{%{_infodir}/*info*,%{_mandir}/{man1/*,pl/man1/*}} \
 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
 
 %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
 
 %files -f %{name}.lang
 %defattr(644,root,root,755)
This page took 0.061433 seconds and 4 git commands to generate.