From 11ed51843b565329b95543201bc09189170bcca0 Mon Sep 17 00:00:00 2001 From: Liwei Ge Date: Tue, 19 Jul 2022 14:25:53 +0800 Subject: [PATCH] spec: add sub doc package --- perl-Pod-Usage.spec | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/perl-Pod-Usage.spec b/perl-Pod-Usage.spec index f158c92..e25ef39 100644 --- a/perl-Pod-Usage.spec +++ b/perl-Pod-Usage.spec @@ -1,8 +1,10 @@ +%define anolis_release .0.1 + Name: perl-Pod-Usage # Compete with perl.spec's epoch Epoch: 4 Version: 1.69 -Release: 395%{?dist} +Release: 395%{anolis_release}%{?dist} Summary: Print a usage message from embedded POD documentation # License clarification CPAN RT#102529 License: GPL+ or Artistic @@ -59,6 +61,14 @@ If the verbose level is 1, then the synopsis is printed along with a description (if present) of the command line options and arguments. If the verbose level is 2, then the entire manual page is printed. +%package doc +Summary: Documents for %{name} +Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} +BuildArch: noarch + +%description doc +Doc pages for %{name}. + %prep %setup -q -n Pod-Usage-%{version} # Remove bundled modules @@ -78,13 +88,18 @@ find $RPM_BUILD_ROOT -type f -name .packlist -delete make test %files -%doc CHANGES README %{_bindir}/* %{perl_vendorlib}/* %{_mandir}/man1/* %{_mandir}/man3/* +%files doc +%doc CHANGES README + %changelog +* Tue Jul 19 2022 Liwei Ge - 4:1.69-395.0.1 +- Add doc sub package + * Fri Feb 09 2018 Fedora Release Engineering - 4:1.69-395 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild -- Gitee