From 356782e81b06dccb76a2f8edf861706c32bdb436 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: ed.spec -> 1.19 --- ed.spec | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ed.spec b/ed.spec index e53304f..ce48b90 100644 --- 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 -- 2.44.0