e8c490
%global cpan_version 1.38
e8c490
e8c490
Name:           perl-Carp
e8c490
Version:        1.42
e8c490
Release:        396%{?dist}
e8c490
Summary:        Alternative warn and die for modules
e8c490
License:        GPL+ or Artistic
e8c490
URL:            http://search.cpan.org/dist/Carp/
e8c490
Source0:        http://www.cpan.org/authors/id/R/RJ/RJBS/Carp-%{cpan_version}.tar.gz
e8c490
# Unbundled from perl 5.24.0
e8c490
Patch0:         Carp-1.38-Upgrade-to-1.40.patch
e8c490
# Unbundled from perl 5.25.12
e8c490
Patch1:         Carp-1.40-Upgrade-to-1.42.patch
e8c490
# Prevent from some stack-not-ref-counted crashes in Carp, RT#52610,
e8c490
# in perl upstream after 5.27.8
e8c490
Patch2:         Carp-1.42-Fix-RT-52610-Carp-Do-not-crash-when-reading-DB-args.patch
e8c490
BuildArch:      noarch
e8c490
BuildRequires:  make
e8c490
BuildRequires:  perl-generators
e8c490
BuildRequires:  perl-interpreter
e8c490
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
e8c490
BuildRequires:  perl(warnings)
e8c490
BuildRequires:  perl(strict)
e8c490
# Run-time:
e8c490
BuildRequires:  perl(Exporter)
e8c490
# Tests:
e8c490
BuildRequires:  perl(B)
e8c490
BuildRequires:  perl(Config)
e8c490
BuildRequires:  perl(Data::Dumper)
e8c490
# IPC::Open3  >= 1.0103 in reality, but the provides is 2-digit number only
e8c490
BuildRequires:  perl(IPC::Open3)
e8c490
BuildRequires:  perl(overload)
e8c490
BuildRequires:  perl(Test::More) >= 0.47
e8c490
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
e8c490
e8c490
# Do not export private DB module stub
e8c490
%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\(DB\\)
e8c490
e8c490
%description
e8c490
The Carp routines are useful in your own modules because they act like
e8c490
die() or warn(), but with a message which is more likely to be useful to a
e8c490
user of your module. In the case of cluck, confess, and longmess that
e8c490
context is a summary of every call in the call-stack. For a shorter message
e8c490
you can use carp or croak which report the error as being from where your
e8c490
module was called. There is no guarantee that that is where the error was,
e8c490
but it is a good educated guess.
e8c490
e8c490
%prep
e8c490
%setup -q -n Carp-%{cpan_version}
e8c490
%patch0 -p1
e8c490
%patch1 -p1
e8c490
%patch2 -p1
e8c490
e8c490
%build
e8c490
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
e8c490
make %{?_smp_mflags}
e8c490
e8c490
%install
e8c490
make pure_install DESTDIR=$RPM_BUILD_ROOT
e8c490
%{_fixperms} $RPM_BUILD_ROOT/*
e8c490
e8c490
%check
e8c490
make test
e8c490
e8c490
%files
e8c490
%doc Changes README
e8c490
%{perl_vendorlib}/*
e8c490
%{_mandir}/man3/*
e8c490
e8c490
%changelog
e8c490
* Fri Apr 20 2018 Petr Pisar <ppisar@redhat.com> - 1.42-396
e8c490
- Prevent from some stack-not-ref-counted crashes in Carp (RT#52610)
e8c490
e8c490
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.42-395
e8c490
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
e8c490
e8c490
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.42-394
e8c490
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
e8c490
e8c490
* Sat Jun 03 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1.42-393
e8c490
- Perl 5.26 rebuild
e8c490
e8c490
* Thu May 11 2017 Petr Pisar <ppisar@redhat.com> - 1.42-1
e8c490
- Upgrade to 1.42 as provided in perl-5.25.12
e8c490
e8c490
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.40-366
e8c490
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
e8c490
e8c490
* Sat May 14 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.40-365
e8c490
- Increase release to favour standalone package
e8c490
e8c490
* Wed May 11 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.40-1
e8c490
- 1.40 bump in order to dual-live with perl 5.24
e8c490
e8c490
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.38-2
e8c490
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
e8c490
e8c490
* Tue Nov 10 2015 Petr Pisar <ppisar@redhat.com> - 1.38-1
e8c490
- 1.38 bump
e8c490
e8c490
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.36-346
e8c490
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
e8c490
e8c490
* Thu Jun 04 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.36-345
e8c490
- Increase release to favour standalone package
e8c490
e8c490
* Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.36-2
e8c490
- Perl 5.22 rebuild
e8c490
e8c490
* Fri Mar 20 2015 Petr Pisar <ppisar@redhat.com> - 1.36-1
e8c490
- 1.36 bump
e8c490
e8c490
* Mon Mar 16 2015 Petr Pisar <ppisar@redhat.com> - 1.35-1
e8c490
- 1.35 bump
e8c490
e8c490
* Wed Sep 03 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.33.01-310
e8c490
- Increase release to favour standalone package
e8c490
e8c490
* Tue Aug 26 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.33.01-3
e8c490
- Perl 5.20 rebuild
e8c490
e8c490
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.33.01-2
e8c490
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
e8c490
e8c490
* Fri Apr 04 2014 Petr Pisar <ppisar@redhat.com> - 1.33.01-1
e8c490
- 1.3301 bump
e8c490
e8c490
* Wed Mar 26 2014 Petr Pisar <ppisar@redhat.com> - 1.33-1
e8c490
- 1.33 bump
e8c490
e8c490
* Tue Sep 10 2013 Petr Pisar <ppisar@redhat.com> - 1.32-1
e8c490
- 1.32 bump
e8c490
e8c490
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.26-245
e8c490
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
e8c490
e8c490
* Fri Jul 12 2013 Petr Pisar <ppisar@redhat.com> - 1.26-244
e8c490
- Link minimal build-root packages against libperl.so explicitly
e8c490
e8c490
* Tue Apr 30 2013 Petr Pisar <ppisar@redhat.com> - 1.26-243
e8c490
- Increase release number to supersede perl sub-package (bug #957931)
e8c490
e8c490
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.26-241
e8c490
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
e8c490
e8c490
* Mon Aug 13 2012 Marcela Mašláňová <mmaslano@redhat.com> - 1.26-240
e8c490
- Bump release to override sub-package from perl.spec
e8c490
e8c490
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.26-3
e8c490
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
e8c490
e8c490
* Thu Jun 28 2012 Petr Pisar <ppisar@redhat.com> - 1.26-2
e8c490
- Perl 5.16 rebuild
e8c490
e8c490
* Tue Jun 19 2012 Petr Pisar <ppisar@redhat.com> - 1.26-1
e8c490
- 1.26 bump
e8c490
e8c490
* Wed Jun 06 2012 Petr Pisar <ppisar@redhat.com> - 1.25-2
e8c490
- Perl 5.16 rebuild
e8c490
e8c490
* Thu Mar 15 2012 Petr Pisar <ppisar@redhat.com> - 1.25-1
e8c490
- 1.25 bump
e8c490
e8c490
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.22-2
e8c490
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
e8c490
e8c490
* Wed Sep 07 2011 Petr Pisar <ppisar@redhat.com> 1.22-1
e8c490
- Specfile autogenerated by cpanspec 1.78.
e8c490
- Remove BuildRoot and defattr code from spec
e8c490
- Do not export private module DB