commit 322db8c033683e94ff542575412b147ea76dd485 Author: Marcela MaÅlÃÅovà <mmaslano@xxxxxxxxxx> Date: Wed May 11 11:05:30 2011 +0200 Initial push. .gitignore | 1 + perl-TryCatch.spec | 76 ++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 78 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..d864db8 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/TryCatch-1.003000.tar.gz diff --git a/perl-TryCatch.spec b/perl-TryCatch.spec new file mode 100644 index 0000000..04292bf --- /dev/null +++ b/perl-TryCatch.spec @@ -0,0 +1,76 @@ +Name: perl-TryCatch +Version: 1.003000 +Release: 1%{?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 +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(FindBin) +BuildRequires: perl(lib) +BuildRequires: perl(Moose) +BuildRequires: perl(MooseX::Types) +BuildRequires: perl(MooseX::Types::Structured) +BuildRequires: perl(Parse::Method::Signatures) >= 1.003012 +BuildRequires: perl(Scalar::Util) +BuildRequires: perl(Scope::Upper) >= 0.06 +BuildRequires: perl(strict) +BuildRequires: perl(Sub::Exporter) >= 0.979 +BuildRequires: perl(Test::Exception) +BuildRequires: perl(Test::More) >= 0.88 +BuildRequires: perl(Variable::Magic) >= 0.28 +BuildRequires: perl(warnings) +BuildRequires: perl(XSLoader) +Requires: perl(B::Hooks::OP::Check) >= 0.18 +Requires: perl(Moose) +Requires: perl(MooseX::Types) +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)) + +%{?perl_default_filter} + +%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 +make pure_install DESTDIR=$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/* +chmod +x $RPM_BUILD_ROOT/%{perl_vendorarch}/{bench.pl,bench_ok.pl} + +%check +make test + +%files +%doc Changes README +%{perl_vendorarch}/auto/* +%{perl_vendorarch}/TryCatch* +%{perl_vendorarch}/bench.pl +%{perl_vendorarch}/bench_ok.pl +%{_mandir}/man3/* + +%changelog +* Mon Mar 21 2011 Marcela MaÅlÃÅovà <mmaslano@xxxxxxxxxx> 1.003000-1 +- Specfile autogenerated by cpanspec 1.79. diff --git a/sources b/sources index e69de29..058c6b3 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +590620cf5815781cc0d344bf5483956a TryCatch-1.003000.tar.gz -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel