From def23d8688bf3cfdf0174c52b1969641a5cc9638 Mon Sep 17 00:00:00 2001 From: Zhao Hang Date: Tue, 19 Jul 2022 16:14:18 +0800 Subject: [PATCH] spec: add doc sub package Signed-off-by: Zhao Hang --- mdadm.spec | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/mdadm.spec b/mdadm.spec index cf23fc5..03642d6 100644 --- a/mdadm.spec +++ b/mdadm.spec @@ -1,9 +1,11 @@ +%define anolis_release .0.1 + Summary: The mdadm program controls Linux md devices (software RAID arrays) Name: mdadm Version: 4.2 # extraversion is used to define rhel internal version %define extraversion 2 -Release: %{extraversion}%{?dist} +Release: %{extraversion}%{anolis_release}%{?dist} Source: http://www.kernel.org/pub/linux/utils/raid/mdadm/mdadm-%{version}%{?subversion:-%{subversion}}.tar.xz Source1: mdmonitor.init Source2: raid-check @@ -45,6 +47,14 @@ package. However, mdadm is a single program, and it can perform almost all functions without a configuration file, though a configuration file can be used to help with some common tasks. +%package doc +Summary: Documents for %{name} +BuildArch: noarch +Requires: %{name} = %{version}-%{release} + +%description doc +Doc pages for %{name}. + %prep %setup -q -n %{name}-%{version}%{?subversion:_%{subversion}} @@ -106,7 +116,7 @@ rm -rf %{buildroot} %files %defattr(-,root,root,-) -%doc TODO ChangeLog mdadm.conf-example COPYING misc/* +%doc COPYING misc/* %{_udevrulesdir}/* %{_sbindir}/* %{_unitdir}/* @@ -120,7 +130,13 @@ rm -rf %{buildroot} /usr/share/mdadm/mdcheck /usr/lib/mdadm/mdadm_env.sh +%files doc +%doc TODO ChangeLog mdadm.conf-example + %changelog +* Tue Jul 19 2022 Zhao Hang - 4.2-2.0.1 +- Add doc sub package + * Thu Feb 24 2022 Xiao Ni - 4.2-2 - mdadm re-add fault/removed disk failed - Resolves rhbz#2046323 -- Gitee