From a01e82b940f3bd90580ece9aacb1e5fdc89c284a Mon Sep 17 00:00:00 2001 From: mgb01105731 Date: Fri, 14 Oct 2022 15:41:10 +0800 Subject: [PATCH] add doc package --- perl-Carp.spec | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/perl-Carp.spec b/perl-Carp.spec index 4380760..c518318 100644 --- a/perl-Carp.spec +++ b/perl-Carp.spec @@ -1,4 +1,4 @@ -%define anolis_release 1 +%define anolis_release 2 Name: perl-Carp Version: 1.50 @@ -38,6 +38,14 @@ you can use carp or croak which report the error as being from where your module was called. There is no guarantee that that is where the error was, but it is a good educated guess. +%package doc +Summary: Documentation files for %{name} +Requires: %{name} = %{version}-%{release} +BuildArch: noarch + +%description doc +The %{name}-doc package contains documentation files for %{name}. + %prep %autosetup -n Carp-%{version} -p1 @@ -53,10 +61,15 @@ make pure_install DESTDIR=$RPM_BUILD_ROOT make test %files -%doc Changes README %{perl_vendorlib}/* %{_mandir}/man3/* +%files doc +%doc Changes README + %changelog -* Tue Mar 08 2022 Jacob Wang 1.50-1 +* Fri Oct 14 2022 mgb01105731 - 1.50-2 +- add doc package + +* Tue Mar 08 2022 Jacob Wang - 1.50-1 - Initial version from upstream 1.50 -- Gitee