diff --git a/conntrack-tools.spec b/conntrack-tools.spec index 9d69ecb..9188748 100644 --- a/conntrack-tools.spec +++ b/conntrack-tools.spec @@ -1,6 +1,6 @@ Name: conntrack-tools Version: 1.4.2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Manipulate netfilter connection tracking table and run High Availability Group: System Environment/Base License: GPLv2 @@ -14,11 +14,10 @@ BuildRequires: libmnl-devel >= 1.0.3, libnetfilter_queue-devel >= 1.0.2 BuildRequires: pkgconfig bison flex Provides: conntrack = 1.0-1 Obsoletes: conntrack < 1.0-1 -BuildRequires: systemd-units -Requires(post): systemd-sysv -Requires(post): systemd-units -Requires(preun): systemd-units -Requires(postun): systemd-units +Requires(post): systemd +Requires(preun): systemd +Requires(postun): systemd +BuildRequires: systemd %description With conntrack-tools you can setup a High Availability cluster and @@ -67,21 +66,19 @@ install -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/conntrackd/ %dir %{_libdir}/conntrack-tools %{_libdir}/conntrack-tools/* +%post +%systemd_post conntrackd.service + %preun -if [ $1 -eq 0 ]; then - # Package removal, not upgrade - /bin/systemctl --no-reload disable conntrackd.service > /dev/null 2>&1 || : - /bin/systemctl stop conntrackd.service > /dev/null 2>&1 || : -fi +%systemd_preun conntrackd.service %postun -/bin/systemctl daemon-reload >/dev/null 2>&1 || : -if [ $1 -ge 1 ] ; then - # Package upgrade, not uninstall - /bin/systemctl try-restart conntrackd.service >/dev/null 2>&1 || : -fi +%systemd_postun conntrackd.service %changelog +* Sat Sep 7 2013 Paul P. Komkoff Jr - 1.4.2-2 +- bz#850067 + * Sat Sep 7 2013 Paul P. Komkoff Jr - 1.4.2-1 - new upstream version