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