2009-08-17 15:45:00 +02:00
|
|
|
#
|
2011-12-02 11:50:15 +01:00
|
|
|
# spec file for package rtkit
|
2009-08-17 15:45:00 +02:00
|
|
|
#
|
2020-11-12 12:19:46 +01:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
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.
|
|
|
|
|
2019-07-03 16:57:13 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2009-08-17 15:45:00 +02:00
|
|
|
#
|
|
|
|
|
2012-09-24 17:00:55 +02:00
|
|
|
|
2009-08-17 15:45:00 +02:00
|
|
|
Name: rtkit
|
2019-07-03 16:57:13 +02:00
|
|
|
Version: 0.11+git.20161005
|
2016-04-24 11:09:30 +02:00
|
|
|
Release: 0
|
2009-08-17 15:45:00 +02:00
|
|
|
Summary: Realtime Policy and Watchdog Daemon
|
2016-04-24 11:09:30 +02:00
|
|
|
# The daemon itself is GPL v3 or later, the reference implementation for
|
|
|
|
# the client BSD-3-Clause
|
2019-07-03 16:57:13 +02:00
|
|
|
License: GPL-3.0-or-later AND BSD-3-Clause
|
|
|
|
Group: System/Base
|
2020-11-12 12:19:46 +01:00
|
|
|
URL: http://git.0pointer.de/?p=rtkit.git
|
2016-04-24 11:09:30 +02:00
|
|
|
Source: %{name}-%{version}.tar.xz
|
2011-12-20 22:09:48 +01:00
|
|
|
BuildRequires: automake
|
2009-08-17 15:45:00 +02:00
|
|
|
BuildRequires: libcap-devel
|
2016-04-24 11:09:30 +02:00
|
|
|
BuildRequires: pkg-config
|
2019-07-03 16:57:13 +02:00
|
|
|
BuildRequires: systemd-rpm-macros
|
2012-09-24 17:00:55 +02:00
|
|
|
BuildRequires: xz
|
2016-04-24 11:09:30 +02:00
|
|
|
BuildRequires: pkgconfig(dbus-1) >= 1.2
|
|
|
|
BuildRequires: pkgconfig(polkit-agent-1)
|
|
|
|
BuildRequires: pkgconfig(polkit-gobject-1)
|
|
|
|
Requires: polkit
|
|
|
|
Requires(pre): dbus-1
|
2016-05-19 11:25:51 +02:00
|
|
|
Provides: %{name} = 0.11_git201205151338
|
|
|
|
Obsoletes: %{name} = 0.11_git201205151338
|
2016-04-24 11:09:30 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2009-08-17 15:45:00 +02:00
|
|
|
|
|
|
|
%description
|
2016-04-24 11:09:30 +02:00
|
|
|
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.
|
2009-08-17 15:45:00 +02:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2012-09-24 17:00:55 +02:00
|
|
|
autoreconf -fiv
|
2019-07-03 16:57:13 +02:00
|
|
|
export CFLAGS="%{optflags} -fPIE -Wno-format-nonliteral -Wno-format-security"
|
2016-04-24 11:09:30 +02:00
|
|
|
export LDFLAGS="-Wl,-z,relro,-z,now -pie"
|
|
|
|
%configure \
|
|
|
|
--disable-silent-rules \
|
|
|
|
--with-systemdsystemunitdir=%{_unitdir} \
|
|
|
|
--libexecdir=%{_libexecdir}/rtkit
|
2011-12-02 11:50:15 +01:00
|
|
|
|
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
|
2016-04-24 11:09:30 +02:00
|
|
|
make %{?_smp_mflags} DESTDIR=%{buildroot} install
|
|
|
|
ln -sv %{_sbindir}/service %{buildroot}%{_sbindir}/rcrtkit-daemon
|
|
|
|
install -D -m 0644 org.freedesktop.RealtimeKit1.xml %{buildroot}/%{_datadir}/dbus-1/interfaces/org.freedesktop.RealtimeKit1.xml
|
2009-08-17 15:45:00 +02:00
|
|
|
|
2011-12-02 11:50:15 +01:00
|
|
|
%preun
|
|
|
|
%service_del_preun rtkit-daemon.service
|
|
|
|
|
2009-08-17 15:45:00 +02:00
|
|
|
%pre
|
2014-11-10 11:16:43 +01:00
|
|
|
groupadd -r rtkit >/dev/null 2>&1 || :
|
2016-04-24 11:09:30 +02:00
|
|
|
%{_bindir}/id rtkit >/dev/null 2>&1 || \
|
2020-11-12 12:19:46 +01:00
|
|
|
useradd -r -g rtkit -c 'RealtimeKit' -s /bin/false -d /var/lib/empty rtkit
|
2009-08-17 15:45:00 +02:00
|
|
|
|
2011-12-02 11:50:15 +01:00
|
|
|
%service_add_pre rtkit-daemon.service
|
|
|
|
|
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 || :
|
2011-12-02 11:50:15 +01:00
|
|
|
%service_add_post rtkit-daemon.service
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%service_del_postun rtkit-daemon.service
|
2009-08-17 15:45:00 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(0644,root,root,0755)
|
2020-11-12 12:19:46 +01:00
|
|
|
%license GPL LICENSE
|
|
|
|
%doc README rtkit.c rtkit.h
|
2009-08-17 15:45:00 +02:00
|
|
|
%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
|
2016-04-24 11:09:30 +02:00
|
|
|
%{_mandir}/man8/rtkitctl.8%{ext_man}
|
|
|
|
%{_sbindir}/rcrtkit-daemon
|
2011-12-02 11:50:15 +01:00
|
|
|
%{_unitdir}/rtkit-daemon.service
|
2009-08-17 15:45:00 +02:00
|
|
|
|
|
|
|
%changelog
|