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