4b26d7
Name:           perl-Carp
4b26d7
Version:        1.26
4b26d7
Release:        244%{?dist}
4b26d7
Summary:        Alternative warn and die for modules
4b26d7
License:        GPL+ or Artistic
4b26d7
Group:          Development/Libraries
4b26d7
URL:            http://search.cpan.org/dist/Carp/
4b26d7
Source0:        http://www.cpan.org/authors/id/Z/ZE/ZEFRAM/Carp-%{version}.tar.gz
4b26d7
BuildArch:      noarch
4b26d7
BuildRequires:  perl
4b26d7
BuildRequires:  perl(ExtUtils::MakeMaker)
4b26d7
BuildRequires:  perl(warnings)
4b26d7
BuildRequires:  perl(strict)
4b26d7
# Run-time:
4b26d7
BuildRequires:  perl(Exporter)
4b26d7
# Tests:
4b26d7
BuildRequires:  perl(Config)
4b26d7
BuildRequires:  perl(IPC::Open3)
4b26d7
BuildRequires:  perl(Test::More)
4b26d7
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
4b26d7
4b26d7
# Do not export private DB module stub
4b26d7
%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\(DB\\)
4b26d7
4b26d7
%description
4b26d7
The Carp routines are useful in your own modules because they act like
4b26d7
die() or warn(), but with a message which is more likely to be useful to a
4b26d7
user of your module. In the case of cluck, confess, and longmess that
4b26d7
context is a summary of every call in the call-stack. For a shorter message
4b26d7
you can use carp or croak which report the error as being from where your
4b26d7
module was called. There is no guarantee that that is where the error was,
4b26d7
but it is a good educated guess.
4b26d7
4b26d7
%prep
4b26d7
%setup -q -n Carp-%{version}
4b26d7
4b26d7
%build
4b26d7
perl Makefile.PL INSTALLDIRS=vendor
4b26d7
make %{?_smp_mflags}
4b26d7
4b26d7
%install
4b26d7
make pure_install DESTDIR=$RPM_BUILD_ROOT
4b26d7
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
4b26d7
%{_fixperms} $RPM_BUILD_ROOT/*
4b26d7
4b26d7
%check
4b26d7
make test
4b26d7
4b26d7
%files
4b26d7
%doc Changes README
4b26d7
%{perl_vendorlib}/*
4b26d7
%{_mandir}/man3/*
4b26d7
4b26d7
%changelog
4b26d7
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.26-244
4b26d7
- Mass rebuild 2013-12-27
4b26d7
4b26d7
* Tue Apr 30 2013 Petr Pisar <ppisar@redhat.com> - 1.26-243
4b26d7
- Increase release number to supersede perl sub-package (bug #957931)
4b26d7
4b26d7
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.26-241
4b26d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
4b26d7
4b26d7
* Mon Aug 13 2012 Marcela Mašláňová <mmaslano@redhat.com> - 1.26-240
4b26d7
- Bump release to override sub-package from perl.spec
4b26d7
4b26d7
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.26-3
4b26d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
4b26d7
4b26d7
* Thu Jun 28 2012 Petr Pisar <ppisar@redhat.com> - 1.26-2
4b26d7
- Perl 5.16 rebuild
4b26d7
4b26d7
* Tue Jun 19 2012 Petr Pisar <ppisar@redhat.com> - 1.26-1
4b26d7
- 1.26 bump
4b26d7
4b26d7
* Wed Jun 06 2012 Petr Pisar <ppisar@redhat.com> - 1.25-2
4b26d7
- Perl 5.16 rebuild
4b26d7
4b26d7
* Thu Mar 15 2012 Petr Pisar <ppisar@redhat.com> - 1.25-1
4b26d7
- 1.25 bump
4b26d7
4b26d7
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.22-2
4b26d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
4b26d7
4b26d7
* Wed Sep 07 2011 Petr Pisar <ppisar@redhat.com> 1.22-1
4b26d7
- Specfile autogenerated by cpanspec 1.78.
4b26d7
- Remove BuildRoot and defattr code from spec
4b26d7
- Do not export private module DB