From b81e9d02aa9c4baf51c652289e3ebab5cdd54d75 Mon Sep 17 00:00:00 2001 From: Liwei Ge Date: Tue, 19 Jul 2022 10:36:49 +0800 Subject: [PATCH] spec: add sub doc package --- perl-Carp.spec | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/perl-Carp.spec b/perl-Carp.spec index bfabb8f..b5bf98b 100644 --- a/perl-Carp.spec +++ b/perl-Carp.spec @@ -1,8 +1,10 @@ +%define anolis_release .0.1 + %global cpan_version 1.38 Name: perl-Carp Version: 1.42 -Release: 396%{?dist} +Release: 396%{anolis_release}%{?dist} Summary: Alternative warn and die for modules License: GPL+ or Artistic URL: http://search.cpan.org/dist/Carp/ @@ -45,6 +47,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: Documents for %{name} +Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} +BuildArch: noarch + +%description doc +Doc pages for %{name}. + %prep %setup -q -n Carp-%{cpan_version} %patch0 -p1 @@ -63,11 +73,16 @@ make pure_install DESTDIR=$RPM_BUILD_ROOT make test %files -%doc Changes README %{perl_vendorlib}/* %{_mandir}/man3/* +%files doc +%doc Changes README + %changelog +* Tue Jul 19 2022 Liwei Ge - 1.42-396.0.1 +- Add doc sub package + * Fri Apr 20 2018 Petr Pisar - 1.42-396 - Prevent from some stack-not-ref-counted crashes in Carp (RT#52610) -- Gitee