From 727746844632961986ceeb6a5cf4dceb96d34b70 Mon Sep 17 00:00:00 2001 From: HangBo Fan Date: Tue, 19 Jul 2022 19:23:39 +0800 Subject: [PATCH] spec: add doc sub package --- sysstat.spec | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/sysstat.spec b/sysstat.spec index 58d1f57..21d3293 100644 --- a/sysstat.spec +++ b/sysstat.spec @@ -1,7 +1,8 @@ +%define anolis_release .0.1 Summary: Collection of performance monitoring tools for Linux Name: sysstat Version: 11.7.3 -Release: 7%{?dist} +Release: 7%{anolis_release}%{?dist} License: GPLv2+ Group: Applications/System URL: http://sebastien.godard.pagesperso-orange.fr/ @@ -43,6 +44,14 @@ The mpstat command reports global and per-processor statistics. The pidstat command reports statistics for Linux tasks (processes). The cifsiostat command reports I/O statistics for CIFS file systems. +%package doc +Summary: Documents for %{name} +BuildArch: noarch +Requires: %{name} = %{version}-%{release} + +%description doc +Doc pages for %{name}. + %prep %setup -q %patch01 -p0 @@ -73,6 +82,8 @@ mkdir -p %{buildroot}%{_sysconfdir}/profile.d install -p -m 644 %{SOURCE10} %{buildroot}%{_sysconfdir}/profile.d install -p -m 644 %{SOURCE11} %{buildroot}%{_sysconfdir}/profile.d +rm -rf $RPM_BUILD_ROOT/%{_docdir}/%{name} + %post %systemd_post sysstat.service sysstat-collect.timer sysstat-summary.timer @@ -87,7 +98,6 @@ fi %systemd_postun sysstat.service sysstat-collect.timer sysstat-summary.timer %files -f %{name}.lang -%doc CHANGES COPYING CREDITS FAQ.md README.md %{name}-%{version}.lsm %config(noreplace) %{_sysconfdir}/sysconfig/sysstat %config(noreplace) %{_sysconfdir}/sysconfig/sysstat.ioconf %config(noreplace) %{_sysconfdir}/profile.d/* @@ -97,7 +107,13 @@ fi %{_mandir}/man*/* %{_localstatedir}/log/sa +%files doc +%doc CHANGES COPYING CREDITS FAQ.md README.md %{name}-%{version}.lsm + %changelog +* Mon Jul 18 2022 Hangbo Fan - 11.7.3-7.0.1 +- Add doc sub package + * Mon Nov 29 2021 - 11.7.3-7 - Don't trigger autofs mounts when running sadc (#2000910) - sar: Add missing %gnice CPU value for tickless CPU (#2000916) -- Gitee