From 54df6d3a6e361addb405cc4f9f53155b0bd260f3 Mon Sep 17 00:00:00 2001 From: mgb01105731 Date: Thu, 29 Sep 2022 16:29:29 +0800 Subject: [PATCH] add doc package --- dosfstools.spec | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/dosfstools.spec b/dosfstools.spec index a8a3814..51e6716 100644 --- a/dosfstools.spec +++ b/dosfstools.spec @@ -1,4 +1,4 @@ -%define anolis_release 1 +%define anolis_release 2 Name: dosfstools Version: 4.2 @@ -17,6 +17,14 @@ BuildRequires: /usr/bin/xxd dosfstools consists of the programs mkfs.fat, fsck.fat and fatlabel to create, check and label file systems of the FAT family. +%package doc +Summary: Documentation files for %{name} +Requires: %{name} = %{version}-%{release} +BuildArch: noarch + +%description doc +The %{name}-doc package contains documentation files for %{name}. + %prep %setup -q @@ -31,12 +39,23 @@ make check %make_install rm -f %{buildroot}%{_docdir}/%{name}/COPYING +rm -f %{buildroot}%{_docdir}/%{name}/ANNOUNCE.mkdosfs +rm -f %{buildroot}%{_docdir}/%{name}/ChangeLog* +rm -f %{buildroot}%{_docdir}/%{name}/README* +rm -f %{buildroot}%{_docdir}/%{name}/NEWS +rm -f %{buildroot}%{_docdir}/%{name}/TODO.dosfstools-2.x + %files %license COPYING -%doc NEWS README ChangeLog doc/* %{_sbindir}/* %{_mandir}/man8/* +%files doc +%doc NEWS README ChangeLog doc/* + %changelog +* Thu Sep 29 2022 mgb01105731 - 4.2-2 +- add doc package + * Fri Mar 11 2022 Su Lifan - 4.2-1 * Initial packaging for Anolis OS 23 -- Gitee