2009-08-17 15:45:00 +02:00
|
|
|
#
|
2010-01-27 17:32:59 +01:00
|
|
|
# spec file for package rtkit (Version 0.5)
|
2009-08-17 15:45:00 +02:00
|
|
|
#
|
2010-01-27 17:32:59 +01:00
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2009-08-17 15:45:00 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
|
|
|
|
|
|
|
Name: rtkit
|
|
|
|
Summary: Realtime Policy and Watchdog Daemon
|
2010-01-27 17:32:59 +01:00
|
|
|
Version: 0.5
|
2009-08-17 15:45:00 +02:00
|
|
|
Release: 1
|
|
|
|
# The daemon itself is GPL v3 or later, the reference implementation for the client BSD
|
2010-01-27 17:32:59 +01:00
|
|
|
License: GPLv3+ ; BSD
|
2009-08-17 15:45:00 +02:00
|
|
|
Group: System/Base
|
|
|
|
Source: %{name}-%{version}.tar.bz2
|
|
|
|
Url: http://git.0pointer.de/?p=rtkit.git
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: dbus-1-devel >= 1.2
|
|
|
|
BuildRequires: libcap-devel
|
|
|
|
BuildRequires: polkit-devel
|
|
|
|
Requires: polkit
|
|
|
|
PreReq: dbus-1
|
|
|
|
|
|
|
|
%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 --libexecdir=$prefix/lib/rtkit
|
|
|
|
%configure --libexecdir=%{_libexecdir}/rtkit
|
2010-11-02 11:26:30 +01:00
|
|
|
make %{?_smp_mflags}
|
2009-08-17 15:45:00 +02:00
|
|
|
./rtkit-daemon --introspect > org.freedesktop.RealtimeKit1.xml
|
|
|
|
|
|
|
|
%install
|
|
|
|
%makeinstall
|
|
|
|
install -D org.freedesktop.RealtimeKit1.xml $RPM_BUILD_ROOT/%{_datadir}/dbus-1/interfaces/org.freedesktop.RealtimeKit1.xml
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%pre
|
|
|
|
groupadd -r rtkit &>/dev/null || :
|
|
|
|
/usr/bin/id rtkit >/dev/null 2>&1 || \
|
2010-01-27 17:32:59 +01:00
|
|
|
useradd -r -g rtkit -c 'RealtimeKit' -s /bin/false -d /proc rtkit
|
2009-08-17 15:45:00 +02:00
|
|
|
|
|
|
|
%post
|
|
|
|
dbus-send --system --type=method_call --dest=org.freedesktop.DBus / org.freedesktop.DBus.ReloadConfig >/dev/null 2>&1 || :
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(0644,root,root,0755)
|
|
|
|
%doc README GPL LICENSE rtkit.c rtkit.h
|
|
|
|
%attr(0755,root,root) %{_sbindir}/rtkitctl
|
|
|
|
%dir %{_libexecdir}/rtkit
|
|
|
|
%attr(0755,root,root) %{_libexecdir}/rtkit/rtkit-daemon
|
|
|
|
%{_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
|
|
|
|
|
|
|
|
%changelog
|