1ebf8f
Name:           perl-autodie
1ebf8f
Version:        2.16
1ebf8f
Release:        2%{?dist}
1ebf8f
Summary:        Replace functions with ones that succeed or die
1ebf8f
License:        GPL+ or Artistic
1ebf8f
Group:          Development/Libraries
1ebf8f
URL:            http://search.cpan.org/dist/autodie/
1ebf8f
Source0:        http://www.cpan.org/authors/id/P/PJ/PJF/autodie-%{version}.tar.gz
1ebf8f
BuildArch:      noarch
1ebf8f
BuildRequires:  perl
1ebf8f
# Stick on bundled inc::Module::Install to allow boot-straping this core package
1ebf8f
BuildRequires:  perl(Config)
1ebf8f
BuildRequires:  perl(Cwd)
1ebf8f
BuildRequires:  perl(ExtUtils::MakeMaker)
1ebf8f
BuildRequires:  perl(ExtUtils::MM_Unix)
1ebf8f
BuildRequires:  perl(FindBin)
1ebf8f
BuildRequires:  perl(File::Find)
1ebf8f
BuildRequires:  perl(File::Path)
1ebf8f
BuildRequires:  perl(strict)
1ebf8f
BuildRequires:  perl(vars)
1ebf8f
# Run-time:
1ebf8f
BuildRequires:  perl(B)
1ebf8f
BuildRequires:  perl(base)
1ebf8f
BuildRequires:  perl(Carp)
1ebf8f
BuildRequires:  perl(constant)
1ebf8f
BuildRequires:  perl(Exporter)
1ebf8f
BuildRequires:  perl(Fcntl)
1ebf8f
BuildRequires:  perl(if)
1ebf8f
# Keep IPC::System::Simple 0.12 optional
1ebf8f
BuildRequires:  perl(overload)
1ebf8f
BuildRequires:  perl(POSIX)
1ebf8f
BuildRequires:  perl(Tie::RefHash)
1ebf8f
# Sub::Identify is optional
1ebf8f
BuildRequires:  perl(warnings)
1ebf8f
# Tests:
1ebf8f
BuildRequires:  perl(lib)
1ebf8f
BuildRequires:  perl(File::Copy)
1ebf8f
BuildRequires:  perl(File::Spec)
1ebf8f
BuildRequires:  perl(File::Temp)
1ebf8f
BuildRequires:  perl(IO::Handle)
1ebf8f
BuildRequires:  perl(open)
1ebf8f
BuildRequires:  perl(Socket)
1ebf8f
BuildRequires:  perl(Test::More)
1ebf8f
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
1ebf8f
Requires:       perl(B)
1ebf8f
Requires:       perl(Fcntl)
1ebf8f
Requires:       perl(overload)
1ebf8f
Requires:       perl(POSIX)
1ebf8f
1ebf8f
%description
1ebf8f
The "autodie" and "Fatal" pragma provides a convenient way to replace
1ebf8f
functions that normally return false on failure with equivalents that throw an
1ebf8f
exception on failure.
1ebf8f
1ebf8f
However "Fatal" has been obsoleted by the new autodie pragma. Please use
1ebf8f
autodie in preference to "Fatal".
1ebf8f
1ebf8f
%prep
1ebf8f
%setup -q -n autodie-%{version}
1ebf8f
find -type f -exec chmod -x {} +
1ebf8f
1ebf8f
%build
1ebf8f
perl Makefile.PL INSTALLDIRS=vendor
1ebf8f
make %{?_smp_mflags}
1ebf8f
1ebf8f
%install
1ebf8f
make pure_install DESTDIR=$RPM_BUILD_ROOT
1ebf8f
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
1ebf8f
%{_fixperms} $RPM_BUILD_ROOT/*
1ebf8f
1ebf8f
%check
1ebf8f
make test
1ebf8f
1ebf8f
%files
1ebf8f
%doc AUTHORS Changes LICENSE README
1ebf8f
%{perl_vendorlib}/*
1ebf8f
%{_mandir}/man3/*
1ebf8f
1ebf8f
%changelog
1ebf8f
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 2.16-2
1ebf8f
- Mass rebuild 2013-12-27
1ebf8f
1ebf8f
* Wed Mar 06 2013 Petr Pisar <ppisar@redhat.com> - 2.16-1
1ebf8f
- 2.16 bump
1ebf8f
1ebf8f
* Thu Feb 14 2013 Petr Pisar <ppisar@redhat.com> 2.13-1
1ebf8f
- Specfile autogenerated by cpanspec 1.78.