From 99097d8b215fc88316f5ee1c2d0480d824d26e8e Mon Sep 17 00:00:00 2001 From: mgb01105731 Date: Fri, 14 Oct 2022 15:18:41 +0800 Subject: [PATCH] add doc package --- perl-PathTools.spec | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/perl-PathTools.spec b/perl-PathTools.spec index 18e2550..c3abbdc 100644 --- a/perl-PathTools.spec +++ b/perl-PathTools.spec @@ -1,6 +1,8 @@ +%define anolis_release 2 + Name: perl-PathTools Version: 3.75 -Release: 1%{?dist} +Release: %{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: Documentation files for %{name} +Requires: %{name} = %{version}-%{release} +BuildArch: noarch + +%description doc +The %{name}-doc package contains documentation files for %{name}. + %prep %setup -q -n PathTools-%{version} %patch0 -p1 @@ -70,12 +80,17 @@ 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 +* Fri Oct 14 2022 mgb01105731 - 3.75-2 +- add doc package + * Thu Mar 10 2022 Yaobin Shi - 3.75-1 - Init for Anolis OS 23 -- Gitee