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