From 863b43c90231ff913e25418736048c11e1e2bc2e Mon Sep 17 00:00:00 2001 From: Liwei Ge Date: Tue, 19 Jul 2022 14:05:09 +0800 Subject: [PATCH] spec: add sub doc package --- perl-Params-Util.spec | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/perl-Params-Util.spec b/perl-Params-Util.spec index 15c6df2..6f2a88c 100644 --- a/perl-Params-Util.spec +++ b/perl-Params-Util.spec @@ -1,6 +1,8 @@ +%define anolis_release .0.1 + Name: perl-Params-Util Version: 1.07 -Release: 22%{?dist} +Release: 22%{anolis_release}%{?dist} Summary: Simple standalone parameter-checking functions License: GPL+ or Artistic Group: Development/Libraries @@ -37,6 +39,14 @@ BuildRequires: perl(File::Spec::Functions) Params::Util provides a basic set of importable functions that makes checking parameters a hell of a lot easier. +%package doc +Summary: Documents for %{name} +Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} +BuildArch: noarch + +%description doc +Doc pages for %{name}. + %prep %setup -q -n Params-Util-%{version} @@ -54,14 +64,19 @@ chmod -R u+w $RPM_BUILD_ROOT/* make test AUTOMATED_TESTING=1 %files -%doc Changes %license LICENSE %{perl_vendorarch}/auto/* %{perl_vendorarch}/Params %{_mandir}/man3/* +%files doc +%doc Changes + %changelog +* Tue Jul 19 2022 Liwei Ge - 1.07-22.0.1 +- Add doc sub package + * Fri Feb 09 2018 Igor Gnatenko - 1.07-22 - Escape macros in %%changelog -- Gitee