From 6c55f71c995160773393be7566df67cfa256e4c2 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 17 Feb 2011 23:19:42 +0100 Subject: [PATCH] New upstream release --- .gitignore | 6 +++++- rtkit.spec | 59 ++++++++++++++++++++++++++++++++---------------------- sources | 2 +- 3 files changed, 41 insertions(+), 26 deletions(-) diff --git a/.gitignore b/.gitignore index ab6a3ab..5bf4706 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,5 @@ -rtkit-0.9.tar.gz +.build-*.log +x86_64/ +rtkit-*.src.rpm +/rtkit-0.9.tar.gz +/rtkit-0.10.tar.gz diff --git a/rtkit.spec b/rtkit.spec index ef634b2..ef6338d 100644 --- a/rtkit.spec +++ b/rtkit.spec @@ -1,19 +1,22 @@ -Name: rtkit -Version: 0.9 -Release: 3%{?dist} -Summary: Realtime Policy and Watchdog Daemon -Group: System Environment/Base +Name: rtkit +Version: 0.10 +Release: 1%{?dist} +Summary: Realtime Policy and Watchdog Daemon +Group: System Environment/Base # The daemon itself is GPLv3+, the reference implementation for the client BSD -License: GPLv3+ and BSD -URL: http://git.0pointer.de/?p=rtkit.git -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -Requires: dbus -Requires: polkit -Requires: systemd-units -BuildRequires: dbus-devel >= 1.2 -BuildRequires: libcap-devel -BuildRequires: polkit-devel -Source0: http://0pointer.de/public/%{name}-%{version}.tar.gz +License: GPLv3+ and BSD +URL: http://git.0pointer.de/?p=rtkit.git +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Requires: dbus +Requires: polkit +Requires: systemd-units +Requires(post): systemd-units +Requires(preun): systemd-units +Requires(postun): systemd-units +BuildRequires: dbus-devel >= 1.2 +BuildRequires: libcap-devel +BuildRequires: polkit-devel +Source0: http://0pointer.de/public/%{name}-%{version}.tar.gz %description RealtimeKit is a D-Bus system service that changes the @@ -41,28 +44,33 @@ rm -rf $RPM_BUILD_ROOT %pre getent group rtkit >/dev/null 2>&1 || groupadd \ -r \ - -g 172 \ - rtkit + -g 172 \ + rtkit getent passwd rtkit >/dev/null 2>&1 || useradd \ -r -l \ - -u 172 \ - -g rtkit \ + -u 172 \ + -g rtkit \ -d /proc \ - -s /sbin/nologin \ + -s /sbin/nologin \ -c "RealtimeKit" \ - rtkit + rtkit :; %post +if [ $1 -eq 1 ]; then + /bin/systemctl enable rtkit.service >/dev/null 2>&1 || : +fi dbus-send --system --type=method_call --dest=org.freedesktop.DBus / org.freedesktop.DBus.ReloadConfig >/dev/null 2>&1 || : -/usr/bin/systemd-install enable --realize=minimal rtkit-daemon.service >/dev/null 2>&1 || : -/bin/systemctl enable rtkit-daemon.service >/dev/null 2>&1 || : %preun if [ "$1" -eq 0 ]; then - /bin/systemctl disable rtkit-daemon.service >/dev/null 2>&1 || : + /bin/systemctl --no-reload disable rtkit-daemon.service >/dev/null 2>&1 || : + /bin/systemctl stop rtkit-daemon.service >/dev/null 2>&1 || : fi +%postun +/bin/systemctl daemon-reload >/dev/null 2>&1 || : + %files %defattr(0644,root,root,0755) %doc README GPL LICENSE rtkit.c rtkit.h @@ -76,6 +84,9 @@ fi %{_mandir}/man8/* %changelog +* Thu Feb 17 2011 Lennart Poettering - 0.10-1 +- new upstream release + * Wed Feb 09 2011 Fedora Release Engineering - 0.9-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild diff --git a/sources b/sources index 0540f8d..480aa0c 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -9d0b8893c5eb17cc58635bb867b23165 rtkit-0.9.tar.gz +9ab7f2a25ddf05584ea2216dfe4cefd4 rtkit-0.10.tar.gz