|
|
|
@ -1,47 +1,29 @@
|
|
|
|
|
## START: Set by rpmautospec
|
|
|
|
|
## (rpmautospec version 0.6.5)
|
|
|
|
|
## RPMAUTOSPEC: autorelease, autochangelog
|
|
|
|
|
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
|
|
|
|
|
release_number = 50;
|
|
|
|
|
base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
|
|
|
|
|
print(release_number + base_release_number - 1);
|
|
|
|
|
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
|
|
|
|
|
## END: Set by rpmautospec
|
|
|
|
|
|
|
|
|
|
Name: rtkit
|
|
|
|
|
Version: 0.11
|
|
|
|
|
# -b is needed because of https://pagure.io/fedora-infra/rpmautospec/issue/228
|
|
|
|
|
# Remove if the version is ever bumped (or rpmautospec fixed).
|
|
|
|
|
Release: %autorelease -b17
|
|
|
|
|
Release: 28%{?dist}
|
|
|
|
|
Summary: Realtime Policy and Watchdog Daemon
|
|
|
|
|
# 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
|
|
|
|
|
# The daemon itself is GPLv3+, the reference implementation for the client BSD
|
|
|
|
|
License: GPLv3+ and BSD
|
|
|
|
|
URL: http://git.0pointer.net/rtkit.git/
|
|
|
|
|
Requires: dbus
|
|
|
|
|
Requires: polkit
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: systemd-devel
|
|
|
|
|
BuildRequires: systemd-rpm-macros
|
|
|
|
|
BuildRequires: dbus-devel >= 1.2
|
|
|
|
|
BuildRequires: libcap-devel
|
|
|
|
|
BuildRequires: polkit-devel
|
|
|
|
|
BuildRequires: autoconf automake libtool
|
|
|
|
|
%{?sysusers_requires_compat}
|
|
|
|
|
Source0: http://0pointer.de/public/%{name}-%{version}.tar.xz
|
|
|
|
|
Source1: rtkit.sysusers
|
|
|
|
|
Patch: rtkit-mq_getattr.patch
|
|
|
|
|
Patch: 0001-SECURITY-Pass-uid-of-caller-to-polkit.patch
|
|
|
|
|
Patch: rtkit-controlgroup.patch
|
|
|
|
|
Patch1: rtkit-mq_getattr.patch
|
|
|
|
|
Patch2: 0001-SECURITY-Pass-uid-of-caller-to-polkit.patch
|
|
|
|
|
Patch3: rtkit-controlgroup.patch
|
|
|
|
|
|
|
|
|
|
# Temporarily disable -Werror=format-security since it breaks the build
|
|
|
|
|
Patch: format-security.patch
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
Patch4: format-security.patch
|
|
|
|
|
|
|
|
|
|
Patch: 0001-Don-t-store-debug-messages-from-rtkit-daemon.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
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
RealtimeKit is a D-Bus system service that changes the
|
|
|
|
@ -62,10 +44,21 @@ autoreconf -fvi
|
|
|
|
|
%install
|
|
|
|
|
%make_install
|
|
|
|
|
install -Dm0644 org.freedesktop.RealtimeKit1.xml %{buildroot}%{_datadir}/dbus-1/interfaces/org.freedesktop.RealtimeKit1.xml
|
|
|
|
|
install -Dpm 0644 %{SOURCE1} %{buildroot}%{_sysusersdir}/rtkit.conf
|
|
|
|
|
|
|
|
|
|
%pre
|
|
|
|
|
%sysusers_create_compat %{SOURCE1}
|
|
|
|
|
getent group rtkit >/dev/null 2>&1 || groupadd \
|
|
|
|
|
-r \
|
|
|
|
|
-g 172 \
|
|
|
|
|
rtkit
|
|
|
|
|
getent passwd rtkit >/dev/null 2>&1 || useradd \
|
|
|
|
|
-r -l \
|
|
|
|
|
-u 172 \
|
|
|
|
|
-g rtkit \
|
|
|
|
|
-d /proc \
|
|
|
|
|
-s /sbin/nologin \
|
|
|
|
|
-c "RealtimeKit" \
|
|
|
|
|
rtkit
|
|
|
|
|
:;
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
%systemd_post rtkit-daemon.service
|
|
|
|
@ -87,38 +80,14 @@ dbus-send --system --type=method_call --dest=org.freedesktop.DBus / org.freedesk
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/org.freedesktop.RealtimeKit1.conf
|
|
|
|
|
%{_prefix}/lib/systemd/system/rtkit-daemon.service
|
|
|
|
|
%{_mandir}/man8/*
|
|
|
|
|
%{_sysusersdir}/rtkit.conf
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
## START: Generated by rpmautospec
|
|
|
|
|
* Fri Aug 16 2024 Michal Sekletar <msekleta@redhat.com> - 0.11-66
|
|
|
|
|
- Don't store debug messages from rtkit-daemon
|
|
|
|
|
|
|
|
|
|
* Tue Aug 13 2024 Michal Sekletar <msekleta@redhat.com> - 0.11-65
|
|
|
|
|
- Add gating configuration
|
|
|
|
|
|
|
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 0.11-64
|
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-63
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 0.11-28
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-62
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Oct 02 2023 Daan De Meyer <daan.j.demeyer@gmail.com> - 0.11-30
|
|
|
|
|
- Provide a sysusers.d file to get user() and group() provides
|
|
|
|
|
(see https://fedoraproject.org/wiki/Changes/Adopting_sysusers.d_format).
|
|
|
|
|
|
|
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-29
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-28
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Mar 02 2021 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.11-27
|
|
|
|
|
- Rebuilt for updated systemd-rpm-macros
|
|
|
|
|
See https://pagure.io/fesco/issue/2583.
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.11-27
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-26
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
@ -247,5 +216,3 @@ dbus-send --system --type=method_call --dest=org.freedesktop.DBus / org.freedesk
|
|
|
|
|
|
|
|
|
|
* Wed Jun 17 2009 Lennart Poettering <lpoetter@redhat.com> - 0.2-1
|
|
|
|
|
- Initial packaging
|
|
|
|
|
|
|
|
|
|
## END: Generated by rpmautospec
|
|
|
|
|