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