From 707db1736e441d28fe5c421a14a0c35144b3bf1e Mon Sep 17 00:00:00 2001 From: Liwei Ge Date: Tue, 19 Jul 2022 14:50:43 +0800 Subject: [PATCH] spec: add sub doc package --- perl-Text-Glob.spec | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/perl-Text-Glob.spec b/perl-Text-Glob.spec index 97e3bc4..6bfefaa 100644 --- a/perl-Text-Glob.spec +++ b/perl-Text-Glob.spec @@ -1,6 +1,8 @@ +%define anolis_release .0.1 + Name: perl-Text-Glob Version: 0.11 -Release: 4%{?dist} +Release: 4%{anolis_release}%{?dist} Summary: Perl module to match globbing patterns against text License: GPL+ or Artistic URL: http://search.cpan.org/dist/Text-Glob/ @@ -24,6 +26,14 @@ Text::Glob implements glob(3) style matching that can be used to match against text, rather than fetching names from a file-system. If you want to do full file globbing use the File::Glob module instead. +%package doc +Summary: Documents for %{name} +Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} +BuildArch: noarch + +%description doc +Doc pages for %{name}. + %prep %setup -q -n Text-Glob-%{version} @@ -39,11 +49,16 @@ chmod -R u+w $RPM_BUILD_ROOT/* %{__make} test %files -%doc Changes %{perl_vendorlib}/Text %{_mandir}/man3/* +%files doc +%doc Changes + %changelog +* Tue Jul 19 2022 Liwei Ge - 0.11-4.0.1 +- Add doc sub package + * Fri Feb 09 2018 Fedora Release Engineering - 0.11-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild -- Gitee