[quagga] spec: fix rpm scripts handling documentation in info format
Michal Sekletar
msekleta at fedoraproject.org
Mon Jun 10 13:38:57 UTC 2013
commit a0891a693dbc1b5f2a9103c7dad42cb0a8fea06c
Author: Michal Sekletar <msekleta at redhat.com>
Date: Mon Jun 10 14:18:05 2013 +0200
spec: fix rpm scripts handling documentation in info format
quagga.spec | 13 ++++++++-----
1 files changed, 8 insertions(+), 5 deletions(-)
---
diff --git a/quagga.spec b/quagga.spec
index b91cef3..ab7aef1 100644
--- a/quagga.spec
+++ b/quagga.spec
@@ -132,7 +132,9 @@ getent passwd quagga >/dev/null 2>&1 || useradd -u %quagga_uid -g %quagga_gid -M
%systemd_post ospf6d.service
%systemd_post ripngd.service
-install-info %{_infodir}/quagga.info %{_infodir}/dir || :
+if [ -f %{_infodir}/%{name}.inf* ]; then
+ install-info %{_infodir}/quagga.info %{_infodir}/dir || :
+fi
# Create dummy files if they don't exist so basic functions can be used.
if [ ! -e %{_sysconfdir}/quagga/zebra.conf ]; then
@@ -157,6 +159,10 @@ fi
%systemd_postun_with_restart ospf6d.service
%systemd_postun_with_restart ripngd.service
+if [ -f %{_infodir}/%{name}.inf* ]; then
+ install-info --delete %{_infodir}/quagga.info %{_infodir}/dir || :
+fi
+
%preun
%systemd_preun zebra.service
%systemd_preun isisd.service
@@ -167,10 +173,6 @@ fi
%systemd_preun ospf6d.service
%systemd_preun ripngd.service
-if [ $1 = 0 ] ; then
- install-info --delete %{_infodir}/quagga.info %{_infodir}/dir || :
-fi
-
%files
%defattr(-,root,root)
%doc AUTHORS COPYING
@@ -221,6 +223,7 @@ fi
* Mon Jun 10 2013 Michal Sekletar <msekleta at redhat.com> - 0.99.22.1-6
- obsolete quagga-sysvinit subpackage
- use macro to specify location where to install tmpfiles configuration file
+- fix rpm scripts handling documentation in info format
* Thu Jun 06 2013 Michal Sekletar <msekleta at redhat.com> - 0.99.22.1-5
- configure quagga using correct user
More information about the scm-commits
mailing list