Don't complain if installing with --excludedocs (#515934)

This commit is contained in:
Zdenek Prikryl 2009-08-20 07:37:28 +00:00
parent 10f084e9e5
commit 6163ef1354

22
bc.spec
View File

@ -1,7 +1,7 @@
Summary: GNU's bc (a numeric processing language) and dc (a calculator)
Name: bc
Version: 1.06
Release: 35%{?dist}
Release: 36%{?dist}
License: GPLv2+
URL: http://www.gnu.org/software/bc/
Group: Applications/Engineering
@ -47,13 +47,19 @@ rm -f $RPM_BUILD_ROOT/%{_infodir}/dir
rm -rf $RPM_BUILD_ROOT
%post
/sbin/install-info %{_infodir}/bc.info %{_infodir}/dir --entry="* bc: (bc). The GNU calculator language." || :
/sbin/install-info %{_infodir}/dc.info %{_infodir}/dir --entry="* dc: (dc). The GNU RPN calculator."|| :
if [ -e %{_infodir}/bc.info.gz -a -e %{_infodir}/dc.info.gz ]; then
/sbin/install-info %{_infodir}/bc.info.gz %{_infodir}/dir \
--entry="* bc: (bc). The GNU calculator language." || :
/sbin/install-info %{_infodir}/dc.info.gz %{_infodir}/dir \
--entry="* dc: (dc). The GNU RPN calculator." || :
fi
%preun
if [ $1 = 0 ]; then
/sbin/install-info --delete %{_infodir}/bc.info %{_infodir}/dir --entry="* bc: (bc). The GNU calculator language." || :
/sbin/install-info --delete %{_infodir}/dc.info %{_infodir}/dir --entry="* dc: (dc). The GNU RPN calculator." || :
if [ $1 = 0 -a -e %{_infodir}/bc.info.gz -a -e %{_infodir}/dc.info.gz ]; then
/sbin/install-info --delete %{_infodir}/bc.info.gz %{_infodir}/dir \
--entry="* bc: (bc). The GNU calculator language." || :
/sbin/install-info --delete %{_infodir}/dc.info.gz %{_infodir}/dir \
--entry="* dc: (dc). The GNU RPN calculator." || :
fi
%files
@ -65,6 +71,10 @@ fi
%{_infodir}/*
%changelog
<<<<<<< bc.spec
* Thu Aug 20 2009 Zdenek Prikryl <zprikryl@redhat.com> 1.06-36
- Don't complain if installing with --excludedocs (#515934)
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.06-35
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild