rpms/bison/devel bison.spec,1.40,1.41

Petr Machata pmachata at fedoraproject.org
Mon Aug 24 12:11:09 UTC 2009


Author: pmachata

Update of /cvs/pkgs/rpms/bison/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv11108

Modified Files:
	bison.spec 
Log Message:
- Fix installation with --excludedocs
- Resolves: #515939



Index: bison.spec
===================================================================
RCS file: /cvs/pkgs/rpms/bison/devel/bison.spec,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -p -r1.40 -r1.41
--- bison.spec	24 Jul 2009 18:05:29 -0000	1.40
+++ bison.spec	24 Aug 2009 12:11:09 -0000	1.41
@@ -1,7 +1,7 @@
 Summary: A GNU general-purpose parser generator
 Name: bison
 Version: 2.4.1
-Release: 3%{?dist}
+Release: 4%{?dist}
 License: GPLv2+
 Group: Development/Tools
 Source: ftp://ftp.gnu.org/pub/gnu/bison/bison-%{version}.tar.bz2
@@ -87,11 +87,15 @@ rm -f $RPM_BUILD_ROOT/%{_mandir}/man1/ya
 gzip -9nf ${RPM_BUILD_ROOT}%{_infodir}/bison.info*
 
 %post
-/sbin/install-info %{_infodir}/bison.info.gz %{_infodir}/dir --entry="* bison: (bison).                        The GNU parser generator." || :
+if [ -f %{_infodir}/bison.info.gz ]; then # for --excludedocs
+   /sbin/install-info %{_infodir}/bison.info.gz %{_infodir}/dir --entry="* bison: (bison).                        The GNU parser generator." || :
+fi
 
 %preun
 if [ $1 = 0 ]; then
-  /sbin/install-info --delete %{_infodir}/bison.info.gz %{_infodir}/dir --entry="* bison: (bison).                        The GNU parser generator." || :
+    if [ -f %{_infodir}/bison.info.gz ]; then # for --excludedocs
+      /sbin/install-info --delete %{_infodir}/bison.info.gz %{_infodir}/dir --entry="* bison: (bison).                        The GNU parser generator." || :
+    fi
 fi
 
 # The distribution contains also source files.  These are used by m4
@@ -115,6 +119,10 @@ fi
 rm -rf $RPM_BUILD_ROOT
 
 %changelog
+* Mon Aug 24 2009 Petr Machata <pmachata at redhat.com> - 2.4.1-4
+- Fix installation with --excludedocs
+- Resolves: #515939
+
 * Fri Jul 24 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.4.1-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
 




More information about the fedora-extras-commits mailing list