From 3e80b330d1986aa0f24be34b1159ada0b01bf75b Mon Sep 17 00:00:00 2001 From: Liwei Ge Date: Tue, 19 Jul 2022 10:49:36 +0800 Subject: [PATCH] spec: add sub doc package --- perl-CPAN-Meta-YAML.spec | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/perl-CPAN-Meta-YAML.spec b/perl-CPAN-Meta-YAML.spec index b5fa8d1..c5afc9d 100644 --- a/perl-CPAN-Meta-YAML.spec +++ b/perl-CPAN-Meta-YAML.spec @@ -1,3 +1,5 @@ +%define anolis_release .0.1 + # Run extra test %if 0%{!?perl_bootstrap:1} %if ! (0%{?rhel}) @@ -14,7 +16,7 @@ Name: perl-CPAN-Meta-YAML Version: 0.018 -Release: 397%{?dist} +Release: 397%{anolis_release}%{?dist} Summary: Read and write a subset of YAML for CPAN Meta files License: GPL+ or Artistic URL: http://search.cpan.org/dist/CPAN-Meta-YAML/ @@ -69,6 +71,14 @@ This module implements a subset of the YAML specification for use in reading and writing CPAN metadata files like META.yml and MYMETA.yml. It should not be used for any other general YAML parsing or generation task. +%package doc +Summary: Documents for %{name} +Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} +BuildArch: noarch + +%description doc +Doc pages for %{name}. + %prep %setup -q -n CPAN-Meta-YAML-%{version} @@ -89,11 +99,16 @@ make test TEST_FILES="xt/*/*.t" %files %license LICENSE -%doc Changes README %{perl_vendorlib}/CPAN/ %{_mandir}/man3/CPAN::Meta::YAML.3* +%files doc +%doc Changes README + %changelog +* Tue Jul 19 2022 Liwei Ge - 0.018-397.0.1 +- Add doc sub package + * Thu Mar 15 2018 Paul Howarth - 0.018-397 - Simplify find command using -delete - Drop legacy Group: tag -- Gitee