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