- fix post/preun scriptlets so that they won't fail with docs disabled

This commit is contained in:
Jindrich Novy 2007-01-05 13:34:33 +00:00
parent 3a26205be9
commit 657807ebc2

View File

@ -1,6 +1,6 @@
Name: texi2html
Version: 1.76
Release: 5%{?dist}
Release: 6%{?dist}
License: GPL
Group: Applications/Text
Summary: A highly customizable texinfo to HTML and other formats translator
@ -56,12 +56,11 @@ rm -f $RPM_BUILD_ROOT%{_infodir}/dir
rm -rf $RPM_BUILD_ROOT
%post
/sbin/install-info %{_infodir}/%{name}.info.gz %{_infodir}/dir
/sbin/install-info %{_infodir}/%{name}.info.gz %{_infodir}/dir || :
%preun
if [ $1 = 0 ]; then
/sbin/install-info --delete %{_infodir}/%{name}.info.gz \
%{_infodir}/dir
/sbin/install-info --delete %{_infodir}/%{name}.info.gz %{_infodir}/dir || :
fi
%files
@ -79,6 +78,10 @@ fi
%{_datadir}/%{name}/images/*
%changelog
* Fri Jan 5 2007 Jindrich Novy <jnovy@redhat.com> 1.76-6
- fix post/preun scriptlets so that they won't fail with docs disabled
(thanks to Ville Skyttä)
* Wed Nov 29 2006 Jindrich Novy <jnovy@redhat.com> 1.76-5
- replace PreReq, fix BuildRoot