- fix-info-dir in %pre/post is executed only when info is already
installed
Changed files:
a2ps.spec -> 1.33
Group(pl): Narzêdzia/Tekst
Source: ftp://ftp.enst.fr/pub/unix/a2ps/%{name}-%{version}.tar.gz
Patch0: a2ps-info.patch
-Prereq: /usr/sbin/fix-info-dir
Prereq: /sbin/ldconfig
URL: http://www.inf.enst.fr/~demaille/a2ps/
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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
/sbin/ldconfig
%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
/sbin/ldconfig
%files -f %{name}.lang