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
9 Summary(pl.UTF-8): Test::Block - określanie szczegółowych planów testów
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/Test/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: 386a722947f2c77f6157d1dea0338e35
18 URL: http://search.cpan.org/dist/Test-Block/
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
22 BuildRequires: perl(Test::Builder::Tester) >= 1.01
23 BuildRequires: perl-Test-Exception >= 0.15
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 This module allows you to specify the number of expected tests at a
30 finer level of granularity than an entire test script. It is built
31 with Test::Builder and plays happily with Test::More and friends.
33 %description -l pl.UTF-8
34 Ten moduł pozwala na określanie liczby oczekiwanych testów na poziomie
35 dokładniejszym niż cały skrypt testowy. Jest stworzony w oparciu o
36 Test::Builder i dobrze współpracuje z Test::More oraz podobnymi.
39 %setup -q -n %{pdir}-%{pnam}-%{version}
43 destdir=$RPM_BUILD_ROOT \
47 %{?with_tests:./Build test}
50 rm -rf $RPM_BUILD_ROOT
55 rm -rf $RPM_BUILD_ROOT
58 %defattr(644,root,root,755)
60 %{perl_vendorlib}/Test/*.pm