From 3795119dd544ae612adc4360f12eee434f6fae7f Mon Sep 17 00:00:00 2001 From: Sebastian Zagrodzki Date: Mon, 1 May 2000 20:11:40 +0000 Subject: [PATCH] - removed Prereq: /usr/sbin/fix-info-dir - fix-info-dir in %pre/post is executed only when info is already installed Changed files: bison.spec -> 1.28 --- bison.spec | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bison.spec b/bison.spec index 2198b3d..0dc94b3 100644 --- a/bison.spec +++ b/bison.spec @@ -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 -- 2.43.0