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