Accepting request 386163 from home:pluskalm:branches:network:time

- Do reference to chrony-dnssrv@.service in %pre, %preun, %post,
  and %postun as it would lead to error.
- Change conditions for libseccom, we can use any version on SLE-12 
  x86_64

OBS-URL: https://build.opensuse.org/request/show/386163
OBS-URL: https://build.opensuse.org/package/show/network:time/chrony?expand=0&rev=13
This commit is contained in:
Martin Pluskal 2016-04-08 08:42:30 +00:00 committed by Git OBS Bridge
parent 5469ba86f8
commit 04d4e77785
2 changed files with 12 additions and 4 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Fri Apr 8 08:38:00 UTC 2016 - mpluskal@suse.com
- Do reference to chrony-dnssrv@.service in %pre, %preun, %post,
and %postun as it would lead to error.
- Change conditions for libseccom, we can use any version on SLE-12
x86_64
-------------------------------------------------------------------
Tue Apr 5 22:27:48 UTC 2016 - mpost@suse.com

View File

@ -199,12 +199,12 @@ make check
%{_sbindir}/useradd -g chrony -s /bin/false -r -c "Chrony Daemon" -d "%{_localstatedir}/lib/chrony" chrony >/dev/null 2>&1 || :
# START BIG SYSTEMD
%if %{with systemd}
%service_add_pre chronyd.service chrony-wait.service chrony-dnssrv@.service
%service_add_pre chronyd.service chrony-wait.service
%endif
%preun
%if %{with systemd}
%service_del_preun chronyd.service chrony-wait.service chrony-dnssrv@.service
%service_del_preun chronyd.service chrony-wait.service
%else
%stop_on_removal chronyd
%endif
@ -213,13 +213,13 @@ make check
%fillup_only %{name}
%install_info --info-dir="%{_infodir}" "%{_infodir}/chrony.info%{ext_info}"
%if %{with systemd}
%service_add_post chronyd.service chrony-wait.service chrony-dnssrv@.service
%service_add_post chronyd.service chrony-wait.service
%endif
%postun
%install_info_delete --info-dir="%{_infodir}" "%{_infodir}/chrony.info%{ext_info}"
%if %{with systemd}
%service_del_postun chronyd.service chrony-wait.service chrony-dnssrv@.service
%service_del_postun chronyd.service chrony-wait.service
%else
%restart_on_update chronyd
%insserv_cleanup