0e0590
# Run extra test
0e0590
%bcond_without perl_Test_Fatal_enables_extra_test
0e0590
# Run optional test
0e0590
%bcond_without perl_Test_Fatal_enables_optional_test
0e0590
0e0590
Summary:	Incredibly simple helpers for testing code with exceptions 
0e0590
Name:		perl-Test-Fatal
0e0590
Version:	0.014
0e0590
Release:	9%{?dist}
0e0590
License:	GPL+ or Artistic
0e0590
Group:		Development/Libraries
0e0590
Url:		http://search.cpan.org/dist/Test-Fatal/
0e0590
Source0:	http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/Test-Fatal-%{version}.tar.gz
0e0590
BuildArch:	noarch
0e0590
# Module Build
0e0590
BuildRequires:	perl-interpreter
0e0590
BuildRequires:	perl-generators
0e0590
BuildRequires:	perl(ExtUtils::MakeMaker)
0e0590
# Module Runtime
0e0590
BuildRequires:	perl(Carp)
0e0590
BuildRequires:	perl(Exporter) >= 5.57
0e0590
BuildRequires:	perl(strict)
0e0590
BuildRequires:	perl(Test::Builder)
0e0590
BuildRequires:	perl(Try::Tiny) >= 0.07
0e0590
BuildRequires:	perl(warnings)
0e0590
# Test Suite
0e0590
BuildRequires:	perl(File::Spec)
0e0590
BuildRequires:	perl(overload)
0e0590
BuildRequires:	perl(Test::Builder::Tester)
0e0590
BuildRequires:	perl(Test::More) >= 0.96
0e0590
%if %{with perl_Test_Fatal_enables_optional_test}
0e0590
# Optional Tests
0e0590
BuildRequires:	perl(CPAN::Meta) >= 2.120900
0e0590
%endif
0e0590
%if %{with perl_Test_Fatal_enables_extra_test}
0e0590
# Extra Tests
0e0590
BuildRequires:	perl(Test::Pod) >= 1.41
0e0590
%endif
0e0590
# Runtime
0e0590
Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
0e0590
Requires:	perl(Test::Builder)
0e0590
0e0590
%description
0e0590
Test::Fatal is an alternative to the popular Test::Exception. It does much
0e0590
less, but should allow greater flexibility in testing exception-throwing code
0e0590
with about the same amount of typing.
0e0590
0e0590
%prep
0e0590
%setup -q -n Test-Fatal-%{version}
0e0590
0e0590
# Avoid doc-file dependencies
0e0590
chmod -c -x examples/*
0e0590
0e0590
%build
0e0590
perl Makefile.PL INSTALLDIRS=vendor
0e0590
make %{?_smp_mflags}
0e0590
0e0590
%install
0e0590
make pure_install DESTDIR=%{buildroot}
0e0590
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
0e0590
%{_fixperms} %{buildroot}
0e0590
0e0590
%check
0e0590
make test
0e0590
%if %{with perl_Test_Fatal_enables_extra_test}
0e0590
make test TEST_FILES="$(echo $(find xt/ -name '*.t'))"
0e0590
%endif
0e0590
0e0590
%files
0e0590
%license LICENSE
0e0590
%doc Changes README examples/
0e0590
%{perl_vendorlib}/Test/
0e0590
%{_mandir}/man3/Test::Fatal.3*
0e0590
0e0590
%changelog
0e0590
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.014-9
0e0590
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
0e0590
0e0590
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.014-8
0e0590
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
0e0590
0e0590
* Mon Jun 05 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.014-7
0e0590
- Perl 5.26 rebuild
0e0590
0e0590
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.014-6
0e0590
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
0e0590
0e0590
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.014-5
0e0590
- Perl 5.24 rebuild
0e0590
0e0590
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.014-4
0e0590
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
0e0590
0e0590
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.014-3
0e0590
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
0e0590
0e0590
* Sat Jun 06 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.014-2
0e0590
- Perl 5.22 rebuild
0e0590
0e0590
* Wed Dec 10 2014 Paul Howarth <paul@city-fan.org> - 0.014-1
0e0590
- Update to 0.014
0e0590
  - Avoid assuming that t/todo.t is always called t/todo.t
0e0590
- Classify buildreqs by usage
0e0590
- Use %%license
0e0590
0e0590
* Fri Aug 29 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.013-3
0e0590
- Perl 5.20 rebuild
0e0590
0e0590
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.013-2
0e0590
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
0e0590
0e0590
* Tue Sep 24 2013 Paul Howarth <paul@city-fan.org> - 0.013-1
0e0590
- Update to 0.013
0e0590
  - Rebuild to get a newer compile test that may work on 5.6.x
0e0590
0e0590
* Tue Sep 17 2013 Paul Howarth <paul@city-fan.org> - 0.012-1
0e0590
- Update to 0.012
0e0590
  - Go back to auto-detecting the required Test::More, reverting the changes
0e0590
    made for CPAN RT#62699
0e0590
- Drop support for all current EL releases (5 and 6) since we need Test::More
0e0590
  version 0.96 or later for the test suite
0e0590
0e0590
* Tue Sep 17 2013 Paul Howarth <paul@city-fan.org> - 0.011-1
0e0590
- Update to 0.011
0e0590
  - More clearly (and correctly) document the way NOT to use Test::Fatal
0e0590
  - Try to fix $TODO not working when the user test uses $T::B::Level
0e0590
- Explicitly run the extra tests
0e0590
- Package examples directory as documentation
0e0590
- Don't need to remove empty directories from the buildroot
0e0590
- Drop %%defattr, redundant since rpm 4.4
0e0590
0e0590
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.010-7
0e0590
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
0e0590
0e0590
* Wed Jul 24 2013 Petr Pisar <ppisar@redhat.com> - 0.010-6
0e0590
- Perl 5.18 rebuild
0e0590
0e0590
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.010-5
0e0590
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
0e0590
0e0590
* Thu Oct 18 2012 Jitka Plesnikova <jplesnik@redhat.com> - 0.010-4
0e0590
- Specify all dependencies
0e0590
0e0590
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.010-3
0e0590
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
0e0590
0e0590
* Mon Jun 11 2012 Petr Pisar <ppisar@redhat.com> - 0.010-2
0e0590
- Perl 5.16 rebuild
0e0590
0e0590
* Thu Feb 16 2012 Paul Howarth <paul@city-fan.org> - 0.010-1
0e0590
- Update to 0.010
0e0590
  - Avoid tickling an overloading bug in perl 5.6 during testing
0e0590
    (CPAN RT#74847)
0e0590
0e0590
* Fri Feb 10 2012 Paul Howarth <paul@city-fan.org> - 0.009-1
0e0590
- Update to 0.009
0e0590
  - Advise against using isnt(exception{...},undef)
0e0590
0e0590
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.008-2
0e0590
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
0e0590
0e0590
* Mon Nov  7 2011 Paul Howarth <paul@city-fan.org> - 0.008-1
0e0590
- Update to 0.008
0e0590
  - Revert the mistake by which 0.004 allowed blocks after "exception" as well
0e0590
    as "success"
0e0590
- BR: perl(Carp)
0e0590
- Update patch for building with ExtUtils::MakeMaker < 6.30
0e0590
0e0590
* Mon Jun 20 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.006-2
0e0590
- Perl mass rebuild
0e0590
0e0590
* Thu Jun  2 2011 Paul Howarth <paul@city-fan.org> - 0.006-1
0e0590
- Update to 0.006
0e0590
  - Crank back the Test::More and Exporter requirements (CPAN RT#62699)
0e0590
  - Add lives_ok and dies_ok emulation (CPAN RT#67598)
0e0590
- Versions patch replaced by workaround for old ExtUtils::MakeMaker
0e0590
- BR: perl(Test::Builder::Tester)
0e0590
0e0590
* Tue Apr 26 2011 Paul Howarth <paul@city-fan.org> - 0.005-1
0e0590
- Update to 0.005
0e0590
  - Fix the logic that picks tests for 5.13.1+
0e0590
0e0590
* Tue Apr 26 2011 Paul Howarth <paul@city-fan.org> - 0.004-1
0e0590
- Update to 0.004
0e0590
  - success blocks now allow trailing blocks like finally, catch, etc.
0e0590
- Remove remaining uses of macros for commands
0e0590
- Re-order %%install section to conventional position in spec
0e0590
0e0590
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.003-2
0e0590
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
0e0590
0e0590
* Fri Oct 29 2010 Paul Howarth <paul@city-fan.org> - 0.003-1
0e0590
- Update to 0.003
0e0590
  - More tests for false exceptions, especially on 5.13
0e0590
- Update versions patch
0e0590
0e0590
* Thu Oct 28 2010 Paul Howarth <paul@city-fan.org> - 0.002-1
0e0590
- Update to 0.002
0e0590
  - Add tests for handling of false exceptions
0e0590
  - Fix precedence error in documentation
0e0590
- Update versions patch
0e0590
0e0590
* Wed Oct 27 2010 Paul Howarth <paul@city-fan.org> - 0.001-2
0e0590
- Sanitize spec for Fedora submission
0e0590
0e0590
* Tue Oct 26 2010 Paul Howarth <paul@city-fan.org> - 0.001-1
0e0590
- Initial RPM version