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