Name: rtkit Version: 0.10 Release: 1mamba Summary: Realtime Policy and Watchdog Daemon Group: System/Tools Vendor: openmamba Distribution: openmamba Packager: gil URL: http://git.0pointer.de/?p=rtkit.git Source: http://0pointer.de/public/rtkit-%{version}.tar.gz License: BSD, GPL BuildRequires: libcap-devel BuildRequires: libdbus-devel BuildRequires: polkit-devel # TODO BuildRequires: systemd-units Requires: dbus Requires: polkit # TODO Requires: systemd-units BuildRoot: %{_tmppath}/%{name}-%{version}-root %description RealtimeKit is a D-Bus system service that changes the scheduling policy of user processes/threads to SCHED_RR (i.e. realtime scheduling mode) on request. It is intended to be used as a secure mechanism to allow real-time scheduling to be used by normal user processes. %prep %setup -q %build %configure %make ./rtkit-daemon --introspect > org.freedesktop.RealtimeKit1.xml %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall mkdir -p %{buildroot}%{_datadir}/dbus-1/interfaces install -pm 644 org.freedesktop.RealtimeKit1.xml %{buildroot}%{_datadir}/dbus-1/interfaces/org.freedesktop.RealtimeKit1.xml %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %pre getent group rtkit >/dev/null 2>&1 || %{_sbindir}/groupadd \ -r \ -g 172 \ rtkit %{_bindir}/id rtkit >/dev/null 2>&1 || \ getent passwd rtkit >/dev/null 2>&1 || \ %{_sbindir}/useradd \ -r -l \ -u 172 \ -g rtkit \ -d /proc \ -s /sbin/nologin \ -c "RealtimeKit" \ rtkit :; %post %{_bindir}/dbus-send --system --type=method_call --dest=org.freedesktop.DBus / org.freedesktop.DBus.ReloadConfig >/dev/null 2>&1 || : || : # with systemd-units #/usr/bin/systemd-install enable --realize=minimal rtkit-daemon.service >/dev/null 2>&1 || : #/bin/systemctl enable rtkit-daemon.service >/dev/null 2>&1 || : # with systemd-units #%preun #if [ "$1" -eq 0 ]; then # /bin/systemctl disable rtkit-daemon.service >/dev/null 2>&1 || : #fi %files %defattr(-,root,root) %{_sysconfdir}/dbus-1/system.d/org.freedesktop.RealtimeKit1.conf %attr(0755,root,root) %{_libexecdir}/rtkit-daemon %attr(0755,root,root) %{_sbindir}/rtkitctl %{_datadir}/dbus-1/interfaces/org.freedesktop.RealtimeKit1.xml %{_datadir}/dbus-1/system-services/org.freedesktop.RealtimeKit1.service %{_datadir}/polkit-1/actions/org.freedesktop.RealtimeKit1.policy %{_mandir}/man8/rtkitctl.8.gz %doc GPL LICENSE README rtkit.c rtkit.h %changelog * Fri Jul 22 2011 Automatic Build System 0.10-1mamba - automatic update to 3.0.3.0 by autodist * Sun Dec 26 2010 Silvan Calarco 0.9-2mamba - automatic port from devel-java * Wed Dec 08 2010 gil 0.9-1mamba - package created by autospec