[groff] fix groff package: add install-info to %post and %preun

jvcelak jvcelak at fedoraproject.org
Wed Oct 12 14:38:16 UTC 2011


commit b8d668e4d5f52659070cb793f6806a4029d8fbc6
Author: Jan Vcelak <jvcelak at redhat.com>
Date:   Wed Oct 12 16:28:59 2011 +0200

    fix groff package: add install-info to %post and %preun

 groff.spec |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/groff.spec b/groff.spec
index c547060..0d702b6 100644
--- a/groff.spec
+++ b/groff.spec
@@ -24,6 +24,8 @@ Provides: nroff-i18n = %{version}-%{release}
 BuildRequires: netpbm-progs psutils ghostscript
 # when building from CVS add: BuildRequires: texinfo byacc
 Requires: groff-base = %{version}-%{release}
+Requires(post): info
+Requires(preun): info
 
 %description
 Groff is a document formatting system. Groff takes standard text and
@@ -155,10 +157,10 @@ popd
 %clean
 rm -rf %{buildroot}
 
-%post doc
+%post
 /sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :
 
-%preun doc
+%preun
 if [ $1 = 0 ]; then
 	/sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :
 fi
@@ -416,6 +418,7 @@ fi
 * Wed Oct 12 2011 Jan Vcelak <jvcelak at redhat.com> 1.21-7
 - update: move local configuration from /usr/share/groff/site-* to /etc/groff/*
   (change the paths in the app instead of symlinking to avoid RPM issues)
+- fix groff package: add install-info to %%post and %%preun
 
 * Tue Oct 11 2011 Jan Vcelak <jvcelak at redhat.com> 1.21-6
 - fix build warnings: File listed twice


More information about the scm-commits mailing list