ae7dbd2
Name:		perl-Try-Tiny
ae7dbd2
Summary:	Minimal try/catch with proper localization of $@
944524d
Version:	0.16
3b0d6a3
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
ae7dbd2
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
ae7dbd2
BuildArch:	noarch
70c0e17
# Module Build
70c0e17
BuildRequires:	perl(ExtUtils::MakeMaker) >= 6.17
70c0e17
# Module
70c0e17
BuildRequires:	perl(base)
ae7dbd2
BuildRequires:	perl(Carp)
70c0e17
BuildRequires:	perl(constant)
fc0d4f2
BuildRequires:	perl(Exporter)
1236c26
BuildRequires:	perl(Sub::Name)
70c0e17
# Test Suite
70c0e17
BuildRequires:	perl(File::Find)
70c0e17
BuildRequires:	perl(File::Temp)
ae7dbd2
BuildRequires:	perl(Test::More)
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
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
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)