- fix-info-dir in %pre/post is executed only when info is already
installed
Changed files:
mtools.spec -> 1.21
Patch3: mtools-paths.patch
URL: http://www.tux.org/pub/tux/knaff/mtools/
BuildRequires: texinfo
-Prereq: /usr/sbin/fix-info-dir
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _sysconfdir /etc
Changelog README Release.notes TODO
%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