From b17c07cfbcea43f0ae9096b53fce5dd5db196616 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 29 Jun 2010 19:39:43 +0000 Subject: [PATCH] New upstream release --- .cvsignore | 2 +- rtkit.spec | 29 ++++++++++++++++++++++------- sources | 2 +- 3 files changed, 24 insertions(+), 9 deletions(-) diff --git a/.cvsignore b/.cvsignore index 255ce2f..2f39d25 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -rtkit-0.5.tar.gz +rtkit-0.8.tar.gz diff --git a/rtkit.spec b/rtkit.spec index 2802521..520db51 100644 --- a/rtkit.spec +++ b/rtkit.spec @@ -1,5 +1,5 @@ Name: rtkit -Version: 0.5 +Version: 0.8 Release: 1%{?dist} Summary: Realtime Policy and Watchdog Daemon Group: System Environment/Base @@ -9,6 +9,7 @@ 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 @@ -25,7 +26,7 @@ processes. %setup -q %build -%configure +%configure --with-systemdsystemunitdir=/lib/systemd/system make %{?_smp_mflags} ./rtkit-daemon --introspect > org.freedesktop.RealtimeKit1.xml @@ -38,10 +39,19 @@ install -D org.freedesktop.RealtimeKit1.xml $RPM_BUILD_ROOT/%{_datadir}/dbus-1/i rm -rf $RPM_BUILD_ROOT %pre -/usr/sbin/groupadd -f -r rtkit -/usr/bin/id rtkit >/dev/null 2>&1 || \ - /usr/sbin/useradd -r -g rtkit -c 'RealtimeKit' -s /sbin/nologin -d /proc rtkit -exit 0 +getent group rtkit >/dev/null 2>&1 || groupadd \ + -r \ + -g 172 \ + rtkit +getent passwd rtkit >/dev/null 2>&1 || useradd \ + -r -l \ + -u 172 \ + -g rtkit \ + -d /proc \ + -s /sbin/nologin \ + -c "RealtimeKit" \ + rtkit +:; %post dbus-send --system --type=method_call --dest=org.freedesktop.DBus / org.freedesktop.DBus.ReloadConfig >/dev/null 2>&1 || : @@ -54,9 +64,14 @@ dbus-send --system --type=method_call --dest=org.freedesktop.DBus / org.freedesk %{_datadir}/dbus-1/system-services/org.freedesktop.RealtimeKit1.service %{_datadir}/dbus-1/interfaces/org.freedesktop.RealtimeKit1.xml %{_datadir}/polkit-1/actions/org.freedesktop.RealtimeKit1.policy -%{_sysconfdir}/dbus-1/system.d/org.freedesktop.RealtimeKit1.conf +%config(noreplace) %{_sysconfdir}/dbus-1/system.d/org.freedesktop.RealtimeKit1.conf +/lib/systemd/system/rtkit-daemon.service +%{_mandir}/man8/* %changelog +* Tue Jun 29 2010 Lennart Poettering - 0.8-1 +- New upstream release + * Fri Dec 18 2009 Lennart Poettering - 0.5-1 - New release - By default don't demote unknown threads diff --git a/sources b/sources index 61a8138..155df70 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -40ddb80715e89a79fe6ce24f5ce3b782 rtkit-0.5.tar.gz +5db8e9c266c695b64b7e5b0d26bd5685 rtkit-0.8.tar.gz