- Only try to install the info file if it exists so that package

installation does not fail with --excludedocs (bug #515919).
This commit is contained in:
Tim Waugh 2009-08-11 13:36:24 +00:00
parent c62b92e6aa
commit 4d7233f8c9

View File

@ -1,7 +1,7 @@
Summary: A GNU collection of diff utilities Summary: A GNU collection of diff utilities
Name: diffutils Name: diffutils
Version: 2.8.1 Version: 2.8.1
Release: 24%{?dist} Release: 25%{?dist}
Group: Applications/Text Group: Applications/Text
URL: http://www.gnu.org/software/diffutils/diffutils.html URL: http://www.gnu.org/software/diffutils/diffutils.html
Source: ftp://ftp.gnu.org/gnu/diffutils/diffutils-%{version}.tar.gz Source: ftp://ftp.gnu.org/gnu/diffutils/diffutils-%{version}.tar.gz
@ -59,7 +59,9 @@ rm -f $RPM_BUILD_ROOT%{_infodir}/dir
%find_lang %{name} %find_lang %{name}
%post %post
/sbin/install-info %{_infodir}/diff.info.gz %{_infodir}/dir --entry="* diff: (diff). The GNU diff." if [ -f %{_infodir}/diff.info.gz ]; then
/sbin/install-info %{_infodir}/diff.info.gz %{_infodir}/dir --entry="* diff: (diff). The GNU diff."
fi
exit 0 exit 0
%preun %preun
@ -79,6 +81,10 @@ rm -rf $RPM_BUILD_ROOT
%{_infodir}/diff.info*gz %{_infodir}/diff.info*gz
%changelog %changelog
* Tue Aug 11 2009 Tim Waugh <twaugh@redhat.com> 2.8.1-25
- Only try to install the info file if it exists so that package
installation does not fail with --excludedocs (bug #515919).
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8.1-24 * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8.1-24
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild