[diffutils] Fix bug #747969 again.
Tim Waugh
twaugh at fedoraproject.org
Thu Dec 8 09:37:02 UTC 2011
commit 19e3849f88f37f7a02bd3bc8bdab2d3b7b86c0b3
Author: Tim Waugh <twaugh at redhat.com>
Date: Thu Dec 8 09:14:36 2011 +0000
Fix bug #747969 again.
diffutils.spec | 19 ++++++++-----------
1 files changed, 8 insertions(+), 11 deletions(-)
---
diff --git a/diffutils.spec b/diffutils.spec
index 796b483..796f384 100644
--- a/diffutils.spec
+++ b/diffutils.spec
@@ -1,15 +1,15 @@
Summary: A GNU collection of diff utilities
Name: diffutils
Version: 3.2
-Release: 4%{?dist}
+Release: 5%{?dist}
Group: Applications/Text
URL: http://www.gnu.org/software/diffutils/diffutils.html
Source: ftp://ftp.gnu.org/gnu/diffutils/diffutils-%{version}.tar.xz
Patch1: diffutils-cmp-s-empty.patch
Patch2: diffutils-ppc-float.patch
License: GPLv2+
-Requires(post): /sbin/install-info
-Requires(preun): /sbin/install-info
+Requires(post): info
+Requires(preun): info
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: help2man
@@ -49,18 +49,12 @@ rm -f $RPM_BUILD_ROOT%{_infodir}/dir
make check
%post
-if [ -f %{_infodir}/diffutils.info.gz ]; then
- /sbin/install-info %{_infodir}/diffutils.info.gz %{_infodir}/dir --entry="* diff: (diff). The GNU diff."
-fi
-exit 0
+/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :
%preun
if [ $1 = 0 ]; then
- /sbin/install-info --delete %{_infodir}/diffutils.info.gz %{_infodir}/dir --entry="* diff: (diff). The GNU diff."
- # Also remove old name:
- /sbin/install-info --delete %{_infodir}/diff.info.gz %{_infodir}/dir --entry="* diff: (diff). The GNU diff."
+ /sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :
fi
-exit 0
%clean
rm -rf $RPM_BUILD_ROOT
@@ -73,6 +67,9 @@ rm -rf $RPM_BUILD_ROOT
%{_infodir}/diffutils.info*gz
%changelog
+* Thu Dec 8 2011 Tim Waugh <twaugh at redhat.com> 3.2-5
+- Fix bug #747969 again.
+
* Tue Nov 29 2011 Tim Waugh <twaugh at redhat.com> 3.2-4
- Real fix for bug #747969: the diffutils info file changed name in
3.1. Updated the scriptlets to install/remove the correct filename
More information about the scm-commits
mailing list