753ca0
Name:		perl-Try-Tiny
753ca0
Summary:	Minimal try/catch with proper localization of $@
753ca0
Version:	0.12
272817
Release:	2%{?dist}
753ca0
License:	MIT
753ca0
Group:		Development/Libraries
753ca0
URL:		http://search.cpan.org/dist/Try-Tiny
753ca0
Source0:	http://search.cpan.org/CPAN/authors/id/D/DO/DOY/Try-Tiny-%{version}.tar.gz
753ca0
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
753ca0
BuildArch:	noarch
753ca0
BuildRequires:	perl(Carp)
753ca0
BuildRequires:	perl(Exporter)
753ca0
BuildRequires:	perl(ExtUtils::MakeMaker)
753ca0
BuildRequires:	perl(Test::More)
753ca0
Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
753ca0
Requires:	perl(Exporter)
753ca0
753ca0
# obsolete/provide old tests subpackage
753ca0
# can be removed during F19 development cycle
753ca0
Obsoletes:	%{name}-tests < 0.11-3
753ca0
Provides:	%{name}-tests = %{version}-%{release}
753ca0
753ca0
%description
753ca0
This module provides bare bones try/catch statements that are designed to
753ca0
minimize common mistakes with eval blocks, and NOTHING else.
753ca0
753ca0
This is unlike TryCatch, which provides a nice syntax and avoids adding
753ca0
another call stack layer, and supports calling return from the try block to
753ca0
return from the parent subroutine. These extra features come at a cost of a
753ca0
few dependencies, namely Devel::Declare and Scope::Upper that are occasionally
753ca0
problematic, and the additional catch filtering uses Moose type constraints,
753ca0
which may not be desirable either.
753ca0
753ca0
%prep
753ca0
%setup -q -n Try-Tiny-%{version}
753ca0
753ca0
%build
753ca0
perl Makefile.PL INSTALLDIRS=vendor
753ca0
make %{?_smp_mflags}
753ca0
753ca0
%install
753ca0
rm -rf %{buildroot}
753ca0
make pure_install DESTDIR=%{buildroot}
753ca0
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
753ca0
%{_fixperms} %{buildroot}
753ca0
753ca0
%check
753ca0
make test
753ca0
753ca0
%clean
753ca0
rm -rf %{buildroot}
753ca0
753ca0
%files
753ca0
%doc Changes t/
753ca0
%{perl_vendorlib}/Try/
753ca0
%{_mandir}/man3/Try::Tiny.3pm*
753ca0
753ca0
%changelog
272817
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.12-2
272817
- Mass rebuild 2013-12-27
272817
753ca0
* Wed Jan  2 2013 Paul Howarth <paul@city-fan.org> - 0.12-1
753ca0
- Update to 0.12
753ca0
  - Documentation fixes
753ca0
753ca0
* Tue Aug 28 2012 Jitka Plesnikova <jplesnik@redhat.com> - 0.11-7
753ca0
- Add BR/R perl(Exporter)
753ca0
753ca0
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-6
753ca0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
753ca0
753ca0
* Fri Jun 08 2012 Petr Pisar <ppisar@redhat.com> - 0.11-5
753ca0
- Perl 5.16 rebuild
753ca0
753ca0
* Mon Mar 26 2012 Paul Howarth <paul@city-fan.org> - 0.11-4
753ca0
- BR: perl(Carp)
753ca0
- Don't need to remove empty directories from buildroot
753ca0
- Don't use macros for commands
753ca0
- Drop redundant %%{?perl_default_filter}
753ca0
- Enhance %%description
753ca0
- Reinstate EPEL-5 compatibility:
753ca0
  - Define buildroot
753ca0
  - Clean buildroot in %%install and %%clean
753ca0
- Use tabs
753ca0
753ca0
* Sun Jan 22 2012 Iain Arnell <iarnell@gmail.com> - 0.11-3
753ca0
- Drop tests subpackage; move tests to main package documentation
753ca0
753ca0
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-2
753ca0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
753ca0
753ca0
* Sun Oct 02 2011 Iain Arnell <iarnell@gmail.com> - 0.11-1
753ca0
- Update to latest upstream version
753ca0
753ca0
* Wed Jun 15 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.09-2
753ca0
- Perl mass rebuild
753ca0
753ca0
* Fri Mar 18 2011 Iain Arnell <iarnell@gmail.com> - 0.09-1
753ca0
- Update to latest upstream version
753ca0
- Clean up spec for modern rpmbuild
753ca0
753ca0
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.07-2
753ca0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
753ca0
753ca0
* Mon Nov  1 2010 Paul Howarth <paul@city-fan.org> - 0.07-1
753ca0
- Update to 0.07
753ca0
  - Allow multiple finally blocks
753ca0
  - Pass the error, if any, to finally blocks when called
753ca0
  - Documentation fixes and clarifications
753ca0
- This release by RJBS -> update source URL
753ca0
753ca0
* Fri May 07 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.04-2
753ca0
- Mass rebuild with perl-5.12.0
753ca0
753ca0
* Tue Mar 02 2010 Chris Weyl <cweyl@alumni.drew.edu> - 0.04-1
753ca0
- Update by Fedora::App::MaintainerTools 0.004
753ca0
- PERL_INSTALL_ROOT => DESTDIR
753ca0
- Updating to latest GA CPAN version (0.04)
753ca0
753ca0
* Fri Dec  4 2009 Stepan Kasal <skasal@redhat.com> - 0.02-2
753ca0
- Rebuild against perl 5.10.1
753ca0
753ca0
* Tue Sep 15 2009 Chris Weyl <cweyl@alumni.drew.edu> - 0.02-1
753ca0
- Submission
753ca0
753ca0
* Tue Sep 15 2009 Chris Weyl <cweyl@alumni.drew.edu> - 0.02-0
753ca0
- Initial RPM packaging
753ca0
- Generated with cpan2dist (CPANPLUS::Dist::RPM version 0.0.8)