From 03264980a291b2676832aac915f8166134ebaf61 Mon Sep 17 00:00:00 2001 From: HangBo Fan Date: Tue, 19 Jul 2022 19:09:51 +0800 Subject: [PATCH] spec: add doc sub package --- timedatex.spec | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/timedatex.spec b/timedatex.spec index 486adb1..590277e 100644 --- a/timedatex.spec +++ b/timedatex.spec @@ -1,8 +1,9 @@ +%define anolis_release .0.1 %global _hardened_build 1 Name: timedatex Version: 0.5 -Release: 3%{?dist} +Release: 3%{anolis_release}%{?dist} Summary: D-Bus service for system clock and RTC settings Group: System Environment/Daemons @@ -21,6 +22,14 @@ interface. It can be used to read and set the system clock, the real-time clock (RTC), the system timezone, and enable or disable an NTP client installed on the system. It is a replacement for the systemd-timedated service. +%package doc +Summary: Documents for %{name} +BuildArch: noarch +Requires: %{name} = %{version}-%{release} + +%description doc +Doc pages for %{name}. + %prep %setup -q %patch1 -p1 -b .timeout @@ -47,14 +56,19 @@ ln -s /dev/null %{buildroot}%{_sysconfdir}/systemd/system/systemd-timedated.serv %systemd_postun_with_restart %{name}.service %files -%doc COPYING NEWS README %{_sysconfdir}/systemd/system/systemd-timedated.service %{_sbindir}/%{name} %{_mandir}/man8/%{name}.8* %{_unitdir}/%{name}.service %dir %{_prefix}/lib/systemd/ntp-units.d +%files doc +%doc COPYING NEWS README + %changelog +* Mon Jul 18 2022 Hangbo Fan - 0.5-3.0.1 +- Add doc sub package + * Fri Feb 09 2018 Fedora Release Engineering - 0.5-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild -- Gitee