From edb1534e45ba57beb90d19e7d58fb9d118757cc1 Mon Sep 17 00:00:00 2001 From: liuxiaoping Date: Mon, 18 Jul 2022 14:33:13 +0800 Subject: [PATCH] add doc sub package --- smartmontools.spec | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/smartmontools.spec b/smartmontools.spec index bab18c2..e499e68 100644 --- a/smartmontools.spec +++ b/smartmontools.spec @@ -1,7 +1,9 @@ +%define anolis_release .0.1 + Summary: Tools for monitoring SMART capable hard disks Name: smartmontools Version: 7.1 -Release: 1%{?dist} +Release: 1%{anolis_release}%{?dist} Epoch: 1 Group: System Environment/Base License: GPLv2+ @@ -26,6 +28,9 @@ BuildRequires: readline-devel ncurses-devel automake util-linux groff gettext BuildRequires: libselinux-devel libcap-ng-devel BuildRequires: systemd-units systemd-devel +Requires: glibc +Provides: /usr/sbin/smartctl + %description The smartmontools package contains two utility programs (smartctl and smartd) to control and monitor storage systems using the Self- @@ -34,6 +39,14 @@ into most modern ATA and SCSI hard disks. In many cases, these utilities will provide advanced warning of disk degradation and failure. +%package doc +Summary: Documents for %{name} +BuildArch: noarch +Requires: %{name} = %{version}-%{release} + +%description doc +Doc pages for %{name}. + %prep %setup -q %patch1 -p1 -b .defaultconf @@ -90,8 +103,6 @@ fi %files %defattr(-,root,root,-) -%doc AUTHORS ChangeLog COPYING INSTALL NEWS README -%doc TODO examplescripts smartd.conf %dir %{_sysconfdir}/%name %dir %{_sysconfdir}/%name/smartd_warning.d %config(noreplace) %{_sysconfdir}/%{name}/smartd.conf @@ -107,7 +118,14 @@ fi %{_datadir}/%{name} %{_sharedstatedir}/%{name} +%files doc +%doc AUTHORS ChangeLog COPYING INSTALL NEWS README +%doc TODO examplescripts smartd.conf + %changelog +* Mon Jul 18 2022 Xiaoping Liu - 1:7.1-1.0.1 +- Add doc sub package + * Wed Apr 22 2020 Michal Hlavinka - 1:7.1-1 - smartmontools updated to 7.1 (#1671154) -- Gitee