887862
%{bcond_without perl_Try_Tiny_enables_optional_test}
887862
887862
Name:		perl-Try-Tiny
887862
Summary:	Minimal try/catch with proper localization of $@
887862
Version:	0.28
887862
Release:	2%{?dist}
887862
License:	MIT
887862
URL:		http://search.cpan.org/dist/Try-Tiny
887862
Source0:	http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/Try-Tiny-%{version}.tar.gz
887862
BuildArch:	noarch
887862
# Module Build
887862
BuildRequires:	coreutils
887862
BuildRequires:	findutils
887862
BuildRequires:	make
887862
BuildRequires:	perl
887862
BuildRequires:	perl-generators
887862
BuildRequires:	perl(ExtUtils::MakeMaker)
887862
# Module
887862
BuildRequires:	perl(Carp)
887862
BuildRequires:	perl(constant)
887862
BuildRequires:	perl(Exporter) >= 5.57
887862
BuildRequires:	perl(strict)
887862
BuildRequires:	perl(Sub::Util)
887862
BuildRequires:	perl(warnings)
887862
# Test Suite
887862
BuildRequires:	perl(File::Spec)
887862
BuildRequires:	perl(Test::More)
887862
%if %{with perl_Try_Tiny_enables_optional_test}
887862
# Optional Tests
887862
BuildRequires:	perl(Capture::Tiny) >= 0.12
887862
BuildRequires:	perl(CPAN::Meta) >= 2.120900
887862
BuildRequires:	perl(CPAN::Meta::Check) >= 0.011
887862
BuildRequires:	perl(CPAN::Meta::Requirements)
887862
%endif
887862
# Runtime
887862
Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
887862
Requires:	perl(Sub::Util)
887862
887862
# Do not provide private modules from tests packaged as a documentation
887862
%global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{_docdir}/
887862
887862
%description
887862
This module provides bare bones try/catch statements that are designed to
887862
minimize common mistakes with eval blocks, and NOTHING else.
887862
887862
This is unlike TryCatch, which provides a nice syntax and avoids adding
887862
another call stack layer, and supports calling return from the try block to
887862
return from the parent subroutine. These extra features come at a cost of a
887862
few dependencies, namely Devel::Declare and Scope::Upper that are occasionally
887862
problematic, and the additional catch filtering uses Moose type constraints,
887862
which may not be desirable either.
887862
887862
%prep
887862
%setup -q -n Try-Tiny-%{version}
887862
887862
%build
887862
perl Makefile.PL INSTALLDIRS=vendor
887862
make %{?_smp_mflags}
887862
887862
%install
887862
make pure_install DESTDIR=%{buildroot}
887862
find %{buildroot} -type f -name .packlist -delete
887862
%{_fixperms} -c %{buildroot}
887862
887862
%check
887862
make test
887862
887862
%files
887862
%license LICENCE
887862
%doc Changes CONTRIBUTING README t/
887862
%{perl_vendorlib}/Try/
887862
%{_mandir}/man3/Try::Tiny.3*
887862
887862
%changelog
887862
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.28-2
887862
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
887862
887862
* Mon Jan  9 2017 Paul Howarth <paul@city-fan.org> - 0.28-1
887862
- Update to 0.28
887862
  - Enabled some tests of finally blocks that were disabled on 5.6, now that
887862
    that functionality works (since 0.13) (GH#4)
887862
887862
* Tue Aug 16 2016 Paul Howarth <paul@city-fan.org> - 0.27-1
887862
- Update to 0.27
887862
  - "finally" blocks are now run for all methods of leaving the try block
887862
     (including via exit, goto) (CPAN RT#112099)
887862
  - Switch from finalizers using an array to a hash, to resolve segfaults when
887862
    creating a pseudofork on MSWin before perl 5.20
887862
    (karenetheridge/Sub-Name/#3)
887862
  - Repository moved to the github p5sagit organization (the primary is on
887862
    shadowcat, mirrored to github)
887862
- BR: perl-generators
887862
- Simplify find command using -delete
887862
887862
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.24-3
887862
- Perl 5.24 rebuild
887862
887862
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.24-2
887862
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
887862
887862
* Fri Dec 11 2015 Paul Howarth <paul@city-fan.org> - 0.24-1
887862
- Update to 0.24
887862
  - Fix syntax of example code (PR#22)
887862
  - 'perl' removed from prerequisite recommendations, to avoid tripping up CPAN
887862
    clients
887862
  - Sub::Util is used preferentially to Sub::Name in most cases (PR#27)
887862
- This release by ETHER → update source URL
887862
- Modernize spec
887862
- Don't run the extra tests
887862
887862
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.22-6
887862
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
887862
887862
* Sat Jun 06 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.22-5
887862
- Perl 5.22 rebuild
887862
887862
* Thu Jan 15 2015 Petr Pisar <ppisar@redhat.com> - 0.22-4
887862
- Correct dependencies
887862
887862
* Thu Aug 28 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.22-3
887862
- Perl 5.20 rebuild
887862
887862
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.22-2
887862
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
887862
887862
* Tue Apr 29 2014 Paul Howarth <paul@city-fan.org> - 0.22-1
887862
- Update to 0.22
887862
  - Add optional test deps as recommended prereqs
887862
    (https://github.com/doy/try-tiny/pull/18)
887862
- Update patch for building with Test::More < 0.88
887862
887862
* Tue Apr 15 2014 Paul Howarth <paul@city-fan.org> - 0.21-1
887862
- Update to 0.21
887862
  - Also skip the test if Capture::Tiny is too old
887862
    (https://github.com/doy/try-tiny/issues/17)
887862
887862
* Sat Mar 22 2014 Paul Howarth <paul@city-fan.org> - 0.20-1
887862
- Update to 0.20
887862
  - Documentation updates
887862
- Update patch for building with Test::More < 0.88
887862
887862
* Thu Jan 23 2014 Paul Howarth <paul@city-fan.org> - 0.19-1
887862
- Update to 0.19
887862
  - Fix an obscure issue with loading modules during global destruction
887862
    (https://github.com/doy/try-tiny/pull/11)
887862
  - Documentation updates (https://github.com/doy/try-tiny/pull/12)
887862
- Add patch to support building with Test::More < 0.88 again
887862
887862
* Sat Aug 17 2013 Paul Howarth <paul@city-fan.org> - 0.18-1
887862
- Update to 0.18
887862
  - Fix tests for pre-Test-More-0.88 (https://github.com/doy/try-tiny/pull/10)
887862
- Drop upstreamed patch for building with Test::More < 0.88
887862
887862
* Sat Aug 17 2013 Paul Howarth <paul@city-fan.org> - 0.17-1
887862
- Update to 0.17
887862
  - Work around Perl RT#119311, which was causing incorrect error messages in
887862
    some cases during global destruction
887862
    (https://github.com/doy/try-tiny/pull/9)
887862
- Add patch to support building with Test::More < 0.88
887862
887862
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16-3
887862
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
887862
887862
* Tue Jul 23 2013 Petr Pisar <ppisar@redhat.com> - 0.16-2
887862
- Perl 5.18 rebuild
887862
887862
* Wed Jul 10 2013 Paul Howarth <paul@city-fan.org> - 0.16-1
887862
- Update to 0.16
887862
  - Remove accidental Sub::Name test dependency
887862
887862
* Tue Jul  9 2013 Paul Howarth <paul@city-fan.org> - 0.15-1
887862
- Update to 0.15
887862
  - Optionally use Sub::Name to name the try/catch/finally blocks, if available
887862
- BR:/R: perl(Sub::Name)
887862
- Drop obsoletes/provides for old -tests subpackage
887862
887862
* Sat Jul  6 2013 Paul Howarth <paul@city-fan.org> - 0.14-1
887862
- Update to 0.14
887862
  - Also throw an exception for catch/finally in scalar context (CPAN RT#81070)
887862
887862
* Fri Jul  5 2013 Paul Howarth <paul@city-fan.org> - 0.13-1
887862
- Update to 0.13
887862
  - Fix tests failing on 5.6.x due to differing DESTROY semantics
887862
  - Excise superfluous local($@) call - 7%% speedup
887862
  - Fix broken URLs (CPAN RT#55659)
887862
  - Proper exception on erroneous usage of bare catch/finally (CPAN RT#81070)
887862
  - Proper exception on erroneous use of multiple catch{} blocks
887862
  - Clarify exception occuring on unterminated try block (CPAN RT#75712)
887862
  - Fix the prototypes shown in docs to match code (CPAN RT#79590)
887862
  - Warn loudly on exceptions in finally() blocks
887862
  - dzilify
887862
- Ship upstream LICENSE and README files
887862
- Classify buildreqs by usage
887862
- Add buildreqs for extra tests and explicitly run them
887862
887862
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12-2
887862
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
887862
887862
* Wed Jan  2 2013 Paul Howarth <paul@city-fan.org> - 0.12-1
887862
- Update to 0.12
887862
  - Documentation fixes
887862
887862
* Tue Aug 28 2012 Jitka Plesnikova <jplesnik@redhat.com> - 0.11-7
887862
- Add BR/R perl(Exporter)
887862
887862
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-6
887862
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
887862
887862
* Fri Jun 08 2012 Petr Pisar <ppisar@redhat.com> - 0.11-5
887862
- Perl 5.16 rebuild
887862
887862
* Mon Mar 26 2012 Paul Howarth <paul@city-fan.org> - 0.11-4
887862
- BR: perl(Carp)
887862
- Don't need to remove empty directories from buildroot
887862
- Don't use macros for commands
887862
- Drop redundant %%{?perl_default_filter}
887862
- Enhance %%description
887862
- Reinstate EPEL-5 compatibility:
887862
  - Define buildroot
887862
  - Clean buildroot in %%install and %%clean
887862
- Use tabs
887862
887862
* Sun Jan 22 2012 Iain Arnell <iarnell@gmail.com> - 0.11-3
887862
- Drop tests subpackage; move tests to main package documentation
887862
887862
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-2
887862
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
887862
887862
* Sun Oct 02 2011 Iain Arnell <iarnell@gmail.com> - 0.11-1
887862
- Update to latest upstream version
887862
887862
* Wed Jun 15 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.09-2
887862
- Perl mass rebuild
887862
887862
* Fri Mar 18 2011 Iain Arnell <iarnell@gmail.com> - 0.09-1
887862
- Update to latest upstream version
887862
- Clean up spec for modern rpmbuild
887862
887862
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.07-2
887862
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
887862
887862
* Mon Nov  1 2010 Paul Howarth <paul@city-fan.org> - 0.07-1
887862
- Update to 0.07
887862
  - Allow multiple finally blocks
887862
  - Pass the error, if any, to finally blocks when called
887862
  - Documentation fixes and clarifications
887862
- This release by RJBS -> update source URL
887862
887862
* Fri May 07 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.04-2
887862
- Mass rebuild with perl-5.12.0
887862
887862
* Tue Mar 02 2010 Chris Weyl <cweyl@alumni.drew.edu> - 0.04-1
887862
- Update by Fedora::App::MaintainerTools 0.004
887862
- PERL_INSTALL_ROOT => DESTDIR
887862
- Updating to latest GA CPAN version (0.04)
887862
887862
* Fri Dec  4 2009 Stepan Kasal <skasal@redhat.com> - 0.02-2
887862
- Rebuild against perl 5.10.1
887862
887862
* Tue Sep 15 2009 Chris Weyl <cweyl@alumni.drew.edu> - 0.02-1
887862
- Submission
887862
887862
* Tue Sep 15 2009 Chris Weyl <cweyl@alumni.drew.edu> - 0.02-0
887862
- Initial RPM packaging
887862
- Generated with cpan2dist (CPANPLUS::Dist::RPM version 0.0.8)