From 614264d3135d4cd2316a69028b8fb55ee5339681 Mon Sep 17 00:00:00 2001 From: liuxiaoping Date: Sat, 16 Jul 2022 17:16:51 +0800 Subject: [PATCH] add doc sub package --- rtkit.spec | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/rtkit.spec b/rtkit.spec index 15032ba..9c7605b 100644 --- a/rtkit.spec +++ b/rtkit.spec @@ -1,8 +1,9 @@ +%define anolis_release .0.1 %global _hardened_build 1 Name: rtkit Version: 0.11 -Release: 19%{?dist} +Release: 19%{anolis_release}%{?dist} Summary: Realtime Policy and Watchdog Daemon Group: System Environment/Base # The daemon itself is GPLv3+, the reference implementation for the client BSD @@ -23,6 +24,9 @@ Patch1: rtkit-mq_getattr.patch Patch2: 0001-SECURITY-Pass-uid-of-caller-to-polkit.patch Patch3: rtkit-controlgroup.patch +Provides: /usr/sbin/rtkitctl +Requires: glibc + # Temporarily disable -Werror=format-security since it breaks the build Patch4: format-security.patch @@ -33,6 +37,14 @@ 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. +%package doc +Summary: Documents for %{name} +BuildArch: noarch +Requires: %{name} = %{version}-%{release} + +%description doc +Doc pages for %{name}. + %prep %setup -q %patch1 -p1 @@ -76,7 +88,6 @@ dbus-send --system --type=method_call --dest=org.freedesktop.DBus / org.freedesk %systemd_postun %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 @@ -86,7 +97,13 @@ dbus-send --system --type=method_call --dest=org.freedesktop.DBus / org.freedesk %{_prefix}/lib/systemd/system/rtkit-daemon.service %{_mandir}/man8/* +%files doc +%doc README GPL LICENSE rtkit.c rtkit.h + %changelog +* Sat Jul 16 2022 Xiaoping Liu - 0.11-19.0.1 +- Add doc sub package + * Thu Jan 17 2019 Michal Sekletár - 0.11-19 - add systemd to BuildRequires (#1654656) -- Gitee