rtkit/rtkit.spec

91 lines
2.9 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 15:28:37 +00:00
# -b is needed because of https://pagure.io/fedora-infra/rpmautospec/issue/228
# Remove if the version is ever bumped (or rpmautospec fixed).
2022-04-23 08:44:49 +00:00
Release: %autorelease -b17
2011-02-17 22:19:42 +00:00
Summary: Realtime Policy and Watchdog Daemon
2023-04-24 12:09:53 +00:00
# The daemon itself is GPLv3+, the reference implementation for the client MIT
# The LICENSE file incorrectly states that the client is under BSD.
License: GPL-3.0-or-later AND MIT
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
2022-04-22 09:16:14 +00:00
Patch: rtkit-mq_getattr.patch
Patch: 0001-SECURITY-Pass-uid-of-caller-to-polkit.patch
Patch: rtkit-controlgroup.patch
2009-06-19 15:31:35 +00:00
# Temporarily disable -Werror=format-security since it breaks the build
2022-04-22 09:16:14 +00:00
Patch: format-security.patch
2022-04-22 09:16:14 +00:00
Patch: 0001-Fix-borked-error-check.patch
Patch: 0001-systemd-update-sd-daemon.-ch.patch
Patch: 0002-Remove-bundled-copy-of-sd-daemon.-ch.patch
Patch: remove-debug-messages.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