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