3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: Test::Block - Specify fine granularity test plans
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-authors/id/A/AD/ADIE/Test-Block-0.11.tar.gz
17 # Source0-md5: 386a722947f2c77f6157d1dea0338e35
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRequires: perl(Test::Builder::Tester) >= 1.01
22 BuildRequires: perl(Test::Exception) >= 0.15
23 BuildRequires: perl >= 5.6.1
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 This module allows you to specify the number of expected tests at a finer level
30 of granularity than an entire test script. It is built with Test::Builder and
31 plays happily with Test::More and friends.
33 If you are not already familiar with Test::More now would be the time to go
36 Test::Block supplies a special variable $Plan that you can localize to specify
37 the number of tests in a block.
44 %setup -q -n %{pdir}-%{pnam}-%{version}
48 destdir=$RPM_BUILD_ROOT \
52 %{?with_tests:./Build test}
55 rm -rf $RPM_BUILD_ROOT
60 rm -rf $RPM_BUILD_ROOT
63 %defattr(644,root,root,755)
65 %{perl_vendorlib}/Test/*.pm
66 #%%{perl_vendorlib}/Test/Block