2012-03-26 18:19:01 +00:00
|
|
|
Name: perl-Try-Tiny
|
|
|
|
Summary: Minimal try/catch with proper localization of $@
|
2013-07-10 19:39:14 +00:00
|
|
|
Version: 0.16
|
2013-08-04 01:49:39 +00:00
|
|
|
Release: 3%{?dist}
|
2012-03-26 18:19:01 +00:00
|
|
|
License: MIT
|
|
|
|
Group: Development/Libraries
|
|
|
|
URL: http://search.cpan.org/dist/Try-Tiny
|
|
|
|
Source0: http://search.cpan.org/CPAN/authors/id/D/DO/DOY/Try-Tiny-%{version}.tar.gz
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
|
|
|
|
BuildArch: noarch
|
2013-07-05 09:29:24 +00:00
|
|
|
# Module Build
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.17
|
|
|
|
# Module
|
|
|
|
BuildRequires: perl(base)
|
2012-03-26 18:19:01 +00:00
|
|
|
BuildRequires: perl(Carp)
|
2013-07-05 09:29:24 +00:00
|
|
|
BuildRequires: perl(constant)
|
2012-08-28 10:03:38 +00:00
|
|
|
BuildRequires: perl(Exporter)
|
2013-07-09 11:07:54 +00:00
|
|
|
BuildRequires: perl(Sub::Name)
|
2013-07-05 09:29:24 +00:00
|
|
|
# Test Suite
|
|
|
|
BuildRequires: perl(File::Find)
|
|
|
|
BuildRequires: perl(File::Temp)
|
2012-03-26 18:19:01 +00:00
|
|
|
BuildRequires: perl(Test::More)
|
2013-07-05 09:29:24 +00:00
|
|
|
# Extra Tests
|
|
|
|
BuildRequires: perl(Pod::Coverage::TrustPod)
|
|
|
|
BuildRequires: perl(Test::EOL)
|
|
|
|
BuildRequires: perl(Test::NoTabs)
|
|
|
|
BuildRequires: perl(Test::Pod) >= 1.41
|
|
|
|
BuildRequires: perl(Test::Pod::Coverage) >= 1.08
|
|
|
|
# Runtime
|
2012-03-26 18:19:01 +00:00
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
2013-07-09 11:07:54 +00:00
|
|
|
Requires: perl(Sub::Name)
|
2009-09-18 00:34:44 +00:00
|
|
|
|
|
|
|
%description
|
2012-03-26 18:19:01 +00:00
|
|
|
This module provides bare bones try/catch statements that are designed to
|
|
|
|
minimize common mistakes with eval blocks, and NOTHING else.
|
|
|
|
|
|
|
|
This is unlike TryCatch, which provides a nice syntax and avoids adding
|
|
|
|
another call stack layer, and supports calling return from the try block to
|
|
|
|
return from the parent subroutine. These extra features come at a cost of a
|
|
|
|
few dependencies, namely Devel::Declare and Scope::Upper that are occasionally
|
|
|
|
problematic, and the additional catch filtering uses Moose type constraints,
|
|
|
|
which may not be desirable either.
|
2009-09-18 00:34:44 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n Try-Tiny-%{version}
|
|
|
|
|
|
|
|
%build
|
2012-03-26 18:19:01 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
2009-09-18 00:34:44 +00:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
2012-03-26 18:19:01 +00:00
|
|
|
rm -rf %{buildroot}
|
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 {} ';'
|
2012-03-26 18:19:01 +00:00
|
|
|
%{_fixperms} %{buildroot}
|
2009-09-18 00:34:44 +00:00
|
|
|
|
|
|
|
%check
|
|
|
|
make test
|
2013-07-05 09:29:24 +00:00
|
|
|
make test TEST_FILES="$(echo $(find xt/ -name '*.t'))"
|
2009-09-18 00:34:44 +00:00
|
|
|
|
2012-03-26 18:19:01 +00:00
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
2009-09-18 00:34:44 +00:00
|
|
|
%files
|
2013-07-05 09:29:24 +00:00
|
|
|
%doc Changes LICENSE README t/
|
2010-11-01 23:55:45 +00:00
|
|
|
%{perl_vendorlib}/Try/
|
|
|
|
%{_mandir}/man3/Try::Tiny.3pm*
|
2009-09-18 00:34:44 +00:00
|
|
|
|
|
|
|
%changelog
|
2013-08-04 01:49:39 +00:00
|
|
|
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-07-23 15:18:35 +00:00
|
|
|
* Tue Jul 23 2013 Petr Pisar <ppisar@redhat.com> - 0.16-2
|
|
|
|
- Perl 5.18 rebuild
|
|
|
|
|
2013-07-10 19:39:14 +00:00
|
|
|
* Wed Jul 10 2013 Paul Howarth <paul@city-fan.org> - 0.16-1
|
|
|
|
- Update to 0.16
|
|
|
|
- Remove accidental Sub::Name test dependency
|
|
|
|
|
2013-07-09 11:07:54 +00:00
|
|
|
* Tue Jul 9 2013 Paul Howarth <paul@city-fan.org> - 0.15-1
|
|
|
|
- Update to 0.15
|
|
|
|
- Optionally use Sub::Name to name the try/catch/finally blocks, if available
|
|
|
|
- BR:/R: perl(Sub::Name)
|
|
|
|
- Drop obsoletes/provides for old -tests subpackage
|
|
|
|
|
2013-07-06 15:31:35 +00:00
|
|
|
* Sat Jul 6 2013 Paul Howarth <paul@city-fan.org> - 0.14-1
|
|
|
|
- Update to 0.14
|
|
|
|
- Also throw an exception for catch/finally in scalar context (CPAN RT#81070)
|
|
|
|
|
2013-07-05 09:29:24 +00:00
|
|
|
* Fri Jul 5 2013 Paul Howarth <paul@city-fan.org> - 0.13-1
|
|
|
|
- Update to 0.13
|
|
|
|
- Fix tests failing on 5.6.x due to differing DESTROY semantics
|
|
|
|
- Excise superfluous local($@) call - 7%% speedup
|
|
|
|
- Fix broken URLs (CPAN RT#55659)
|
|
|
|
- Proper exception on erroneous usage of bare catch/finally (CPAN RT#81070)
|
|
|
|
- Proper exception on erroneous use of multiple catch{} blocks
|
|
|
|
- Clarify exception occuring on unterminated try block (CPAN RT#75712)
|
|
|
|
- Fix the prototypes shown in docs to match code (CPAN RT#79590)
|
|
|
|
- Warn loudly on exceptions in finally() blocks
|
|
|
|
- dzilify
|
|
|
|
- Ship upstream LICENSE and README files
|
|
|
|
- Classify buildreqs by usage
|
|
|
|
- Add buildreqs for extra tests and explicitly run them
|
|
|
|
|
2013-02-14 16:05:49 +00:00
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2013-01-02 21:15:22 +00:00
|
|
|
* Wed Jan 2 2013 Paul Howarth <paul@city-fan.org> - 0.12-1
|
|
|
|
- Update to 0.12
|
|
|
|
- Documentation fixes
|
|
|
|
|
2012-08-28 10:03:38 +00:00
|
|
|
* Tue Aug 28 2012 Jitka Plesnikova <jplesnik@redhat.com> - 0.11-7
|
2013-01-02 21:15:22 +00:00
|
|
|
- Add BR/R perl(Exporter)
|
2012-08-28 10:03:38 +00:00
|
|
|
|
2012-07-20 22:12:27 +00:00
|
|
|
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-06-08 13:51:31 +00:00
|
|
|
* Fri Jun 08 2012 Petr Pisar <ppisar@redhat.com> - 0.11-5
|
|
|
|
- Perl 5.16 rebuild
|
|
|
|
|
2012-03-26 18:19:01 +00:00
|
|
|
* Mon Mar 26 2012 Paul Howarth <paul@city-fan.org> - 0.11-4
|
|
|
|
- BR: perl(Carp)
|
|
|
|
- Don't need to remove empty directories from buildroot
|
|
|
|
- Don't use macros for commands
|
|
|
|
- Drop redundant %%{?perl_default_filter}
|
|
|
|
- Enhance %%description
|
|
|
|
- Reinstate EPEL-5 compatibility:
|
|
|
|
- Define buildroot
|
|
|
|
- Clean buildroot in %%install and %%clean
|
|
|
|
- Use tabs
|
|
|
|
|
|
|
|
* Sun Jan 22 2012 Iain Arnell <iarnell@gmail.com> - 0.11-3
|
|
|
|
- Drop tests subpackage; move tests to main package documentation
|
2012-01-22 10:26:55 +00:00
|
|
|
|
2012-01-13 20:20:08 +00:00
|
|
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2012-03-26 18:19:01 +00:00
|
|
|
* Sun Oct 02 2011 Iain Arnell <iarnell@gmail.com> - 0.11-1
|
|
|
|
- Update to latest upstream version
|
2011-10-02 12:02:29 +00:00
|
|
|
|
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
|
|
|
|
|
2012-03-26 18:19:01 +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-03-18 10:30:24 +00:00
|
|
|
|
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
|
|
|
|
|
2012-03-26 18:19:01 +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-11-01 23:55:45 +00:00
|
|
|
|
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
|
|
|
|
|
2012-03-26 18:19:01 +00:00
|
|
|
* Tue Mar 02 2010 Chris Weyl <cweyl@alumni.drew.edu> - 0.04-1
|
|
|
|
- Update by Fedora::App::MaintainerTools 0.004
|
2010-03-02 17:33:37 +00:00
|
|
|
- PERL_INSTALL_ROOT => DESTDIR
|
2012-03-26 18:19:01 +00:00
|
|
|
- Updating to latest GA CPAN version (0.04)
|
2010-03-02 17:33:37 +00:00
|
|
|
|
2009-12-04 02:37:08 +00:00
|
|
|
* Fri Dec 4 2009 Stepan Kasal <skasal@redhat.com> - 0.02-2
|
2012-03-26 18:19:01 +00:00
|
|
|
- Rebuild against perl 5.10.1
|
2009-12-04 02:37:08 +00:00
|
|
|
|
2012-03-26 18:19:01 +00:00
|
|
|
* Tue Sep 15 2009 Chris Weyl <cweyl@alumni.drew.edu> - 0.02-1
|
|
|
|
- Submission
|
2009-09-18 00:34:44 +00:00
|
|
|
|
2012-03-26 18:19:01 +00:00
|
|
|
* 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)
|