2010-11-01 23:55:45 +00:00
|
|
|
Name: perl-Try-Tiny
|
|
|
|
Summary: Minimal try/catch with proper localization of $@
|
2011-10-02 12:02:29 +00:00
|
|
|
Version: 0.11
|
|
|
|
Release: 1%{?dist}
|
2010-11-01 23:55:45 +00:00
|
|
|
License: MIT
|
2010-03-02 17:33:37 +00:00
|
|
|
Group: Development/Libraries
|
2011-03-18 10:30:24 +00:00
|
|
|
Source0: http://search.cpan.org/CPAN/authors/id/D/DO/DOY/Try-Tiny-%{version}.tar.gz
|
2010-03-02 17:33:37 +00:00
|
|
|
URL: http://search.cpan.org/dist/Try-Tiny
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
|
BuildRequires: perl(Test::More)
|
|
|
|
|
2009-09-18 00:34:44 +00:00
|
|
|
%{?perl_default_filter}
|
2010-03-02 17:33:37 +00:00
|
|
|
%{?perl_default_subpackage_tests}
|
2009-09-18 00:34:44 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
The main focus of this module is to provide simple and reliable error
|
|
|
|
handling for those having a hard time installing TryCatch, but who still
|
|
|
|
want to write correct 'eval' blocks without 5 lines of boilerplate each
|
|
|
|
time.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n Try-Tiny-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
2010-03-02 17:33:37 +00:00
|
|
|
make pure_install DESTDIR=%{buildroot}
|
2009-09-18 00:34:44 +00:00
|
|
|
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
|
|
|
|
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
|
|
|
|
|
|
|
|
%{_fixperms} %{buildroot}/*
|
|
|
|
|
|
|
|
%check
|
|
|
|
make test
|
|
|
|
|
|
|
|
%files
|
2010-11-01 23:55:45 +00:00
|
|
|
%doc Changes
|
|
|
|
%{perl_vendorlib}/Try/
|
|
|
|
%{_mandir}/man3/Try::Tiny.3pm*
|
2009-09-18 00:34:44 +00:00
|
|
|
|
|
|
|
%changelog
|
2011-10-02 12:02:29 +00:00
|
|
|
* Sun Oct 02 2011 Iain Arnell <iarnell@gmail.com> 0.11-1
|
|
|
|
- update to latest upstream version
|
|
|
|
|
2011-06-15 07:17:50 +00:00
|
|
|
* Wed Jun 15 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.09-2
|
|
|
|
- Perl mass rebuild
|
|
|
|
|
2011-03-18 10:30:24 +00:00
|
|
|
* Fri Mar 18 2011 Iain Arnell <iarnell@gmail.com> 0.09-1
|
|
|
|
- update to latest upstream version
|
|
|
|
- clean up spec for modern rpmbuild
|
|
|
|
|
2011-02-09 09:59:13 +00:00
|
|
|
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.07-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2010-11-01 23:55:45 +00:00
|
|
|
* Mon Nov 1 2010 Paul Howarth <paul@city-fan.org> 0.07-1
|
|
|
|
- update to 0.07:
|
|
|
|
- allow multiple finally blocks
|
|
|
|
- pass the error, if any, to finally blocks when called
|
|
|
|
- documentation fixes and clarifications
|
|
|
|
- this release by RJBS -> update source URL
|
|
|
|
|
2010-05-07 06:59:05 +00:00
|
|
|
* Fri May 07 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.04-2
|
|
|
|
- Mass rebuild with perl-5.12.0
|
|
|
|
|
2010-03-02 17:33:37 +00:00
|
|
|
* Tue Mar 02 2010 Chris Weyl <cweyl@alumni.drew.edu> 0.04-1
|
|
|
|
- update by Fedora::App::MaintainerTools 0.004
|
|
|
|
- PERL_INSTALL_ROOT => DESTDIR
|
|
|
|
- updating to latest GA CPAN version (0.04)
|
|
|
|
|
2009-12-04 02:37:08 +00:00
|
|
|
* Fri Dec 4 2009 Stepan Kasal <skasal@redhat.com> - 0.02-2
|
|
|
|
- rebuild against perl 5.10.1
|
|
|
|
|
2009-09-18 00:34:44 +00:00
|
|
|
* Tue Sep 15 2009 Chris Weyl <cweyl@alumni.drew.edu> 0.02-1
|
|
|
|
- submission
|
|
|
|
|
|
|
|
* Tue Sep 15 2009 Chris Weyl <cweyl@alumni.drew.edu> 0.02-0
|
|
|
|
- initial RPM packaging
|
|
|
|
- generated with cpan2dist (CPANPLUS::Dist::RPM version 0.0.8)
|