From d6e283e19b97eed2ddd5c24902c4ba6a52837c89 Mon Sep 17 00:00:00 2001 From: Liwei Ge Date: Tue, 19 Jul 2022 12:12:32 +0800 Subject: [PATCH] spec: add sub doc package --- perl-inc-latest.spec | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/perl-inc-latest.spec b/perl-inc-latest.spec index fdf1ee9..0deb641 100644 --- a/perl-inc-latest.spec +++ b/perl-inc-latest.spec @@ -1,7 +1,9 @@ +%define anolis_release .0.1 + Name: perl-inc-latest Epoch: 2 Version: 0.500 -Release: 9%{?dist} +Release: 9%{anolis_release}%{?dist} Summary: Use modules bundled in inc/ if they are newer than installed ones License: ASL 2.0 Group: Development/Libraries @@ -25,6 +27,14 @@ The inc::latest module helps bootstrap configure-time dependencies for CPAN distributions. These dependencies get bundled into the inc directory within a distribution and are used by Makefile.PL or Build.PL. +%package doc +Summary: Documents for %{name} +Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} +BuildArch: noarch + +%description doc +Doc pages for %{name}. + %prep %setup -q -n inc-latest-%{version} @@ -42,11 +52,16 @@ make test %files %license LICENSE -%doc Changes README %{perl_vendorlib}/* %{_mandir}/man3/* +%files doc +%doc Changes README + %changelog +* Tue Jul 19 2022 Liwei Ge - 2:0.500-9.0.1 +- Add doc sub package + * Fri Feb 09 2018 Fedora Release Engineering - 2:0.500-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild -- Gitee