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