spec: fix rpm scripts handling documentation in info format

This commit is contained in:
Michal Sekletar 2013-06-10 14:18:05 +02:00
parent 6221d91101
commit a0891a693d

View File

@ -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@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@redhat.com> - 0.99.22.1-5
- configure quagga using correct user