2010-11-05 18:44:58 +00:00
|
|
|
Summary: Incredibly simple helpers for testing code with exceptions
|
|
|
|
Name: perl-Test-Fatal
|
2012-02-16 19:11:45 +00:00
|
|
|
Version: 0.010
|
2013-07-24 00:09:39 +00:00
|
|
|
Release: 6%{?dist}
|
2010-11-05 18:44:58 +00:00
|
|
|
License: GPL+ or Artistic
|
|
|
|
Group: Development/Libraries
|
|
|
|
Url: http://search.cpan.org/dist/Test-Fatal/
|
|
|
|
Source0: http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/Test-Fatal-%{version}.tar.gz
|
2011-11-07 11:16:02 +00:00
|
|
|
Patch0: Test-Fatal-0.008-old-EU::MM.patch
|
2011-04-26 15:28:53 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
|
2010-11-05 18:44:58 +00:00
|
|
|
BuildArch: noarch
|
2011-11-07 11:16:02 +00:00
|
|
|
BuildRequires: perl(Carp)
|
2010-11-05 18:44:58 +00:00
|
|
|
BuildRequires: perl(Exporter) >= 5.57
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
2012-10-19 08:09:03 +00:00
|
|
|
BuildRequires: perl(Test::Builder)
|
2011-06-02 09:21:36 +00:00
|
|
|
BuildRequires: perl(Test::Builder::Tester)
|
2010-11-05 18:44:58 +00:00
|
|
|
BuildRequires: perl(Test::More)
|
|
|
|
BuildRequires: perl(Test::Pod)
|
|
|
|
BuildRequires: perl(Try::Tiny) >= 0.07
|
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}
|
|
|
|
|
2011-06-02 09:21:36 +00:00
|
|
|
# We don't really need ExtUtils::MakeMaker ≥ 6.30
|
|
|
|
%if "%{?rhel}" == "4"
|
2010-11-05 18:44:58 +00:00
|
|
|
%patch0 -p1
|
2011-06-02 09:21:36 +00:00
|
|
|
%endif
|
2010-11-05 18:44:58 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
make pure_install DESTDIR=%{buildroot}
|
|
|
|
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
|
|
|
|
find %{buildroot} -depth -type d -exec rmdir {} ';' 2>/dev/null
|
|
|
|
%{_fixperms} %{buildroot}
|
|
|
|
|
2011-04-26 15:28:53 +00:00
|
|
|
%check
|
|
|
|
make test RELEASE_TESTING=1
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
2010-11-05 18:44:58 +00:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc Changes LICENSE README
|
|
|
|
%{perl_vendorlib}/Test/
|
|
|
|
%{_mandir}/man3/Test::Fatal.3pm*
|
|
|
|
|
|
|
|
%changelog
|
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
|
|
|
|
|
2012-02-16 19:11:45 +00:00
|
|
|
* Thu Feb 16 2012 Paul Howarth <paul@city-fan.org> 0.010-1
|
|
|
|
- Update to 0.010
|
|
|
|
- Avoid tickling an overloading bug in perl 5.6 during testing
|
|
|
|
(CPAN RT#74847)
|
|
|
|
|
2012-02-10 10:32:41 +00:00
|
|
|
* Fri Feb 10 2012 Paul Howarth <paul@city-fan.org> 0.009-1
|
|
|
|
- Update to 0.009
|
|
|
|
- Advise against using isnt(exception{...},undef)
|
|
|
|
|
|
|
|
* 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
|
|
|
|
|
2011-11-07 11:16:02 +00:00
|
|
|
* Mon Nov 7 2011 Paul Howarth <paul@city-fan.org> 0.008-1
|
|
|
|
- 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
|
|
|
|
|
|
|
|
* 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
|
|
|
|
|
2011-06-02 09:21:36 +00:00
|
|
|
* Thu Jun 2 2011 Paul Howarth <paul@city-fan.org> 0.006-1
|
|
|
|
- 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)
|
|
|
|
|
2011-04-26 17:10:12 +00:00
|
|
|
* Tue Apr 26 2011 Paul Howarth <paul@city-fan.org> 0.005-1
|
|
|
|
- Update to 0.005
|
|
|
|
- Fix the logic that picks tests for 5.13.1+
|
|
|
|
|
2011-04-26 15:28:53 +00:00
|
|
|
* Tue Apr 26 2011 Paul Howarth <paul@city-fan.org> 0.004-1
|
|
|
|
- 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
|
|
|
|
|
|
|
|
* 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
|
|
|
|
|
2010-11-05 18:44:58 +00:00
|
|
|
* Fri Oct 29 2010 Paul Howarth <paul@city-fan.org> 0.003-1
|
|
|
|
- Update to 0.003
|
|
|
|
- More tests for false exceptions, especially on 5.13
|
|
|
|
- Update versions patch
|
|
|
|
|
|
|
|
* Thu Oct 28 2010 Paul Howarth <paul@city-fan.org> 0.002-1
|
|
|
|
- Update to 0.002
|
|
|
|
- Add tests for handling of false exceptions
|
|
|
|
- Fix precedence error in documentation
|
|
|
|
- Update versions patch
|
|
|
|
|
|
|
|
* Wed Oct 27 2010 Paul Howarth <paul@city-fan.org> 0.001-2
|
|
|
|
- Sanitize spec for Fedora submission
|
|
|
|
|
|
|
|
* Tue Oct 26 2010 Paul Howarth <paul@city-fan.org> 0.001-1
|
|
|
|
- Initial RPM version
|