[5803] | 1 | Summary: Incredibly simple helpers for testing code with exceptions |
---|
| 2 | Name: perl-Test-Fatal |
---|
[12120] | 3 | Version: 0.014 |
---|
| 4 | Release: 1%{?_dist_release} |
---|
[5803] | 5 | License: GPL+ or Artistic |
---|
| 6 | Group: Development/Libraries |
---|
| 7 | Url: http://search.cpan.org/dist/Test-Fatal/ |
---|
| 8 | Source0: http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/Test-Fatal-%{version}.tar.gz |
---|
| 9 | Patch0: Test-Fatal-0.008-old-EU::MM.patch |
---|
| 10 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu) |
---|
| 11 | BuildArch: noarch |
---|
| 12 | BuildRequires: perl(Carp) |
---|
[12120] | 13 | BuildRequires: perl(Exporter) |
---|
[5803] | 14 | BuildRequires: perl(ExtUtils::MakeMaker) |
---|
| 15 | BuildRequires: perl(Test::Builder::Tester) |
---|
| 16 | BuildRequires: perl(Test::More) |
---|
| 17 | BuildRequires: perl(Test::Pod) |
---|
[12120] | 18 | BuildRequires: perl(Try::Tiny) |
---|
[5803] | 19 | Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) |
---|
| 20 | |
---|
[12120] | 21 | Vendor: Project Vine |
---|
| 22 | Distribution: Vine Linux |
---|
| 23 | |
---|
[5803] | 24 | %description |
---|
| 25 | Test::Fatal is an alternative to the popular Test::Exception. It does much |
---|
| 26 | less, but should allow greater flexibility in testing exception-throwing code |
---|
| 27 | with about the same amount of typing. |
---|
| 28 | |
---|
| 29 | %prep |
---|
| 30 | %setup -q -n Test-Fatal-%{version} |
---|
| 31 | |
---|
| 32 | %build |
---|
| 33 | perl Makefile.PL INSTALLDIRS=vendor |
---|
| 34 | make %{?_smp_mflags} |
---|
| 35 | |
---|
| 36 | %install |
---|
| 37 | rm -rf %{buildroot} |
---|
| 38 | make pure_install DESTDIR=%{buildroot} |
---|
| 39 | find %{buildroot} -type f -name .packlist -exec rm -f {} ';' |
---|
| 40 | find %{buildroot} -depth -type d -exec rmdir {} ';' 2>/dev/null |
---|
| 41 | %{_fixperms} %{buildroot} |
---|
| 42 | |
---|
| 43 | %check |
---|
| 44 | make test RELEASE_TESTING=1 |
---|
| 45 | |
---|
| 46 | %clean |
---|
| 47 | rm -rf %{buildroot} |
---|
| 48 | |
---|
| 49 | %files |
---|
| 50 | %defattr(-,root,root,-) |
---|
[12120] | 51 | %license LICENSE |
---|
| 52 | %doc Changes README |
---|
[5803] | 53 | %{perl_vendorlib}/Test/ |
---|
| 54 | %{_mandir}/man3/Test::Fatal.3pm* |
---|
| 55 | |
---|
| 56 | %changelog |
---|
[12120] | 57 | * Fri May 17 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.014-1 |
---|
| 58 | - new upstream release. |
---|
| 59 | - rebuilt with perl-5.26. |
---|
| 60 | |
---|
[8672] | 61 | * Mon Jun 30 2014 IWAI, Masaharu <iwaim.sub@gmail.com> 0.010-2 |
---|
| 62 | - build with Perl 5.16 |
---|
| 63 | |
---|
[5803] | 64 | * Fri Mar 02 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.010-1 |
---|
| 65 | - initial build for Vine Linux |
---|
| 66 | |
---|
| 67 | * Thu Feb 16 2012 Paul Howarth <paul@city-fan.org> 0.010-1 |
---|
| 68 | - Update to 0.010 |
---|
| 69 | - Avoid tickling an overloading bug in perl 5.6 during testing |
---|
| 70 | (CPAN RT#74847) |
---|
| 71 | |
---|
| 72 | * Fri Feb 10 2012 Paul Howarth <paul@city-fan.org> 0.009-1 |
---|
| 73 | - Update to 0.009 |
---|
| 74 | - Advise against using isnt(exception{...},undef) |
---|
| 75 | |
---|
| 76 | * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> 0.008-2 |
---|
| 77 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild |
---|
| 78 | |
---|
| 79 | * Mon Nov 7 2011 Paul Howarth <paul@city-fan.org> 0.008-1 |
---|
| 80 | - Update to 0.008 |
---|
| 81 | - Revert the mistake by which 0.004 allowed blocks after "exception" as well |
---|
| 82 | as "success" |
---|
| 83 | - BR: perl(Carp) |
---|
| 84 | - Update patch for building with ExtUtils::MakeMaker < 6.30 |
---|
| 85 | |
---|
| 86 | * Mon Jun 20 2011 Marcela Mašláňová <mmaslano@redhat.com> 0.006-2 |
---|
| 87 | - Perl mass rebuild |
---|
| 88 | |
---|
| 89 | * Thu Jun 2 2011 Paul Howarth <paul@city-fan.org> 0.006-1 |
---|
| 90 | - Update to 0.006 |
---|
| 91 | - Crank back the Test::More and Exporter requirements (CPAN RT#62699) |
---|
| 92 | - Add lives_ok and dies_ok emulation (CPAN RT#67598) |
---|
| 93 | - Versions patch replaced by workaround for old ExtUtils::MakeMaker |
---|
| 94 | - BR: perl(Test::Builder::Tester) |
---|
| 95 | |
---|
| 96 | * Tue Apr 26 2011 Paul Howarth <paul@city-fan.org> 0.005-1 |
---|
| 97 | - Update to 0.005 |
---|
| 98 | - Fix the logic that picks tests for 5.13.1+ |
---|
| 99 | |
---|
| 100 | * Tue Apr 26 2011 Paul Howarth <paul@city-fan.org> 0.004-1 |
---|
| 101 | - Update to 0.004 |
---|
| 102 | - success blocks now allow trailing blocks like finally, catch, etc. |
---|
| 103 | - Remove remaining uses of macros for commands |
---|
| 104 | - Re-order %%install section to conventional position in spec |
---|
| 105 | |
---|
| 106 | * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> 0.003-2 |
---|
| 107 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild |
---|
| 108 | |
---|
| 109 | * Fri Oct 29 2010 Paul Howarth <paul@city-fan.org> 0.003-1 |
---|
| 110 | - Update to 0.003 |
---|
| 111 | - More tests for false exceptions, especially on 5.13 |
---|
| 112 | - Update versions patch |
---|
| 113 | |
---|
| 114 | * Thu Oct 28 2010 Paul Howarth <paul@city-fan.org> 0.002-1 |
---|
| 115 | - Update to 0.002 |
---|
| 116 | - Add tests for handling of false exceptions |
---|
| 117 | - Fix precedence error in documentation |
---|
| 118 | - Update versions patch |
---|
| 119 | |
---|
| 120 | * Wed Oct 27 2010 Paul Howarth <paul@city-fan.org> 0.001-2 |
---|
| 121 | - Sanitize spec for Fedora submission |
---|
| 122 | |
---|
| 123 | * Tue Oct 26 2010 Paul Howarth <paul@city-fan.org> 0.001-1 |
---|
| 124 | - Initial RPM version |
---|