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