From a84d0f914a1acc83c064fa888a47b717fa03faaa Mon Sep 17 00:00:00 2001 From: Liwei Ge Date: Tue, 19 Jul 2022 13:47:28 +0800 Subject: [PATCH] spec: add sub doc package --- perl-Module-Load-Conditional.spec | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/perl-Module-Load-Conditional.spec b/perl-Module-Load-Conditional.spec index 977b621..a7529d5 100644 --- a/perl-Module-Load-Conditional.spec +++ b/perl-Module-Load-Conditional.spec @@ -1,6 +1,8 @@ +%define anolis_release .0.1 + Name: perl-Module-Load-Conditional Version: 0.68 -Release: 395%{?dist} +Release: 395%{anolis_release}%{?dist} Summary: Looking up module information and loading at run-time License: GPL+ or Artistic URL: http://search.cpan.org/dist/Module-Load-Conditional/ @@ -47,6 +49,14 @@ Requires: perl(version) >= 0.69 This module provides simple ways to query and possibly load any of the modules you have installed on your system during run-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 Module-Load-Conditional-%{version} @@ -63,11 +73,16 @@ find %{buildroot} -type f -name .packlist -delete make test %files -%doc CHANGES README %{perl_vendorlib}/Module/ %{_mandir}/man3/Module::Load::Conditional.3* +%files doc +%doc CHANGES README + %changelog +* Tue Jul 19 2022 Liwei Ge - 0.68-395.0.1 +- Add doc sub package + * Thu Feb 08 2018 Fedora Release Engineering - 0.68-395 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild -- Gitee