|
|
abd296 |
# Run optional test
|
|
|
abd296 |
%bcond_without perl_autodie_enables_optional_test
|
|
|
abd296 |
|
|
|
abd296 |
Name: perl-autodie
|
|
|
abd296 |
Version: 2.29
|
|
|
abd296 |
Release: 396%{?dist}
|
|
|
abd296 |
Summary: Replace functions with ones that succeed or die
|
|
|
abd296 |
License: GPL+ or Artistic
|
|
|
abd296 |
Group: Development/Libraries
|
|
|
abd296 |
URL: http://search.cpan.org/dist/autodie/
|
|
|
abd296 |
Source0: http://www.cpan.org/authors/id/P/PJ/PJF/autodie-%{version}.tar.gz
|
|
|
abd296 |
BuildArch: noarch
|
|
|
abd296 |
BuildRequires: findutils
|
|
|
abd296 |
BuildRequires: make
|
|
|
abd296 |
BuildRequires: perl-interpreter
|
|
|
abd296 |
BuildRequires: perl-generators
|
|
|
abd296 |
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
abd296 |
BuildRequires: perl(strict)
|
|
|
abd296 |
BuildRequires: perl(warnings)
|
|
|
abd296 |
# Run-time:
|
|
|
abd296 |
BuildRequires: perl(B)
|
|
|
abd296 |
BuildRequires: perl(Carp)
|
|
|
abd296 |
BuildRequires: perl(Config)
|
|
|
abd296 |
BuildRequires: perl(constant)
|
|
|
abd296 |
BuildRequires: perl(Exporter) >= 5.57
|
|
|
abd296 |
BuildRequires: perl(Fcntl)
|
|
|
abd296 |
%if !%{defined perl_bootstrap}
|
|
|
abd296 |
BuildRequires: perl(IPC::System::Simple) >= 0.12
|
|
|
abd296 |
%endif
|
|
|
abd296 |
BuildRequires: perl(overload)
|
|
|
abd296 |
BuildRequires: perl(parent)
|
|
|
abd296 |
BuildRequires: perl(POSIX)
|
|
|
abd296 |
BuildRequires: perl(Scalar::Util)
|
|
|
abd296 |
# Sub::Identify is optional
|
|
|
abd296 |
BuildRequires: perl(Tie::RefHash)
|
|
|
abd296 |
# Tests:
|
|
|
abd296 |
# English not used
|
|
|
abd296 |
BuildRequires: perl(File::Copy)
|
|
|
abd296 |
BuildRequires: perl(File::Spec)
|
|
|
abd296 |
BuildRequires: perl(File::Temp)
|
|
|
abd296 |
BuildRequires: perl(FindBin)
|
|
|
abd296 |
BuildRequires: perl(if)
|
|
|
abd296 |
BuildRequires: perl(IO::Handle)
|
|
|
abd296 |
BuildRequires: perl(lib)
|
|
|
abd296 |
BuildRequires: perl(open)
|
|
|
abd296 |
# Pod::Coverage::TrustPod not used
|
|
|
abd296 |
BuildRequires: perl(Socket)
|
|
|
abd296 |
# Test::Kwalitee not used
|
|
|
abd296 |
BuildRequires: perl(Test::More)
|
|
|
abd296 |
# Test::Perl::Critic not used
|
|
|
abd296 |
# Test::Pod 1.41 not used
|
|
|
abd296 |
# Test::Pod::Coverage 1.08 not used
|
|
|
abd296 |
# Optional tests:
|
|
|
abd296 |
%if %{with perl_autodie_enables_optinonal_test} && !%{defined perl_bootstrap}
|
|
|
abd296 |
BuildRequires: perl(BSD::Resource)
|
|
|
abd296 |
BuildRequires: perl(Import::Into) >= 1.002004
|
|
|
abd296 |
%endif
|
|
|
abd296 |
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
abd296 |
Requires: perl(B)
|
|
|
abd296 |
Requires: perl(Fcntl)
|
|
|
abd296 |
Requires: perl(POSIX)
|
|
|
abd296 |
# Optional:
|
|
|
abd296 |
%if !%{defined perl_bootstrap}
|
|
|
abd296 |
# IPC::System::Simple dependency requested, bug #1183231
|
|
|
abd296 |
Requires: perl(IPC::System::Simple) >= 0.12
|
|
|
abd296 |
%endif
|
|
|
abd296 |
|
|
|
abd296 |
# Remove falsely detected perl(lib)
|
|
|
abd296 |
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(lib\\)$
|
|
|
abd296 |
|
|
|
abd296 |
%description
|
|
|
abd296 |
The "autodie" and "Fatal" pragma provides a convenient way to replace
|
|
|
abd296 |
functions that normally return false on failure with equivalents that throw an
|
|
|
abd296 |
exception on failure.
|
|
|
abd296 |
|
|
|
abd296 |
However "Fatal" has been obsoleted by the new autodie pragma. Please use
|
|
|
abd296 |
autodie in preference to "Fatal".
|
|
|
abd296 |
|
|
|
abd296 |
%prep
|
|
|
abd296 |
%setup -q -n autodie-%{version}
|
|
|
abd296 |
find -type f -exec chmod -x {} +
|
|
|
abd296 |
|
|
|
abd296 |
%build
|
|
|
abd296 |
perl Makefile.PL INSTALLDIRS=vendor
|
|
|
abd296 |
make %{?_smp_mflags}
|
|
|
abd296 |
|
|
|
abd296 |
%install
|
|
|
abd296 |
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
|
|
abd296 |
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
|
|
|
abd296 |
%{_fixperms} $RPM_BUILD_ROOT/*
|
|
|
abd296 |
|
|
|
abd296 |
%check
|
|
|
abd296 |
make test
|
|
|
abd296 |
|
|
|
abd296 |
%files
|
|
|
abd296 |
%license LICENSE
|
|
|
abd296 |
%doc AUTHORS Changes README.md
|
|
|
abd296 |
%{perl_vendorlib}/*
|
|
|
abd296 |
%{_mandir}/man3/*
|
|
|
abd296 |
|
|
|
abd296 |
%changelog
|
|
|
abd296 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.29-396
|
|
|
abd296 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
abd296 |
|
|
|
abd296 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.29-395
|
|
|
abd296 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
abd296 |
|
|
|
abd296 |
* Wed Jun 07 2017 Jitka Plesnikova <jplesnik@redhat.com> - 2.29-394
|
|
|
abd296 |
- Perl 5.26 re-rebuild of bootstrapped packages
|
|
|
abd296 |
|
|
|
abd296 |
* Sat Jun 03 2017 Jitka Plesnikova <jplesnik@redhat.com> - 2.29-393
|
|
|
abd296 |
- Perl 5.26 rebuild
|
|
|
abd296 |
|
|
|
abd296 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.29-367
|
|
|
abd296 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
abd296 |
|
|
|
abd296 |
* Wed May 18 2016 Jitka Plesnikova <jplesnik@redhat.com> - 2.29-366
|
|
|
abd296 |
- Perl 5.24 re-rebuild of bootstrapped packages
|
|
|
abd296 |
|
|
|
abd296 |
* Sat May 14 2016 Jitka Plesnikova <jplesnik@redhat.com> - 2.29-365
|
|
|
abd296 |
- Increase release to favour standalone package
|
|
|
abd296 |
|
|
|
abd296 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.29-2
|
|
|
abd296 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
abd296 |
|
|
|
abd296 |
* Thu Jul 09 2015 Petr Pisar <ppisar@redhat.com> - 2.29-1
|
|
|
abd296 |
- 2.29 bump
|
|
|
abd296 |
|
|
|
abd296 |
* Mon Jun 22 2015 Petr Pisar <ppisar@redhat.com> - 2.28-1
|
|
|
abd296 |
- 2.28 bump
|
|
|
abd296 |
|
|
|
abd296 |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.27-3
|
|
|
abd296 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
abd296 |
|
|
|
abd296 |
* Wed Jun 10 2015 Jitka Plesnikova <jplesnik@redhat.com> - 2.27-2
|
|
|
abd296 |
- Perl 5.22 re-rebuild of bootstrapped packages
|
|
|
abd296 |
|
|
|
abd296 |
* Wed Jun 10 2015 Petr Pisar <ppisar@redhat.com> - 2.27-1
|
|
|
abd296 |
- 2.27 bump
|
|
|
abd296 |
|
|
|
abd296 |
* Thu Jun 04 2015 Jitka Plesnikova <jplesnik@redhat.com> - 2.26-345
|
|
|
abd296 |
- Increase release to favour standalone package
|
|
|
abd296 |
|
|
|
abd296 |
* Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 2.26-3
|
|
|
abd296 |
- Perl 5.22 rebuild
|
|
|
abd296 |
|
|
|
abd296 |
* Mon Jan 19 2015 Petr Pisar <ppisar@redhat.com> - 2.26-2
|
|
|
abd296 |
- Run-require IPC::System::Simple for fatalizing system() (bug #1183231)
|
|
|
abd296 |
|
|
|
abd296 |
* Mon Jan 05 2015 Petr Pisar <ppisar@redhat.com> - 2.26-1
|
|
|
abd296 |
- 2.26 bump
|
|
|
abd296 |
|
|
|
abd296 |
* Sun Sep 07 2014 Jitka Plesnikova <jplesnik@redhat.com> - 2.25-4
|
|
|
abd296 |
- Perl 5.20 re-rebuild of bootstrapped packages
|
|
|
abd296 |
|
|
|
abd296 |
* Tue Aug 26 2014 Jitka Plesnikova <jplesnik@redhat.com> - 2.25-3
|
|
|
abd296 |
- Perl 5.20 rebuild
|
|
|
abd296 |
|
|
|
abd296 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.25-2
|
|
|
abd296 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
abd296 |
|
|
|
abd296 |
* Fri Apr 04 2014 Petr Pisar <ppisar@redhat.com> - 2.25-1
|
|
|
abd296 |
- 2.25 bump
|
|
|
abd296 |
|
|
|
abd296 |
* Mon Mar 31 2014 Petr Pisar <ppisar@redhat.com> - 2.24-1
|
|
|
abd296 |
- 2.24 bump
|
|
|
abd296 |
|
|
|
abd296 |
* Thu Jan 30 2014 Petr Pisar <ppisar@redhat.com> - 2.23-1
|
|
|
abd296 |
- 2.23 bump
|
|
|
abd296 |
|
|
|
abd296 |
* Mon Sep 23 2013 Petr Pisar <ppisar@redhat.com> - 2.22-1
|
|
|
abd296 |
- 2.22 bump
|
|
|
abd296 |
|
|
|
abd296 |
* Thu Sep 12 2013 Petr Pisar <ppisar@redhat.com> - 2.21-1
|
|
|
abd296 |
- 2.21 bump
|
|
|
abd296 |
|
|
|
abd296 |
* Wed Aug 14 2013 Jitka Plesnikova <jplesnik@redhat.com> - 2.20-4
|
|
|
abd296 |
- Perl 5.18 re-rebuild of bootstrapped packages
|
|
|
abd296 |
|
|
|
abd296 |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.20-3
|
|
|
abd296 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
abd296 |
|
|
|
abd296 |
* Fri Jul 12 2013 Petr Pisar <ppisar@redhat.com> - 2.20-2
|
|
|
abd296 |
- Perl 5.18 rebuild
|
|
|
abd296 |
|
|
|
abd296 |
* Mon Jul 01 2013 Petr Pisar <ppisar@redhat.com> - 2.20-1
|
|
|
abd296 |
- 2.20 bump
|
|
|
abd296 |
|
|
|
abd296 |
* Wed Mar 06 2013 Petr Pisar <ppisar@redhat.com> - 2.16-1
|
|
|
abd296 |
- 2.16 bump
|
|
|
abd296 |
|
|
|
abd296 |
* Thu Feb 14 2013 Petr Pisar <ppisar@redhat.com> 2.13-1
|
|
|
abd296 |
- Specfile autogenerated by cpanspec 1.78.
|