]> git.pld-linux.org Git - packages/bison.git/blobdiff - bison.spec
- removed Prereq: /usr/sbin/fix-info-dir
[packages/bison.git] / bison.spec
index 2198b3d70e136f3f94f67dd3b4eb4f175039fc1d..0dc94b324c3cc732cccbf3b52ee4361a499f4f7d 100644 (file)
@@ -14,7 +14,6 @@ Source0:      ftp://prep.ai.mit.edu/pub/gnu/%{name}-%{version}.tar.gz
 Source1:       bison.1.pl
 Patch0:                bison-info.patch
 Patch1:                bison-man.patch
-Prereq:                /usr/sbin/fix-info-dir
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 Obsoletes:     yacc
 
@@ -74,10 +73,10 @@ install %{SOURCE1} $RPM_BUILD_ROOT%{_mandir}/pl/man1/bison.1
 gzip -9nf $RPM_BUILD_ROOT{%{_infodir}/*,%{_mandir}/{man1/*,pl/man1/*}}
 
 %post
-%{_sbindir}/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
-%{_sbindir}/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.03125 seconds and 4 git commands to generate.