]> git.pld-linux.org Git - packages/perl-Test-Block.git/blame - perl-Test-Block.spec
- added patch from rt.cpan for perl 5.24 (>= 5.23.8) compatibility
[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 10Name: perl-Test-Block
824742a0 11Version: 0.13
b9f2a8b0 12Release: 2
2a391858
MP
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
824742a0 17# Source0-md5: f4e289f7f2a333983f1e4d578d82f5a3
b9f2a8b0
JB
18# https://rt.cpan.org/Ticket/Attachment/1600903/856113/0001-Make-Test-Block-work-with-perl-5.23.8.patch
19Patch0: %{name}-perl5.24.patch
aceaa100 20URL: http://search.cpan.org/dist/Test-Block/
b9f2a8b0 21BuildRequires: perl-Module-Build >= 0.38
2a391858
MP
22BuildRequires: perl-devel >= 1:5.8.0
23BuildRequires: rpm-perlprov >= 4.1-13
24%if %{with tests}
b9f2a8b0
JB
25BuildRequires: perl(Test::Builder) >= 0.17
26BuildRequires: perl-Test-Builder-Tester >= 1.01
aceaa100 27BuildRequires: perl-Test-Exception >= 0.15
b9f2a8b0 28BuildRequires: perl-Test-Simple >= 0.47
2a391858 29%endif
296597a9 30Requires: perl-base
2a391858
MP
31BuildArch: noarch
32BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
296597a9 34%define _noautoreq perl(Tie::StdScalar)
35
2a391858 36%description
aceaa100
JB
37This module allows you to specify the number of expected tests at a
38finer level of granularity than an entire test script. It is built
39with Test::Builder and plays happily with Test::More and friends.
2a391858 40
aceaa100
JB
41%description -l pl.UTF-8
42Ten moduł pozwala na określanie liczby oczekiwanych testów na poziomie
43dokładniejszym niż cały skrypt testowy. Jest stworzony w oparciu o
44Test::Builder i dobrze współpracuje z Test::More oraz podobnymi.
2a391858
MP
45
46%prep
47%setup -q -n %{pdir}-%{pnam}-%{version}
b9f2a8b0 48%patch0 -p2
2a391858
MP
49
50%build
51%{__perl} Build.PL \
52 destdir=$RPM_BUILD_ROOT \
53 installdirs=vendor
54./Build
55
56%{?with_tests:./Build test}
57
58%install
59rm -rf $RPM_BUILD_ROOT
60
61./Build install
62
63%clean
64rm -rf $RPM_BUILD_ROOT
65
66%files
67%defattr(644,root,root,755)
68%doc Changes README
b9f2a8b0
JB
69%{perl_vendorlib}/Test/Block.pm
70%{_mandir}/man3/Test::Block.3pm*
This page took 0.102163 seconds and 4 git commands to generate.