diff --git a/rtkit-0.10_git201107141740.tar.bz2 b/rtkit-0.10_git201107141740.tar.bz2 new file mode 100644 index 0000000..adb88a6 --- /dev/null +++ b/rtkit-0.10_git201107141740.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:24c1ccdb3e567382cfdb39f3813f5bc7a6cc72b38a67dcd50c38c0bfec9f28b8 +size 41227 diff --git a/rtkit-0.5.tar.bz2 b/rtkit-0.5.tar.bz2 deleted file mode 100644 index 3b1e691..0000000 --- a/rtkit-0.5.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ff892fecb350d70cea216e661fb83f8d2912f3ec958f38d67bd16fe13fdb9c1f -size 120799 diff --git a/rtkit.changes b/rtkit.changes index ace7fc8..f8eb55a 100644 --- a/rtkit.changes +++ b/rtkit.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Fri Dec 2 04:21:25 UTC 2011 - crrodriguez@opensuse.org + +- Update to version 0.10.x + * fix annoying warning + Failed to make ourselves RT: Invalid argument [bnc#551777] + * activation is now done with systemd if possible + ------------------------------------------------------------------- Sun Oct 31 12:37:02 UTC 2010 - jengelh@medozas.de diff --git a/rtkit.spec b/rtkit.spec index fa99c68..3e37120 100644 --- a/rtkit.spec +++ b/rtkit.spec @@ -1,7 +1,7 @@ # -# spec file for package rtkit (Version 0.5) +# spec file for package rtkit # -# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -20,7 +20,7 @@ Name: rtkit Summary: Realtime Policy and Watchdog Daemon -Version: 0.5 +Version: 0.10_git201107141740 Release: 6 # The daemon itself is GPL v3 or later, the reference implementation for the client BSD License: GPLv3+ ; BSD @@ -33,6 +33,11 @@ BuildRequires: libcap-devel BuildRequires: polkit-devel Requires: polkit PreReq: dbus-1 +%if 0%{?suse_version} > 1140 +BuildRequires: systemd +%{?systemd_requires} +%define has_systemd 1 +%endif %description RealtimeKit is a D-Bus system service that changes the @@ -45,8 +50,14 @@ processes. %setup -q %build +./bootstrap.sh # %configure --libexecdir=$prefix/lib/rtkit -%configure --libexecdir=%{_libexecdir}/rtkit +%configure \ +%if 0%{?has_systemd} +--with-systemdsystemunitdir=%{_unitdir} \ +%endif +--libexecdir=%{_libexecdir}/rtkit + make %{?_smp_mflags} ./rtkit-daemon --introspect > org.freedesktop.RealtimeKit1.xml @@ -57,13 +68,30 @@ install -D org.freedesktop.RealtimeKit1.xml $RPM_BUILD_ROOT/%{_datadir}/dbus-1/i %clean rm -rf $RPM_BUILD_ROOT +%preun +%if 0%{?has_systemd} +%service_del_preun rtkit-daemon.service +%endif + %pre groupadd -r rtkit &>/dev/null || : /usr/bin/id rtkit >/dev/null 2>&1 || \ useradd -r -g rtkit -c 'RealtimeKit' -s /bin/false -d /proc rtkit +%if 0%{?has_systemd} +%service_add_pre rtkit-daemon.service +%endif + %post dbus-send --system --type=method_call --dest=org.freedesktop.DBus / org.freedesktop.DBus.ReloadConfig >/dev/null 2>&1 || : +%if 0%{?has_systemd} +%service_add_post rtkit-daemon.service +%endif + +%postun +%if 0%{?has_systemd} +%service_del_postun rtkit-daemon.service +%endif %files %defattr(0644,root,root,0755) @@ -75,5 +103,9 @@ dbus-send --system --type=method_call --dest=org.freedesktop.DBus / org.freedesk %{_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 +%{_mandir}/man8/rtkitctl.* +%if 0%{?has_systemd} +%{_unitdir}/rtkit-daemon.service +%endif %changelog