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