Name: perl-TryCatch Version: 1.003000 Release: 2%{?dist} Summary: First class try catch semantics for Perl, without source filters License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/TryCatch/ Source0: http://www.cpan.org/authors/id/A/AS/ASH/TryCatch-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: perl >= 1:5.8.1 BuildRequires: perl(B::Hooks::EndOfScope) >= 0.08 BuildRequires: perl(B::Hooks::OP::Check) >= 0.18 BuildRequires: perl(B::Hooks::OP::PPAddr) >= 0.03 BuildRequires: perl(Devel::Declare) >= 0.005007 BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Moose) BuildRequires: perl(MooseX::Types) BuildRequires: perl(Parse::Method::Signatures) >= 1.003012 BuildRequires: perl(Scope::Upper) >= 0.06 BuildRequires: perl(Sub::Exporter) >= 0.979 BuildRequires: perl(Test::Exception) BuildRequires: perl(Test::More) >= 0.88 BuildRequires: perl(Variable::Magic) >= 0.28 Requires: perl(B::Hooks::EndOfScope) >= 0.08 Requires: perl(B::Hooks::OP::Check) >= 0.18 Requires: perl(B::Hooks::OP::PPAddr) >= 0.03 Requires: perl(Devel::Declare) >= 0.005007 Requires: perl(Moose) Requires: perl(MooseX::Types) Requires: perl(Parse::Method::Signatures) >= 1.003012 Requires: perl(Scope::Upper) >= 0.06 Requires: perl(Sub::Exporter) >= 0.979 Requires: perl(Test::Exception) Requires: perl(Test::More) >= 0.88 Requires: perl(Variable::Magic) >= 0.28 Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description This module aims to provide a nicer syntax and method to catch errors in Perl, similar to what is found in other languages (such as Java, Python or C++). The standard method of using eval {}; if ($@) {} is often prone to subtle bugs, primarily that its far too easy to stomp on the error in error handlers. And also eval/if isn't the nicest idiom. %prep %setup -q -n TryCatch-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \; find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; %{_fixperms} $RPM_BUILD_ROOT/* %check make test %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc Changes README %{perl_vendorarch}/auto/* %{perl_vendorarch}/TryCatch* %{_mandir}/man3/* %changelog * Fri Mar 16 2012 Dave Cross 1.003000-1 - Specfile autogenerated by cpanspec 1.78.