From f235e635adadcf0999a9481035168363c19d7d68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Mr=C3=A1z?= Date: Tue, 11 Aug 2009 12:41:05 +0000 Subject: [PATCH] - fix warning when installed with --excludedocs (#515961) --- libgcrypt.spec | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/libgcrypt.spec b/libgcrypt.spec index cba46d8..b89e4d6 100644 --- a/libgcrypt.spec +++ b/libgcrypt.spec @@ -1,6 +1,6 @@ Name: libgcrypt Version: 1.4.4 -Release: 7%{?dist} +Release: 8%{?dist} Source0: libgcrypt-%{version}-hobbled.tar.bz2 # The original libgcrypt sources now contain potentially patented ECC # cipher support. We have to remove it in the tarball we ship with @@ -120,11 +120,12 @@ rm -fr $RPM_BUILD_ROOT %postun -p /sbin/ldconfig %post devel -/sbin/install-info %{_infodir}/gcrypt.info.gz %{_infodir}/dir +[ -f %{_infodir}/gcrypt.info.gz ] && \ + /sbin/install-info %{_infodir}/gcrypt.info.gz %{_infodir}/dir exit 0 %preun devel -if [ $1 = 0 ]; then +if [ $1 = 0 -a -f %{_infodir}/gcrypt.info.gz ]; then /sbin/install-info --delete %{_infodir}/gcrypt.info.gz %{_infodir}/dir fi exit 0 @@ -147,6 +148,9 @@ exit 0 %{_infodir}/gcrypt.info* %changelog +* Tue Aug 11 2009 Tomas Mraz 1.4.4-8 +- fix warning when installed with --excludedocs (#515961) + * Fri Jul 24 2009 Fedora Release Engineering - 1.4.4-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild