From af975fa27c676725fb8731166211e68a05ab003e Mon Sep 17 00:00:00 2001 From: Liwei Ge Date: Tue, 19 Jul 2022 10:44:11 +0800 Subject: [PATCH] spec: add sub doc package --- perl-Config-Perl-V.spec | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/perl-Config-Perl-V.spec b/perl-Config-Perl-V.spec index 63a60bc..fc9fba7 100644 --- a/perl-Config-Perl-V.spec +++ b/perl-Config-Perl-V.spec @@ -1,7 +1,9 @@ +%define anolis_release .0.1 + %global cpan_version 0.30 Name: perl-Config-Perl-V Version: 0.30 -Release: 1%{?dist} +Release: 1%{anolis_release}%{?dist} Summary: Structured data retrieval of perl -V output License: GPL+ or Artistic URL: https://metacpan.org/release/Config-Perl-V @@ -38,6 +40,14 @@ hash combined with the output of "perl -V" that is not stored inside the hash, but only available to the perl binary itself. This package provides Perl module that will return you the output of "perl -V" in a structure. +%package doc +Summary: Documents for %{name} +Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} +BuildArch: noarch + +%description doc +Doc pages for %{name}. + %prep %setup -q -n Config-Perl-V-%{cpan_version} %patch0 -p1 @@ -56,11 +66,16 @@ make pure_install DESTDIR=$RPM_BUILD_ROOT make test PERL_CORE=%{defined perl_bootstrap} %files -%doc Changelog CONTRIBUTING.md examples README %{perl_vendorlib}/* %{_mandir}/man3/* +%files doc +%doc Changelog CONTRIBUTING.md examples README + %changelog +* Tue Jul 19 2022 Liwei Ge - 0.30-1.0.1 +- Add doc sub package + * Mon Jul 09 2018 Petr Pisar - 0.30-1 - 0.30 bump -- Gitee