From 88c52a42bd2488782e967a586ed844c8c1610f6d Mon Sep 17 00:00:00 2001 From: Liwei Ge Date: Tue, 19 Jul 2022 13:46:42 +0800 Subject: [PATCH] spec: add sub doc package --- perl-Module-Load.spec | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/perl-Module-Load.spec b/perl-Module-Load.spec index cacb482..1c6132d 100644 --- a/perl-Module-Load.spec +++ b/perl-Module-Load.spec @@ -1,8 +1,10 @@ +%define anolis_release .0.1 + Name: perl-Module-Load # Epoch to compete with perl.spec Epoch: 1 Version: 0.32 -Release: 395%{?dist} +Release: 395%{anolis_release}%{?dist} Summary: Run-time require of both modules and files License: GPL+ or Artistic Group: Development/Libraries @@ -36,6 +38,14 @@ notation fitting the particular platform you are on. "load" eliminates the need for this overhead and will just DWYM. +%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-%{version} @@ -52,11 +62,16 @@ find '%{buildroot}' -type f -name .packlist -exec rm -f {} + make test %files -%doc CHANGES README %{perl_vendorlib}/* %{_mandir}/man3/* +%files doc +%doc CHANGES README + %changelog +* Tue Jul 19 2022 Liwei Ge - 1:0.32-395.0.1 +- Add doc sub package + * Thu Feb 08 2018 Fedora Release Engineering - 1:0.32-395 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild -- Gitee