diff --git a/rtkit.spec b/rtkit.spec index dbcb4a4..2da68fa 100644 --- a/rtkit.spec +++ b/rtkit.spec @@ -1,6 +1,6 @@ Name: rtkit Version: 0.11 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Realtime Policy and Watchdog Daemon Group: System Environment/Base # The daemon itself is GPLv3+, the reference implementation for the client BSD @@ -51,19 +51,14 @@ getent passwd rtkit >/dev/null 2>&1 || useradd \ :; %post -if [ $1 -eq 1 ]; then - /bin/systemctl enable rtkit.service >/dev/null 2>&1 || : -fi +%systemd_post rtkit-daemon.service dbus-send --system --type=method_call --dest=org.freedesktop.DBus / org.freedesktop.DBus.ReloadConfig >/dev/null 2>&1 || : %preun -if [ "$1" -eq 0 ]; then - /bin/systemctl --no-reload disable rtkit-daemon.service >/dev/null 2>&1 || : - /bin/systemctl stop rtkit-daemon.service >/dev/null 2>&1 || : -fi +%systemd_preun rtkit-daemon.service %postun -/bin/systemctl daemon-reload >/dev/null 2>&1 || : +%systemd_postun %files %defattr(0644,root,root,0755) @@ -78,6 +73,9 @@ fi %{_mandir}/man8/* %changelog +* Fri Sep 14 2012 Lennart Poettering - 0.11-3 +- Make use of the new systemd macros + * Sat Jul 21 2012 Fedora Release Engineering - 0.11-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild