From 8936e80d2d6d1836f9883ed401da6d054bf74d9e Mon Sep 17 00:00:00 2001 From: Liwei Ge Date: Tue, 19 Jul 2022 14:44:31 +0800 Subject: [PATCH] spec: add sub doc package --- perl-Test-Simple.spec | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/perl-Test-Simple.spec b/perl-Test-Simple.spec index b299300..4ea09fd 100644 --- a/perl-Test-Simple.spec +++ b/perl-Test-Simple.spec @@ -1,3 +1,5 @@ +%define anolis_release .0.1 + %if ! (0%{?rhel}) %bcond_without perl_Test_Simple_enables_optional_test %else @@ -8,7 +10,7 @@ Name: perl-Test-Simple Summary: Basic utilities for writing tests Epoch: 1 Version: 1.302135 -Release: 1%{?dist} +Release: 1%{anolis_release}%{?dist} # CC0: lib/ok.pm # Public Domain: lib/Test/Tutorial.pod # GPL+ or Artistic: the rest of the distribution @@ -82,6 +84,14 @@ information, see perldoc for Test::Simple, Test::More, etc. This package is the CPAN component of the dual-lifed core package Test-Simple. +%package doc +Summary: Documents for %{name} +Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} +BuildArch: noarch + +%description doc +Doc pages for %{name}. + %prep %setup -q -n Test-Simple-%{version} @@ -98,7 +108,6 @@ make test AUTHOR_TESTING=1 %files %license LICENSE -%doc Changes README examples/ t/ %dir %{perl_vendorlib}/Test/ %{perl_vendorlib}/ok.pm %{perl_vendorlib}/Test/Builder.pm @@ -178,7 +187,13 @@ make test AUTHOR_TESTING=1 %{_mandir}/man3/Test2::Util::HashBase.3* %{_mandir}/man3/Test2::Util::Trace.3* +%files doc +%doc Changes README examples/ t/ + %changelog +* Tue Jul 19 2022 Liwei Ge - 1:1.302135-1.0.1 +- Add doc sub package + * Fri Mar 30 2018 Paul Howarth - 1:1.302135-1 - Update to 1.302135 - Make sure all hubs, events, and contexts get a unique (per run) id -- Gitee