]>
Commit | Line | Data |
---|---|---|
2a391858 MP |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
5 | %include /usr/lib/rpm/macros.perl | |
6 | %define pdir Test | |
7 | %define pnam Block | |
8 | Summary: Test::Block - Specify fine granularity test plans | |
aceaa100 | 9 | Summary(pl.UTF-8): Test::Block - określanie szczegółowych planów testów |
2a391858 | 10 | Name: perl-Test-Block |
824742a0 | 11 | Version: 0.13 |
12 | Release: 1 | |
2a391858 MP |
13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
15 | Group: Development/Languages/Perl | |
aceaa100 | 16 | Source0: http://www.cpan.org/modules/by-module/Test/%{pdir}-%{pnam}-%{version}.tar.gz |
824742a0 | 17 | # Source0-md5: f4e289f7f2a333983f1e4d578d82f5a3 |
aceaa100 | 18 | URL: http://search.cpan.org/dist/Test-Block/ |
2a391858 MP |
19 | BuildRequires: perl-devel >= 1:5.8.0 |
20 | BuildRequires: rpm-perlprov >= 4.1-13 | |
21 | %if %{with tests} | |
22 | BuildRequires: perl(Test::Builder::Tester) >= 1.01 | |
aceaa100 | 23 | BuildRequires: perl-Test-Exception >= 0.15 |
2a391858 | 24 | %endif |
296597a9 | 25 | Requires: perl-base |
2a391858 MP |
26 | BuildArch: noarch |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
28 | ||
296597a9 | 29 | %define _noautoreq perl(Tie::StdScalar) |
30 | ||
2a391858 | 31 | %description |
aceaa100 JB |
32 | This module allows you to specify the number of expected tests at a |
33 | finer level of granularity than an entire test script. It is built | |
34 | with Test::Builder and plays happily with Test::More and friends. | |
2a391858 | 35 | |
aceaa100 JB |
36 | %description -l pl.UTF-8 |
37 | Ten moduł pozwala na określanie liczby oczekiwanych testów na poziomie | |
38 | dokładniejszym niż cały skrypt testowy. Jest stworzony w oparciu o | |
39 | Test::Builder i dobrze współpracuje z Test::More oraz podobnymi. | |
2a391858 MP |
40 | |
41 | %prep | |
42 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
43 | ||
44 | %build | |
45 | %{__perl} Build.PL \ | |
46 | destdir=$RPM_BUILD_ROOT \ | |
47 | installdirs=vendor | |
48 | ./Build | |
49 | ||
50 | %{?with_tests:./Build test} | |
51 | ||
52 | %install | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | ||
55 | ./Build install | |
56 | ||
57 | %clean | |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
60 | %files | |
61 | %defattr(644,root,root,755) | |
62 | %doc Changes README | |
63 | %{perl_vendorlib}/Test/*.pm | |
2a391858 | 64 | %{_mandir}/man3/* |