From 3d464d560f86f0da5f9bd7601ca18aca0451334c Mon Sep 17 00:00:00 2001 From: Liwei Ge Date: Tue, 19 Jul 2022 11:20:47 +0800 Subject: [PATCH] spec: add sub doc package --- perl-ExtUtils-Manifest.spec | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/perl-ExtUtils-Manifest.spec b/perl-ExtUtils-Manifest.spec index 90c3b4c..36628d7 100644 --- a/perl-ExtUtils-Manifest.spec +++ b/perl-ExtUtils-Manifest.spec @@ -1,6 +1,8 @@ +%define anolis_release .0.1 + Name: perl-ExtUtils-Manifest Version: 1.70 -Release: 395%{?dist} +Release: 395%{anolis_release}%{?dist} Summary: Utilities to write and check a MANIFEST file License: GPL+ or Artistic Group: Development/Libraries @@ -34,6 +36,14 @@ Requires: perl(File::Path) %description %{summary}. +%package doc +Summary: Documents for %{name} +Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} +BuildArch: noarch + +%description doc +Doc pages for %{name}. + %prep %setup -q -n ExtUtils-Manifest-%{version} @@ -50,11 +60,17 @@ find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; make test %files -%doc Changes LICENSE README +%license LICENSE %{perl_vendorlib}/* %{_mandir}/man3/* +%files doc +%doc Changes LICENSE README + %changelog +* Tue Jul 19 2022 Liwei Ge - 1.70-395.0.1 +- Add doc sub package + * Thu Feb 08 2018 Fedora Release Engineering - 1.70-395 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild -- Gitee