diff --git a/perl-Carp.spec b/perl-Carp.spec index bfabb8f2da87939e1869f1ebebebefcacb99c612..b5bf98b390b0c56c7d56c5cb06e5169652d2d98a 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)