From c7028099d8f7daf97b37af1c05b58b28868843d6 Mon Sep 17 00:00:00 2001 From: mgb01105731 Date: Sun, 9 Oct 2022 17:25:38 +0800 Subject: [PATCH] add doc package --- perl-Getopt-Long.spec | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/perl-Getopt-Long.spec b/perl-Getopt-Long.spec index 094b52c..503e675 100644 --- a/perl-Getopt-Long.spec +++ b/perl-Getopt-Long.spec @@ -1,4 +1,4 @@ -%define anolis_release 1 +%define anolis_release 2 Name: perl-Getopt-Long Epoch: 1 @@ -42,6 +42,14 @@ a double dash "--". Support for bundling of command line options, as was the case with the more traditional single-letter approach, is provided but not enabled by default. +%package doc +Summary: Documentation files for %{name} +Requires: %{name} = %{epoch}:%{version}-%{release} +BuildArch: noarch + +%description doc +The %{name}-doc package contains documentation files for %{name}. + %prep %setup -q -n Getopt-Long-%{version} @@ -57,10 +65,15 @@ perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 make test %files -%doc CHANGES examples README %{perl_vendorlib}/* %{_mandir}/man3/* +%files doc +%doc CHANGES examples README + %changelog +* Sun Oct 09 2022 mgb01105731 - 2.52-2 +- add doc package + * Fri Mar 11 2022 Renbo - 2.52-1 - Init for Anolis OS 23 -- Gitee