]> git.pld-linux.org Git - packages/xboard.git/commitdiff
- removed Prereq: /usr/sbin/fix-info-dir
authorSebastian Zagrodzki <sebek@zagrodzki.net>
Mon, 1 May 2000 20:11:42 +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:
    xboard.spec -> 1.5

xboard.spec

index e08169a98a617273023b204e990f06225e47dabc..c1616ea1a27f3984da2bd51be2ed600be15b9271 100644 (file)
@@ -7,7 +7,6 @@ Source:         ftp://ftp.gnu.org/pub/gnu/%{name}-%{version}.tar.gz
 Patch0:                xboard-header.patch
 Patch1:                xboard-4.0.0-xref.patch
 Copyright:     GPL
-Prereq:                /usr/sbin/fix-info-dir
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _prefix         /usr/X11R6
@@ -54,10 +53,10 @@ EOF
 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
 %defattr(644,root,root,755)
This page took 0.046079 seconds and 4 git commands to generate.