From 7bad5d769fae34efeaf77c1ca641d25011fbf8d8 Mon Sep 17 00:00:00 2001 From: Liwei Ge Date: Tue, 19 Jul 2022 14:07:51 +0800 Subject: [PATCH] spec: add sub doc package --- perl-PathTools.spec | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/perl-PathTools.spec b/perl-PathTools.spec index d3c9a28..5fe65d8 100644 --- a/perl-PathTools.spec +++ b/perl-PathTools.spec @@ -1,6 +1,8 @@ +%define anolis_release .0.1 + Name: perl-PathTools Version: 3.74 -Release: 1%{?dist} +Release: 1%{anolis_release}%{?dist} Summary: PathTools Perl module (Cwd, File::Spec) # Cwd.xs: BSD # other files: GPL+ or Artistic @@ -49,6 +51,14 @@ Recommends: perl(XSLoader) %description This is the combined distribution for the File::Spec and Cwd modules. +%package doc +Summary: Documents for %{name} +Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} +BuildArch: noarch + +%description doc +Doc pages for %{name}. + %prep %setup -q -n PathTools-%{version} %patch0 -p1 @@ -70,13 +80,18 @@ find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -delete make test %files -%doc Changes %{perl_vendorarch}/auto/* %{perl_vendorarch}/Cwd.pm %{perl_vendorarch}/File/ %{_mandir}/man3/* +%files doc +%doc Changes + %changelog +* Tue Jul 19 2022 Liwei Ge - 3.74-1.0.1 +- Add doc sub package + * Mon Feb 19 2018 Petr Pisar - 3.74-1 - 3.74 bump -- Gitee