|
|
67f73ae |
# We need to patch the test suite if we have Test::More < 0.88
|
|
|
67f73ae |
%global old_test_more %(perl -MTest::More -e 'print (($Test::More::VERSION < 0.88) ? 1 : 0);' 2>/dev/null || echo 0)
|
|
|
67f73ae |
|
|
|
ae7dbd2 |
Name: perl-Try-Tiny
|
|
|
ae7dbd2 |
Summary: Minimal try/catch with proper localization of $@
|
|
|
aacd888 |
Version: 0.22
|
|
|
e3535cf |
Release: 2%{?dist}
|
|
|
ae7dbd2 |
License: MIT
|
|
|
ae7dbd2 |
Group: Development/Libraries
|
|
|
ae7dbd2 |
URL: http://search.cpan.org/dist/Try-Tiny
|
|
|
ae7dbd2 |
Source0: http://search.cpan.org/CPAN/authors/id/D/DO/DOY/Try-Tiny-%{version}.tar.gz
|
|
|
aacd888 |
Patch1: Try-Tiny-0.22-old-Test::More.patch
|
|
|
ae7dbd2 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
|
|
|
ae7dbd2 |
BuildArch: noarch
|
|
|
70c0e17 |
# Module Build
|
|
|
306ac7a |
BuildRequires: perl
|
|
|
d334f6e |
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30
|
|
|
70c0e17 |
# Module
|
|
|
ae7dbd2 |
BuildRequires: perl(Carp)
|
|
|
70c0e17 |
BuildRequires: perl(constant)
|
|
|
67f73ae |
BuildRequires: perl(Exporter) >= 5.57
|
|
|
1236c26 |
BuildRequires: perl(Sub::Name)
|
|
|
70c0e17 |
# Test Suite
|
|
|
67f73ae |
BuildRequires: perl(File::Spec)
|
|
|
67f73ae |
BuildRequires: perl(IO::Handle)
|
|
|
67f73ae |
BuildRequires: perl(IPC::Open3)
|
|
|
ae7dbd2 |
BuildRequires: perl(Test::More)
|
|
|
67f73ae |
# Optional Tests
|
|
|
67f73ae |
BuildRequires: perl(Capture::Tiny) >= 0.12
|
|
|
70c0e17 |
# Extra Tests
|
|
|
70c0e17 |
BuildRequires: perl(Pod::Coverage::TrustPod)
|
|
|
70c0e17 |
BuildRequires: perl(Test::EOL)
|
|
|
70c0e17 |
BuildRequires: perl(Test::NoTabs)
|
|
|
70c0e17 |
BuildRequires: perl(Test::Pod) >= 1.41
|
|
|
70c0e17 |
BuildRequires: perl(Test::Pod::Coverage) >= 1.08
|
|
|
70c0e17 |
# Runtime
|
|
|
ae7dbd2 |
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
1236c26 |
Requires: perl(Sub::Name)
|
|
Chris Weyl |
413b007 |
|
|
Chris Weyl |
413b007 |
%description
|
|
|
ae7dbd2 |
This module provides bare bones try/catch statements that are designed to
|
|
|
ae7dbd2 |
minimize common mistakes with eval blocks, and NOTHING else.
|
|
|
ae7dbd2 |
|
|
|
ae7dbd2 |
This is unlike TryCatch, which provides a nice syntax and avoids adding
|
|
|
ae7dbd2 |
another call stack layer, and supports calling return from the try block to
|
|
|
ae7dbd2 |
return from the parent subroutine. These extra features come at a cost of a
|
|
|
ae7dbd2 |
few dependencies, namely Devel::Declare and Scope::Upper that are occasionally
|
|
|
ae7dbd2 |
problematic, and the additional catch filtering uses Moose type constraints,
|
|
|
ae7dbd2 |
which may not be desirable either.
|
|
Chris Weyl |
413b007 |
|
|
Chris Weyl |
413b007 |
%prep
|
|
Chris Weyl |
413b007 |
%setup -q -n Try-Tiny-%{version}
|
|
Chris Weyl |
413b007 |
|
|
|
67f73ae |
# We need to patch the test suite if we have Test::More < 0.88
|
|
|
67f73ae |
%if %{old_test_more}
|
|
|
67f73ae |
%patch1
|
|
|
67f73ae |
%endif
|
|
|
67f73ae |
|
|
Chris Weyl |
413b007 |
%build
|
|
|
ae7dbd2 |
perl Makefile.PL INSTALLDIRS=vendor
|
|
Chris Weyl |
413b007 |
make %{?_smp_mflags}
|
|
Chris Weyl |
413b007 |
|
|
Chris Weyl |
413b007 |
%install
|
|
|
ae7dbd2 |
rm -rf %{buildroot}
|
|
Chris Weyl |
c1bbc6c |
make pure_install DESTDIR=%{buildroot}
|
|
Chris Weyl |
413b007 |
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
|
|
|
ae7dbd2 |
%{_fixperms} %{buildroot}
|
|
Chris Weyl |
413b007 |
|
|
Chris Weyl |
413b007 |
%check
|
|
Chris Weyl |
413b007 |
make test
|
|
|
70c0e17 |
make test TEST_FILES="$(echo $(find xt/ -name '*.t'))"
|
|
Chris Weyl |
413b007 |
|
|
|
ae7dbd2 |
%clean
|
|
|
ae7dbd2 |
rm -rf %{buildroot}
|
|
|
ae7dbd2 |
|
|
Chris Weyl |
413b007 |
%files
|
|
|
70c0e17 |
%doc Changes LICENSE README t/
|
|
|
505f548 |
%{perl_vendorlib}/Try/
|
|
|
505f548 |
%{_mandir}/man3/Try::Tiny.3pm*
|
|
Chris Weyl |
413b007 |
|
|
Chris Weyl |
413b007 |
%changelog
|
|
|
e3535cf |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.22-2
|
|
|
e3535cf |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
e3535cf |
|
|
|
aacd888 |
* Tue Apr 29 2014 Paul Howarth <paul@city-fan.org> - 0.22-1
|
|
|
aacd888 |
- Update to 0.22
|
|
|
aacd888 |
- Add optional test deps as recommended prereqs
|
|
|
aacd888 |
(https://github.com/doy/try-tiny/pull/18)
|
|
|
aacd888 |
- Update patch for building with Test::More < 0.88
|
|
|
aacd888 |
|
|
|
306ac7a |
* Tue Apr 15 2014 Paul Howarth <paul@city-fan.org> - 0.21-1
|
|
|
306ac7a |
- Update to 0.21
|
|
|
306ac7a |
- Also skip the test if Capture::Tiny is too old
|
|
|
306ac7a |
(https://github.com/doy/try-tiny/issues/17)
|
|
|
306ac7a |
|
|
|
d334f6e |
* Sat Mar 22 2014 Paul Howarth <paul@city-fan.org> - 0.20-1
|
|
|
d334f6e |
- Update to 0.20
|
|
|
d334f6e |
- Documentation updates
|
|
|
d334f6e |
- Update patch for building with Test::More < 0.88
|
|
|
d334f6e |
|
|
|
67f73ae |
* Thu Jan 23 2014 Paul Howarth <paul@city-fan.org> - 0.19-1
|
|
|
67f73ae |
- Update to 0.19
|
|
|
67f73ae |
- Fix an obscure issue with loading modules during global destruction
|
|
|
67f73ae |
(https://github.com/doy/try-tiny/pull/11)
|
|
|
a401fd2 |
- Documentation updates (https://github.com/doy/try-tiny/pull/12)
|
|
|
67f73ae |
- Add patch to support building with Test::More < 0.88 again
|
|
|
67f73ae |
|
|
|
c2bcd7d |
* Sat Aug 17 2013 Paul Howarth <paul@city-fan.org> - 0.18-1
|
|
|
c2bcd7d |
- Update to 0.18
|
|
|
c2bcd7d |
- Fix tests for pre-Test-More-0.88 (https://github.com/doy/try-tiny/pull/10)
|
|
|
c2bcd7d |
- Drop upstreamed patch for building with Test::More < 0.88
|
|
|
c2bcd7d |
|
|
|
2f0c3b1 |
* Sat Aug 17 2013 Paul Howarth <paul@city-fan.org> - 0.17-1
|
|
|
2f0c3b1 |
- Update to 0.17
|
|
|
2f0c3b1 |
- Work around Perl RT#119311, which was causing incorrect error messages in
|
|
|
2f0c3b1 |
some cases during global destruction
|
|
|
2f0c3b1 |
(https://github.com/doy/try-tiny/pull/9)
|
|
|
c2bcd7d |
- Add patch to support building with Test::More < 0.88
|
|
|
2f0c3b1 |
|
|
|
482e7b6 |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16-3
|
|
|
482e7b6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
482e7b6 |
|
|
|
3b0d6a3 |
* Tue Jul 23 2013 Petr Pisar <ppisar@redhat.com> - 0.16-2
|
|
|
3b0d6a3 |
- Perl 5.18 rebuild
|
|
|
3b0d6a3 |
|
|
|
944524d |
* Wed Jul 10 2013 Paul Howarth <paul@city-fan.org> - 0.16-1
|
|
|
944524d |
- Update to 0.16
|
|
|
944524d |
- Remove accidental Sub::Name test dependency
|
|
|
944524d |
|
|
|
1236c26 |
* Tue Jul 9 2013 Paul Howarth <paul@city-fan.org> - 0.15-1
|
|
|
1236c26 |
- Update to 0.15
|
|
|
1236c26 |
- Optionally use Sub::Name to name the try/catch/finally blocks, if available
|
|
|
1236c26 |
- BR:/R: perl(Sub::Name)
|
|
|
1236c26 |
- Drop obsoletes/provides for old -tests subpackage
|
|
|
1236c26 |
|
|
|
03c1603 |
* Sat Jul 6 2013 Paul Howarth <paul@city-fan.org> - 0.14-1
|
|
|
03c1603 |
- Update to 0.14
|
|
|
03c1603 |
- Also throw an exception for catch/finally in scalar context (CPAN RT#81070)
|
|
|
03c1603 |
|
|
|
70c0e17 |
* Fri Jul 5 2013 Paul Howarth <paul@city-fan.org> - 0.13-1
|
|
|
70c0e17 |
- Update to 0.13
|
|
|
70c0e17 |
- Fix tests failing on 5.6.x due to differing DESTROY semantics
|
|
|
70c0e17 |
- Excise superfluous local($@) call - 7%% speedup
|
|
|
70c0e17 |
- Fix broken URLs (CPAN RT#55659)
|
|
|
70c0e17 |
- Proper exception on erroneous usage of bare catch/finally (CPAN RT#81070)
|
|
|
70c0e17 |
- Proper exception on erroneous use of multiple catch{} blocks
|
|
|
70c0e17 |
- Clarify exception occuring on unterminated try block (CPAN RT#75712)
|
|
|
70c0e17 |
- Fix the prototypes shown in docs to match code (CPAN RT#79590)
|
|
|
70c0e17 |
- Warn loudly on exceptions in finally() blocks
|
|
|
70c0e17 |
- dzilify
|
|
|
70c0e17 |
- Ship upstream LICENSE and README files
|
|
|
70c0e17 |
- Classify buildreqs by usage
|
|
|
70c0e17 |
- Add buildreqs for extra tests and explicitly run them
|
|
|
70c0e17 |
|
|
|
74a5ea8 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12-2
|
|
|
74a5ea8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
74a5ea8 |
|
|
|
5cc9e37 |
* Wed Jan 2 2013 Paul Howarth <paul@city-fan.org> - 0.12-1
|
|
|
5cc9e37 |
- Update to 0.12
|
|
|
5cc9e37 |
- Documentation fixes
|
|
|
5cc9e37 |
|
|
|
fc0d4f2 |
* Tue Aug 28 2012 Jitka Plesnikova <jplesnik@redhat.com> - 0.11-7
|
|
|
5cc9e37 |
- Add BR/R perl(Exporter)
|
|
|
fc0d4f2 |
|
|
|
1a4cbf4 |
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-6
|
|
|
1a4cbf4 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
1a4cbf4 |
|
|
|
cde7802 |
* Fri Jun 08 2012 Petr Pisar <ppisar@redhat.com> - 0.11-5
|
|
|
cde7802 |
- Perl 5.16 rebuild
|
|
|
cde7802 |
|
|
|
ae7dbd2 |
* Mon Mar 26 2012 Paul Howarth <paul@city-fan.org> - 0.11-4
|
|
|
ae7dbd2 |
- BR: perl(Carp)
|
|
|
ae7dbd2 |
- Don't need to remove empty directories from buildroot
|
|
|
ae7dbd2 |
- Don't use macros for commands
|
|
|
ae7dbd2 |
- Drop redundant %%{?perl_default_filter}
|
|
|
ae7dbd2 |
- Enhance %%description
|
|
|
ae7dbd2 |
- Reinstate EPEL-5 compatibility:
|
|
|
ae7dbd2 |
- Define buildroot
|
|
|
ae7dbd2 |
- Clean buildroot in %%install and %%clean
|
|
|
ae7dbd2 |
- Use tabs
|
|
|
ae7dbd2 |
|
|
|
ae7dbd2 |
* Sun Jan 22 2012 Iain Arnell <iarnell@gmail.com> - 0.11-3
|
|
|
ae7dbd2 |
- Drop tests subpackage; move tests to main package documentation
|
|
|
9e9c161 |
|
|
|
00304e1 |
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-2
|
|
|
00304e1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
00304e1 |
|
|
|
ae7dbd2 |
* Sun Oct 02 2011 Iain Arnell <iarnell@gmail.com> - 0.11-1
|
|
|
ae7dbd2 |
- Update to latest upstream version
|
|
|
64f7b53 |
|
|
|
3d2f283 |
* Wed Jun 15 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.09-2
|
|
|
3d2f283 |
- Perl mass rebuild
|
|
|
3d2f283 |
|
|
|
ae7dbd2 |
* Fri Mar 18 2011 Iain Arnell <iarnell@gmail.com> - 0.09-1
|
|
|
ae7dbd2 |
- Update to latest upstream version
|
|
|
ae7dbd2 |
- Clean up spec for modern rpmbuild
|
|
|
0d9574b |
|
|
|
c6b3987 |
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.07-2
|
|
|
c6b3987 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
c6b3987 |
|
|
|
ae7dbd2 |
* Mon Nov 1 2010 Paul Howarth <paul@city-fan.org> - 0.07-1
|
|
|
ae7dbd2 |
- Update to 0.07
|
|
|
ae7dbd2 |
- Allow multiple finally blocks
|
|
|
ae7dbd2 |
- Pass the error, if any, to finally blocks when called
|
|
|
ae7dbd2 |
- Documentation fixes and clarifications
|
|
|
ae7dbd2 |
- This release by RJBS -> update source URL
|
|
|
505f548 |
|
|
|
34a9d28 |
* Fri May 07 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.04-2
|
|
|
34a9d28 |
- Mass rebuild with perl-5.12.0
|
|
|
34a9d28 |
|
|
|
ae7dbd2 |
* Tue Mar 02 2010 Chris Weyl <cweyl@alumni.drew.edu> - 0.04-1
|
|
|
ae7dbd2 |
- Update by Fedora::App::MaintainerTools 0.004
|
|
Chris Weyl |
c1bbc6c |
- PERL_INSTALL_ROOT => DESTDIR
|
|
|
ae7dbd2 |
- Updating to latest GA CPAN version (0.04)
|
|
Chris Weyl |
c1bbc6c |
|
|
|
9479ae7 |
* Fri Dec 4 2009 Stepan Kasal <skasal@redhat.com> - 0.02-2
|
|
|
ae7dbd2 |
- Rebuild against perl 5.10.1
|
|
|
9479ae7 |
|
|
|
ae7dbd2 |
* Tue Sep 15 2009 Chris Weyl <cweyl@alumni.drew.edu> - 0.02-1
|
|
|
ae7dbd2 |
- Submission
|
|
Chris Weyl |
413b007 |
|
|
|
ae7dbd2 |
* Tue Sep 15 2009 Chris Weyl <cweyl@alumni.drew.edu> - 0.02-0
|
|
|
ae7dbd2 |
- Initial RPM packaging
|
|
|
ae7dbd2 |
- Generated with cpan2dist (CPANPLUS::Dist::RPM version 0.0.8)
|