diff --git a/perl-Archive-Tar.spec b/perl-Archive-Tar.spec index 53d7828ffc56b76853915e881e95b8dcc6ac56a2..858a0b5d1fb3505745f2dce0f5611c61f8f4ece3 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