Don't complain if installing with --excludedocs (#515941)
This commit is contained in:
parent
9bb90df445
commit
d42a8db068
15
units.spec
15
units.spec
@ -1,7 +1,7 @@
|
|||||||
Summary: A utility for converting amounts from one unit to another
|
Summary: A utility for converting amounts from one unit to another
|
||||||
Name: units
|
Name: units
|
||||||
Version: 1.87
|
Version: 1.87
|
||||||
Release: 4%{?dist}
|
Release: 5%{?dist}
|
||||||
Source: ftp://ftp.gnu.org/gnu/units/%{name}-%{version}.tar.gz
|
Source: ftp://ftp.gnu.org/gnu/units/%{name}-%{version}.tar.gz
|
||||||
URL: http://www.gnu.org/software/units/units.html
|
URL: http://www.gnu.org/software/units/units.html
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
@ -35,14 +35,14 @@ gzip $RPM_BUILD_ROOT%{_infodir}/units.info
|
|||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%post
|
%post
|
||||||
/sbin/install-info %{_infodir}/units.info.gz %{_infodir}/dir
|
if [ -e %{_infodir}/units.info.gz ]; then
|
||||||
exit 0
|
/sbin/install-info %{_infodir}/units.info.gz %{_infodir}/dir || :
|
||||||
|
fi
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
if [ "$1" = 0 ]; then
|
if [ $1 = 0 -a -e %{_infodir}/units.info.gz ]; then
|
||||||
/sbin/install-info --delete %{_infodir}/units.info.gz %{_infodir}/dir
|
/sbin/install-info --delete %{_infodir}/units.info.gz %{_infodir}/dir || :
|
||||||
fi
|
fi
|
||||||
exit 0
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
@ -53,6 +53,9 @@ exit 0
|
|||||||
%{_mandir}/man1/*
|
%{_mandir}/man1/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Aug 20 2009 Zdenek Prikryl <zprikryl@redhat.com> - 1.87-5
|
||||||
|
- Don't complain if installing with --excludedocs (#515941)
|
||||||
|
|
||||||
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.87-4
|
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.87-4
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user