From 3fb88ae765b5618cbaa0f359b64e9dbfe7fb9f68 Mon Sep 17 00:00:00 2001 From: Liwei Ge Date: Tue, 19 Jul 2022 10:24:47 +0800 Subject: [PATCH] spec: add sub doc package --- perl-Archive-Tar.spec | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/perl-Archive-Tar.spec b/perl-Archive-Tar.spec index 53d7828..858a0b5 100644 --- a/perl-Archive-Tar.spec +++ b/perl-Archive-Tar.spec @@ -1,3 +1,5 @@ +%define anolis_release .0.1 + # Run optional test %if ! (0%{?rhel}) %bcond_without perl_Archive_Tar_enables_optional_test @@ -7,7 +9,7 @@ Name: perl-Archive-Tar Version: 2.30 -Release: 1%{?dist} +Release: 1%{anolis_release}%{?dist} Summary: A module for Perl manipulation of .tar files License: GPL+ or Artistic URL: https://metacpan.org/release/Archive-Tar @@ -85,6 +87,14 @@ while also allowing for the creation of tar file objects for custom manipulation. If you have the IO::Zlib module installed, Archive::Tar will also support compressed or gzipped tar files. +%package doc +Summary: Documents for %{name} +Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} +BuildArch: noarch + +%description doc +Doc pages for %{name}. + %prep %setup -q -n Archive-Tar-%{version} %patch0 -p1 @@ -101,14 +111,19 @@ make pure_install DESTDIR=%{buildroot} make test %files -%doc CHANGES README %{_bindir}/* %{perl_vendorlib}/Archive/ %{_mandir}/man3/*.3* %{_mandir}/man1/*.1* +%files doc +%doc CHANGES README + %changelog +* Tue Jul 19 2022 Liwei Ge - 2.30-1.0.1 +- Add doc sub package + * Tue Jun 19 2018 Jitka Plesnikova - 2.30-1 - 2.30 bump -- Gitee