diff --git a/mdadm.spec b/mdadm.spec index cf23fc5d1fc068f49126fc67447bfda5b0c17776..03642d6698ecdc279a73542cc68f5923f95dfd22 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