From 746647d7b55a0d46013e96fe86e8f8eb329de7df Mon Sep 17 00:00:00 2001 From: Liwei Ge Date: Tue, 19 Jul 2022 11:24:49 +0800 Subject: [PATCH] spec: add sub doc package --- perl-File-Path.spec | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/perl-File-Path.spec b/perl-File-Path.spec index 13992a0..358bf20 100644 --- a/perl-File-Path.spec +++ b/perl-File-Path.spec @@ -1,6 +1,8 @@ +%define anolis_release .0.1 + Name: perl-File-Path Version: 2.15 -Release: 2%{?dist} +Release: 2%{anolis_release}%{?dist} Summary: Create or remove directory trees License: GPL+ or Artistic URL: http://search.cpan.org/dist/File-Path/ @@ -39,6 +41,14 @@ Requires: perl(Carp) This module provides a convenient way to create directories of arbitrary depth and to delete an entire directory subtree from the file system. +%package doc +Summary: Documents for %{name} +Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} +BuildArch: noarch + +%description doc +Doc pages for %{name}. + %prep %setup -q -n File-Path-%{version} @@ -54,11 +64,16 @@ make pure_install DESTDIR=$RPM_BUILD_ROOT make test %files -%doc Changes README %{perl_vendorlib}/* %{_mandir}/man3/* +%files doc +%doc Changes README + %changelog +* Tue Jul 19 2022 Liwei Ge - 2.15-2.0.1 +- Add doc sub package + * Thu Feb 08 2018 Fedora Release Engineering - 2.15-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild -- Gitee