2013-03-06 07:42:36 +00:00
|
|
|
Name: perl-autodie
|
2015-01-05 09:18:06 +00:00
|
|
|
Version: 2.26
|
|
|
|
Release: 1%{?dist}
|
2013-03-06 07:42:36 +00:00
|
|
|
Summary: Replace functions with ones that succeed or die
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
Group: Development/Libraries
|
|
|
|
URL: http://search.cpan.org/dist/autodie/
|
2015-01-05 09:18:06 +00:00
|
|
|
Source0: http://www.cpan.org/authors/id/N/NT/NTHYKIER/autodie-%{version}.tar.gz
|
2013-03-06 07:42:36 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: perl
|
2015-01-05 09:18:06 +00:00
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
2013-03-06 07:42:36 +00:00
|
|
|
BuildRequires: perl(strict)
|
2013-07-01 07:58:42 +00:00
|
|
|
BuildRequires: perl(warnings)
|
2013-03-06 07:42:36 +00:00
|
|
|
# Run-time:
|
|
|
|
BuildRequires: perl(B)
|
|
|
|
BuildRequires: perl(Carp)
|
2013-07-01 07:58:42 +00:00
|
|
|
BuildRequires: perl(Config)
|
2013-03-06 07:42:36 +00:00
|
|
|
BuildRequires: perl(constant)
|
2015-01-05 09:18:06 +00:00
|
|
|
BuildRequires: perl(Exporter) >= 5.57
|
2013-03-06 07:42:36 +00:00
|
|
|
BuildRequires: perl(Fcntl)
|
2013-07-01 07:58:42 +00:00
|
|
|
%if !%{defined perl_bootstrap}
|
|
|
|
BuildRequires: perl(IPC::System::Simple) >= 0.12
|
|
|
|
%endif
|
2013-03-06 07:42:36 +00:00
|
|
|
BuildRequires: perl(overload)
|
2015-01-05 09:18:06 +00:00
|
|
|
BuildRequires: perl(parent)
|
2013-03-06 07:42:36 +00:00
|
|
|
BuildRequires: perl(POSIX)
|
2013-07-01 07:58:42 +00:00
|
|
|
BuildRequires: perl(Scalar::Util)
|
2013-03-06 07:42:36 +00:00
|
|
|
# Sub::Identify is optional
|
2013-09-12 11:58:14 +00:00
|
|
|
BuildRequires: perl(Tie::RefHash)
|
2013-03-06 07:42:36 +00:00
|
|
|
# Tests:
|
2015-01-05 09:18:06 +00:00
|
|
|
# English not used
|
2013-03-06 07:42:36 +00:00
|
|
|
BuildRequires: perl(File::Copy)
|
2013-03-06 07:54:48 +00:00
|
|
|
BuildRequires: perl(File::Spec)
|
2013-03-06 07:42:36 +00:00
|
|
|
BuildRequires: perl(File::Temp)
|
2014-01-30 10:19:45 +00:00
|
|
|
BuildRequires: perl(FindBin)
|
2015-01-05 09:18:06 +00:00
|
|
|
BuildRequires: perl(if)
|
2013-03-06 07:42:36 +00:00
|
|
|
BuildRequires: perl(IO::Handle)
|
2014-01-30 10:19:45 +00:00
|
|
|
BuildRequires: perl(lib)
|
2013-03-06 07:54:48 +00:00
|
|
|
BuildRequires: perl(open)
|
2015-01-05 09:18:06 +00:00
|
|
|
# Pod::Coverage::TrustPod not used
|
2013-03-06 07:42:36 +00:00
|
|
|
BuildRequires: perl(Socket)
|
2015-01-05 09:18:06 +00:00
|
|
|
# Test::Kwalitee not used
|
2013-03-06 07:42:36 +00:00
|
|
|
BuildRequires: perl(Test::More)
|
2015-01-05 09:18:06 +00:00
|
|
|
# Test::Perl::Critic not used
|
|
|
|
# Test::Pod 1.41 not used
|
|
|
|
# Test::Pod::Coverage 1.08 not used
|
2013-07-01 07:58:42 +00:00
|
|
|
# Optional tests:
|
|
|
|
%if !%{defined perl_bootstrap}
|
|
|
|
BuildRequires: perl(BSD::Resource)
|
2015-01-05 09:18:06 +00:00
|
|
|
BuildRequires: perl(Import::Into)
|
2013-07-01 07:58:42 +00:00
|
|
|
%endif
|
2013-03-06 07:42:36 +00:00
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
|
Requires: perl(B)
|
|
|
|
Requires: perl(Fcntl)
|
2013-07-01 07:58:42 +00:00
|
|
|
# Keep IPC::System::Simple 0.12 optional
|
2013-03-06 07:42:36 +00:00
|
|
|
Requires: perl(POSIX)
|
|
|
|
|
2013-07-01 07:58:42 +00:00
|
|
|
# Remove falsely detected perl(lib)
|
|
|
|
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(lib\\)$
|
|
|
|
|
2013-03-06 07:42:36 +00:00
|
|
|
%description
|
|
|
|
The "autodie" and "Fatal" pragma provides a convenient way to replace
|
|
|
|
functions that normally return false on failure with equivalents that throw an
|
|
|
|
exception on failure.
|
|
|
|
|
|
|
|
However "Fatal" has been obsoleted by the new autodie pragma. Please use
|
|
|
|
autodie in preference to "Fatal".
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n autodie-%{version}
|
|
|
|
find -type f -exec chmod -x {} +
|
|
|
|
|
|
|
|
%build
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
|
|
|
|
%{_fixperms} $RPM_BUILD_ROOT/*
|
|
|
|
|
|
|
|
%check
|
|
|
|
make test
|
|
|
|
|
|
|
|
%files
|
2014-03-31 08:34:12 +00:00
|
|
|
%doc AUTHORS Changes LICENSE README.md
|
2013-03-06 07:42:36 +00:00
|
|
|
%{perl_vendorlib}/*
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
|
|
|
%changelog
|
2015-01-05 09:18:06 +00:00
|
|
|
* Mon Jan 05 2015 Petr Pisar <ppisar@redhat.com> - 2.26-1
|
|
|
|
- 2.26 bump
|
|
|
|
|
2014-09-07 21:07:08 +00:00
|
|
|
* Sun Sep 07 2014 Jitka Plesnikova <jplesnik@redhat.com> - 2.25-4
|
|
|
|
- Perl 5.20 re-rebuild of bootstrapped packages
|
|
|
|
|
2014-08-26 12:06:58 +00:00
|
|
|
* Tue Aug 26 2014 Jitka Plesnikova <jplesnik@redhat.com> - 2.25-3
|
|
|
|
- Perl 5.20 rebuild
|
|
|
|
|
2014-06-07 12:47:02 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.25-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-04-04 12:43:26 +00:00
|
|
|
* Fri Apr 04 2014 Petr Pisar <ppisar@redhat.com> - 2.25-1
|
|
|
|
- 2.25 bump
|
|
|
|
|
2014-03-31 08:34:12 +00:00
|
|
|
* Mon Mar 31 2014 Petr Pisar <ppisar@redhat.com> - 2.24-1
|
|
|
|
- 2.24 bump
|
|
|
|
|
2014-01-30 10:19:45 +00:00
|
|
|
* Thu Jan 30 2014 Petr Pisar <ppisar@redhat.com> - 2.23-1
|
|
|
|
- 2.23 bump
|
|
|
|
|
2013-09-23 11:53:48 +00:00
|
|
|
* Mon Sep 23 2013 Petr Pisar <ppisar@redhat.com> - 2.22-1
|
|
|
|
- 2.22 bump
|
|
|
|
|
2013-09-12 11:58:14 +00:00
|
|
|
* Thu Sep 12 2013 Petr Pisar <ppisar@redhat.com> - 2.21-1
|
|
|
|
- 2.21 bump
|
|
|
|
|
2013-08-14 16:50:25 +00:00
|
|
|
* Wed Aug 14 2013 Jitka Plesnikova <jplesnik@redhat.com> - 2.20-4
|
|
|
|
- Perl 5.18 re-rebuild of bootstrapped packages
|
|
|
|
|
2013-08-04 02:11:33 +00:00
|
|
|
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.20-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-07-12 14:04:28 +00:00
|
|
|
* Fri Jul 12 2013 Petr Pisar <ppisar@redhat.com> - 2.20-2
|
|
|
|
- Perl 5.18 rebuild
|
|
|
|
|
2013-07-01 07:58:42 +00:00
|
|
|
* Mon Jul 01 2013 Petr Pisar <ppisar@redhat.com> - 2.20-1
|
|
|
|
- 2.20 bump
|
|
|
|
|
2013-03-06 07:54:48 +00:00
|
|
|
* Wed Mar 06 2013 Petr Pisar <ppisar@redhat.com> - 2.16-1
|
|
|
|
- 2.16 bump
|
|
|
|
|
2013-03-06 07:42:36 +00:00
|
|
|
* Thu Feb 14 2013 Petr Pisar <ppisar@redhat.com> 2.13-1
|
|
|
|
- Specfile autogenerated by cpanspec 1.78.
|