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