From 3678843661de6162f7ad9a333309946ff736e413 Mon Sep 17 00:00:00 2001 From: Liwei Ge Date: Tue, 19 Jul 2022 14:26:41 +0800 Subject: [PATCH] spec: add sub doc package --- perl-Scalar-List-Utils.spec | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/perl-Scalar-List-Utils.spec b/perl-Scalar-List-Utils.spec index 2160580..3186304 100644 --- a/perl-Scalar-List-Utils.spec +++ b/perl-Scalar-List-Utils.spec @@ -1,7 +1,9 @@ +%define anolis_release .0.1 + Name: perl-Scalar-List-Utils Epoch: 3 Version: 1.49 -Release: 2%{?dist} +Release: 2%{anolis_release}%{?dist} Summary: A selection of general-utility scalar and list subroutines License: GPL+ or Artistic Group: Development/Libraries @@ -52,6 +54,14 @@ would be nice to have in the perl core, but the usage would not really be high enough to warrant the use of a keyword, and the size so small such that being individual extensions would be wasteful. +%package doc +Summary: Documents for %{name} +Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} +BuildArch: noarch + +%description doc +Doc pages for %{name}. + %prep %setup -q -n Scalar-List-Utils-%{version} @@ -68,14 +78,19 @@ find %{buildroot} -type f -name '*.bs' -size 0 -delete make test %files -%doc Changes README %{perl_vendorarch}/auto/* %{perl_vendorarch}/List* %{perl_vendorarch}/Scalar* %{perl_vendorarch}/Sub* %{_mandir}/man3/* +%files doc +%doc Changes README + %changelog +* Tue Jul 19 2022 Liwei Ge - 3:1.49-2.0.1 +- Add doc sub package + * Fri Feb 09 2018 Fedora Release Engineering - 3:1.49-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild -- Gitee