1 | Name: perl-Test-Warnings |
---|
2 | Version: 0.016 |
---|
3 | Release: 3%{?_dist_release} |
---|
4 | Summary: Test for warnings and the lack of them |
---|
5 | License: GPL+ or Artistic |
---|
6 | Group: Development/Libraries |
---|
7 | URL: http://search.cpan.org/dist/Test-Warnings |
---|
8 | Source0: http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/Test-Warnings-%{version}.tar.gz |
---|
9 | |
---|
10 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
11 | BuildArch: noarch |
---|
12 | # Build |
---|
13 | BuildRequires: perl |
---|
14 | BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30 |
---|
15 | # Module |
---|
16 | BuildRequires: perl(Exporter) |
---|
17 | BuildRequires: perl(Test::Builder) |
---|
18 | BuildRequires: perl(parent) |
---|
19 | BuildRequires: perl(strict) |
---|
20 | BuildRequires: perl(warnings) |
---|
21 | # Test Suite |
---|
22 | BuildRequires: perl(CPAN::Meta) |
---|
23 | BuildRequires: perl(CPAN::Meta::Requirements) |
---|
24 | BuildRequires: perl(ExtUtils::MakeMaker) |
---|
25 | BuildRequires: perl(File::Spec::Functions) |
---|
26 | BuildRequires: perl(if) |
---|
27 | BuildRequires: perl(List::Util) |
---|
28 | BuildRequires: perl(Test::More) >= 0.94 |
---|
29 | BuildRequires: perl(Test::Tester) >= 0.108 |
---|
30 | BuildRequires: perl(version) |
---|
31 | # Runtime |
---|
32 | Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) |
---|
33 | |
---|
34 | Vendor: Project Vine |
---|
35 | Distribution: Vine Linux |
---|
36 | |
---|
37 | %description |
---|
38 | If you've ever tried to use Test::NoWarnings to confirm there are no warnings |
---|
39 | generated by your tests, combined with the convenience of done_testing to not |
---|
40 | have to declare a test count, you'll have discovered that these two features do |
---|
41 | not play well together, as the test count will be calculated before the |
---|
42 | warnings test is run, resulting in a TAP error (see examples/test_nowarnings.pl |
---|
43 | in this distribution for a demonstration). |
---|
44 | |
---|
45 | This module is intended to be used as a drop-in replacement for |
---|
46 | Test::NoWarnings: it also adds an extra test, but runs this test before |
---|
47 | done_testing calculates the test count, rather than after. It does this by |
---|
48 | hooking into done_testing as well as via an END block. You can declare a plan, |
---|
49 | or not, and things will still Just Work. |
---|
50 | |
---|
51 | It is actually equivalent to: |
---|
52 | |
---|
53 | use Test::NoWarnings 1.04 ':early'; |
---|
54 | |
---|
55 | as warnings are still printed normally as they occur. You are safe, and |
---|
56 | enthusiastically encouraged, to perform a global search-replace of the above |
---|
57 | with use Test::Warnings; whether or not your tests have a plan. |
---|
58 | |
---|
59 | %prep |
---|
60 | %setup -q -n Test-Warnings-%{version} |
---|
61 | |
---|
62 | %build |
---|
63 | perl Makefile.PL INSTALLDIRS=vendor |
---|
64 | make %{?_smp_mflags} |
---|
65 | |
---|
66 | %install |
---|
67 | rm -rf $RPM_BUILD_ROOT |
---|
68 | make pure_install DESTDIR=$RPM_BUILD_ROOT |
---|
69 | find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' |
---|
70 | %{_fixperms} $RPM_BUILD_ROOT |
---|
71 | |
---|
72 | %check |
---|
73 | make test |
---|
74 | |
---|
75 | %clean |
---|
76 | rm -rf $RPM_BUILD_ROOT |
---|
77 | |
---|
78 | %files |
---|
79 | %doc Changes CONTRIBUTING LICENSE README README.md examples/ |
---|
80 | %{perl_vendorlib}/Test/ |
---|
81 | %{_mandir}/man3/Test::Warnings.3pm* |
---|
82 | |
---|
83 | %changelog |
---|
84 | * Sun Dec 14 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 0.016-3 |
---|
85 | - inital build for Vine Linux |
---|
86 | |
---|
87 | * Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.016-2 |
---|
88 | - Perl 5.20 rebuild |
---|
89 | |
---|
90 | * Sun Jun 22 2014 Paul Howarth <paul@city-fan.org> - 0.016-1 |
---|
91 | - Update to 0.16 |
---|
92 | - Fix prereq problem with last release - now no longer testing the example |
---|
93 | scripts for user installs |
---|
94 | |
---|
95 | * Fri Jun 20 2014 Paul Howarth <paul@city-fan.org> - 0.015-1 |
---|
96 | - Update to 0.15 |
---|
97 | - Adjusted packaging and tests to become perl-5.6 friendly, including only |
---|
98 | using core or dual-lifed prerequisites |
---|
99 | - Switch to ExtUtils::MakeMaker flow |
---|
100 | |
---|
101 | * Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.014-2 |
---|
102 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild |
---|
103 | |
---|
104 | * Mon Mar 3 2014 Paul Howarth <paul@city-fan.org> - 0.014-1 |
---|
105 | - Update to 0.014 |
---|
106 | - Fix test that fails when FOO or BAR environment variables are set |
---|
107 | (CPAN RT#93447) |
---|
108 | |
---|
109 | * Mon Dec 16 2013 Paul Howarth <paul@city-fan.org> - 0.013-1 |
---|
110 | - Update to 0.013 |
---|
111 | - Update configure_requires checking in Makefile.PL |
---|
112 | |
---|
113 | * Mon Oct 14 2013 Paul Howarth <paul@city-fan.org> - 0.012-1 |
---|
114 | - Update to 0.012 |
---|
115 | - Re-release to fix t/00-report-prereqs.t use of CPAN::Meta::Requirements |
---|
116 | |
---|
117 | * Sun Oct 13 2013 Paul Howarth <paul@city-fan.org> - 0.011-1 |
---|
118 | - Update to 0.011 |
---|
119 | - Unnecessary tests removed |
---|
120 | - CONTRIBUTING file added |
---|
121 | - Drop buildreqs only needed for removed tests |
---|
122 | - BR: optional test requirement perl(CPAN::Meta::Requirements) |
---|
123 | |
---|
124 | * Wed Sep 25 2013 Paul Howarth <paul@city-fan.org> - 0.010-1 |
---|
125 | - Update to 0.010 |
---|
126 | - Re-release with fixed compile test |
---|
127 | - Update dependencies |
---|
128 | - Package examples |
---|
129 | |
---|
130 | * Wed Sep 11 2013 Paul Howarth <paul@city-fan.org> - 0.009-1 |
---|
131 | - Update to 0.009 |
---|
132 | - Fixed error in synopsis (we do not export anything by default) |
---|
133 | - A caveat added to the documentation regarding embedding warning checks |
---|
134 | inside another sub |
---|
135 | - ':no_end_test' now also covers side effects of done_testing, as well as |
---|
136 | END blocks, making it possible to use the warning(s) subs without having an |
---|
137 | end warning test while using done_testing (necessary when combining with |
---|
138 | the 'if' pragma) |
---|
139 | - END tests will not be added by a subequent use of Test::Warnings if a |
---|
140 | previous one passed ':no_end_test' |
---|
141 | - Update dependencies |
---|
142 | |
---|
143 | * Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.008-3 |
---|
144 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild |
---|
145 | |
---|
146 | * Wed Jul 24 2013 Petr Pisar <ppisar@redhat.com> - 0.008-2 |
---|
147 | - Perl 5.18 rebuild |
---|
148 | |
---|
149 | * Mon Jul 15 2013 Paul Howarth <paul@city-fan.org> - 0.008-1 |
---|
150 | - Update to 0.008 |
---|
151 | - Compile test updated, to hopefully fix mswin32 parsing issues |
---|
152 | |
---|
153 | * Wed Jul 10 2013 Paul Howarth <paul@city-fan.org> - 0.007-1 |
---|
154 | - Update to 0.007 |
---|
155 | - Fix subtest tests to work on Test::More before 0.95_01 (CPAN RT#86802) |
---|
156 | - BR: perl(Capture::Tiny) |
---|
157 | - Bump perl(Module::Build::Tiny) version requirement to 0.024 |
---|
158 | - Bump perl(Test::CheckDeps) version requirement to 0.006 |
---|
159 | - Drop perl(Test::More) version requirement to 0.94 |
---|
160 | |
---|
161 | * Tue Jul 9 2013 Paul Howarth <paul@city-fan.org> - 0.006-2 |
---|
162 | - Sanitize for Fedora submission |
---|
163 | |
---|
164 | * Tue Jul 9 2013 Paul Howarth <paul@city-fan.org> - 0.006-1 |
---|
165 | - Initial RPM version |
---|