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

gdb.spec

index fe044a5695014be610d0de0b983a148e8bcdb6cf..6418012d887a0f0ca159c470fb7412d2ad7abd24 100644 (file)
--- a/gdb.spec
+++ b/gdb.spec
@@ -17,7 +17,6 @@ Patch3:               gdb-xref.patch
 Patch4:                gdb-sparcmin.patch
 Patch5:                gdb-threads.patch
 Patch6:                gdb-shared-readline.patch
-Prereq:                /usr/sbin/fix-info-dir
 BuildRequires: ncurses-devel >= 5.0
 BuildRequires: readline-devel >= 4.1
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -85,10 +84,10 @@ strip $RPM_BUILD_ROOT%{_bindir}/*
 gzip -fn9 $RPM_BUILD_ROOT{%{_infodir}/*info*,%{_mandir}/man?/*}
 
 %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
This page took 0.031568 seconds and 4 git commands to generate.