rtkit/rtkit.spec

86 lines
2.7 KiB
RPMSpec
Raw Normal View History

2011-02-17 22:19:42 +00:00
Name: rtkit
2012-05-15 13:50:36 +00:00
Version: 0.11
2022-04-22 09:15:08 +00:00
Release: %autorelease
2011-02-17 22:19:42 +00:00
Summary: Realtime Policy and Watchdog Daemon
2009-06-19 15:31:35 +00:00
# The daemon itself is GPLv3+, the reference implementation for the client BSD
2011-02-17 22:19:42 +00:00
License: GPLv3+ and BSD
2015-11-04 13:43:43 +00:00
URL: http://git.0pointer.net/rtkit.git/
2011-02-17 22:19:42 +00:00
Requires: dbus
Requires: polkit
BuildRequires: make
BuildRequires: systemd-devel
2011-02-17 22:19:42 +00:00
BuildRequires: dbus-devel >= 1.2
BuildRequires: libcap-devel
BuildRequires: polkit-devel
2013-08-22 20:51:05 +00:00
BuildRequires: autoconf automake libtool
2012-05-15 13:50:36 +00:00
Source0: http://0pointer.de/public/%{name}-%{version}.tar.xz
Patch1: rtkit-mq_getattr.patch
2013-09-23 21:34:55 +00:00
Patch2: 0001-SECURITY-Pass-uid-of-caller-to-polkit.patch
Patch3: rtkit-controlgroup.patch
2009-06-19 15:31:35 +00:00
# Temporarily disable -Werror=format-security since it breaks the build
Patch4: format-security.patch
Patch5: 0001-Fix-borked-error-check.patch
Patch6: 0001-systemd-update-sd-daemon.-ch.patch
Patch7: 0002-Remove-bundled-copy-of-sd-daemon.-ch.patch
2018-10-09 12:33:25 +00:00
2009-06-19 15:31:35 +00:00
%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
2018-10-09 12:33:25 +00:00
%autosetup -p1
2009-06-19 15:31:35 +00:00
%build
2013-08-22 20:51:05 +00:00
autoreconf -fvi
%configure --with-systemdsystemunitdir=%{_unitdir}
%make_build
2009-06-19 15:31:35 +00:00
./rtkit-daemon --introspect > org.freedesktop.RealtimeKit1.xml
%install
%make_install
install -Dm0644 org.freedesktop.RealtimeKit1.xml %{buildroot}%{_datadir}/dbus-1/interfaces/org.freedesktop.RealtimeKit1.xml
2009-06-19 15:31:35 +00:00
%pre
2010-06-29 19:39:43 +00:00
getent group rtkit >/dev/null 2>&1 || groupadd \
-r \
2011-02-17 22:19:42 +00:00
-g 172 \
rtkit
2010-06-29 19:39:43 +00:00
getent passwd rtkit >/dev/null 2>&1 || useradd \
-r -l \
2011-02-17 22:19:42 +00:00
-u 172 \
-g rtkit \
2010-06-29 19:39:43 +00:00
-d /proc \
2011-02-17 22:19:42 +00:00
-s /sbin/nologin \
2010-06-29 19:39:43 +00:00
-c "RealtimeKit" \
2011-02-17 22:19:42 +00:00
rtkit
2010-06-29 19:39:43 +00:00
:;
2009-06-19 15:31:35 +00:00
%post
2012-09-14 16:12:38 +00:00
%systemd_post rtkit-daemon.service
2009-06-19 15:31:35 +00:00
dbus-send --system --type=method_call --dest=org.freedesktop.DBus / org.freedesktop.DBus.ReloadConfig >/dev/null 2>&1 || :
%preun
2012-09-14 16:12:38 +00:00
%systemd_preun rtkit-daemon.service
2009-06-19 15:31:35 +00:00
2011-02-17 22:19:42 +00:00
%postun
2019-08-02 13:23:29 +00:00
%systemd_postun_with_restart rtkit-daemon.service
2011-02-17 22:19:42 +00:00
2009-06-19 15:31:35 +00:00
%files
%doc README GPL LICENSE rtkit.c rtkit.h
%attr(0755,root,root) %{_sbindir}/rtkitctl
%attr(0755,root,root) %{_libexecdir}/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
2010-06-29 19:39:43 +00:00
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/org.freedesktop.RealtimeKit1.conf
2012-05-15 13:50:36 +00:00
%{_prefix}/lib/systemd/system/rtkit-daemon.service
2010-06-29 19:39:43 +00:00
%{_mandir}/man8/*
2009-06-19 15:31:35 +00:00
%changelog
2022-04-22 09:15:08 +00:00
%autochangelog