From b9d7a50c647a4ecd9b9cf1574d64a82a0dee8c0f Mon Sep 17 00:00:00 2001 From: Liwei Ge Date: Tue, 19 Jul 2022 14:30:36 +0800 Subject: [PATCH] spec: add sub doc package --- perl-Storable.spec | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/perl-Storable.spec b/perl-Storable.spec index 9d6c60c..8eeba99 100644 --- a/perl-Storable.spec +++ b/perl-Storable.spec @@ -1,7 +1,9 @@ +%define anolis_release .0.1 + Name: perl-Storable Epoch: 1 Version: 3.11 -Release: 3%{?dist} +Release: 3%{anolis_release}%{?dist} Summary: Persistence for Perl data structures # __Storable__.pm: GPL+ or Artistic ## Not in the binary packages @@ -75,6 +77,14 @@ The Storable package brings persistence to your Perl data structures containing scalar, array, hash or reference objects, i.e. anything that can be conveniently stored to disk and retrieved at a later time. +%package doc +Summary: Documents for %{name} +Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} +BuildArch: noarch + +%description doc +Doc pages for %{name}. + %prep %setup -q -n Storable-%{version} @@ -93,12 +103,17 @@ unset PERL_TEST_MEMORY PERL_RUN_SLOW_TESTS make test %files -%doc ChangeLog README %{perl_vendorarch}/auto/* %{perl_vendorarch}/Storable* %{_mandir}/man3/* +%files doc +%doc ChangeLog README + %changelog +* Tue Jul 19 2022 Liwei Ge - 1:3.11-3.0.1 +- Add doc sub package + * Mon Jan 07 2019 Petr Pisar - 1:3.11-3 - Storable-3.11 source archive repackaged without a t/CVE-2015-1592.inc file (bug #1663711) -- Gitee