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