%define pdir Test
%define pnam Block
Summary: Test::Block - Specify fine granularity test plans
-#Summary(pl):
+Summary(pl.UTF-8): Test::Block - określanie szczegółowych planów testów
Name: perl-Test-Block
-Version: 0.11
-Release: 1
+Version: 0.13
+Release: 3
# same as perl
License: GPL v1+ or Artistic
Group: Development/Languages/Perl
-Source0: http://www.cpan.org/modules/by-authors/id/A/AD/ADIE/Test-Block-0.11.tar.gz
-# Source0-md5: 386a722947f2c77f6157d1dea0338e35
+Source0: http://www.cpan.org/modules/by-module/Test/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: f4e289f7f2a333983f1e4d578d82f5a3
+# https://rt.cpan.org/Ticket/Attachment/1600903/856113/0001-Make-Test-Block-work-with-perl-5.23.8.patch
+Patch0: %{name}-perl5.24.patch
+URL: http://search.cpan.org/dist/Test-Block/
+BuildRequires: perl-Module-Build >= 0.38
BuildRequires: perl-devel >= 1:5.8.0
BuildRequires: rpm-perlprov >= 4.1-13
+BuildRequires: rpmbuild(macros) >= 1.672
%if %{with tests}
-BuildRequires: perl(Test::Builder::Tester) >= 1.01
-BuildRequires: perl(Test::Exception) >= 0.15
-BuildRequires: perl >= 5.6.1
+BuildRequires: perl(Test::Builder) >= 0.17
+BuildRequires: perl-Test-Builder-Tester >= 1.01
+BuildRequires: perl-Test-Exception >= 0.15
+BuildRequires: perl-Test-Simple >= 0.47
%endif
+Requires: perl-base
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-%description
-This module allows you to specify the number of expected tests at a finer level
-of granularity than an entire test script. It is built with Test::Builder and
-plays happily with Test::More and friends.
-
-If you are not already familiar with Test::More now would be the time to go
-take a look.
-
-Test::Block supplies a special variable $Plan that you can localize to specify
-the number of tests in a block.
+# provided by Tie::Scalar (perl-base)
+%define _noautoreq_perl Tie::StdScalar
+%description
+This module allows you to specify the number of expected tests at a
+finer level of granularity than an entire test script. It is built
+with Test::Builder and plays happily with Test::More and friends.
-# %description -l pl
-# TODO
+%description -l pl.UTF-8
+Ten moduł pozwala na określanie liczby oczekiwanych testów na poziomie
+dokładniejszym niż cały skrypt testowy. Jest stworzony w oparciu o
+Test::Builder i dobrze współpracuje z Test::More oraz podobnymi.
%prep
%setup -q -n %{pdir}-%{pnam}-%{version}
+%patch0 -p2
%build
%{__perl} Build.PL \
%files
%defattr(644,root,root,755)
%doc Changes README
-%{perl_vendorlib}/Test/*.pm
-#%%{perl_vendorlib}/Test/Block
-%{_mandir}/man3/*
+%{perl_vendorlib}/Test/Block.pm
+%{_mandir}/man3/Test::Block.3pm*