From f91a1b30d8cadab481ca8f7a31f15a9df67b888a Mon Sep 17 00:00:00 2001 From: Liwei Ge Date: Tue, 19 Jul 2022 12:13:35 +0800 Subject: [PATCH] spec: add sub doc package --- perl-IO-Compress.spec | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/perl-IO-Compress.spec b/perl-IO-Compress.spec index cba785e..0b1dacc 100644 --- a/perl-IO-Compress.spec +++ b/perl-IO-Compress.spec @@ -1,3 +1,5 @@ +%define anolis_release .0.1 + # Run time expensive tests %bcond_without long_tests # Run optional test @@ -11,7 +13,7 @@ Name: perl-IO-Compress Version: 2.081 -Release: 1%{?dist} +Release: 1%{anolis_release}%{?dist} Summary: Read and write compressed data License: GPL+ or Artistic URL: http://search.cpan.org/dist/IO-Compress/ @@ -89,6 +91,14 @@ included with the IO-Compress distribution: * IO-Compress-Bzip2 * IO-Compress-Base +%package doc +Summary: Documents for %{name} +Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} +BuildArch: noarch + +%description doc +Doc pages for %{name}. + %prep %setup -q -n IO-Compress-%{version} @@ -115,7 +125,6 @@ find %{buildroot} -type f -name .packlist -delete make test COMPRESS_ZLIB_RUN_%{?with_long_tests:ALL}%{!?with_long_tests:MOST}=1 %files -%doc Changes README examples/* %{_bindir}/zipdetails %{perl_privlib}/Compress/ %{perl_privlib}/File/ @@ -140,7 +149,13 @@ make test COMPRESS_ZLIB_RUN_%{?with_long_tests:ALL}%{!?with_long_tests:MOST}=1 %{_mandir}/man3/IO::Compress::*.3* %{_mandir}/man3/IO::Uncompress::*.3* +%files doc +%doc Changes README examples/* + %changelog +* Tue Jul 19 2022 Liwei Ge - 2.081-1.0.1 +- Add doc sub package + * Mon Apr 09 2018 Jitka Plesnikova - 2.081-1 - 2.081 bump -- Gitee