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