3 %bcond_without tests # do not perform "make test"
7 Summary: Test::Strict - Check syntax, presence of use strict; and test coverage
8 Summary(pl.UTF-8): Test::Strict - sprawdzanie składni, obecności "use strict" i pokrycia testami
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/Test/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 739d91c3404e341245ebd0a0081ddc31
17 URL: http://search.cpan.org/dist/Test-Strict/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRequires: perl-Devel-Cover >= 0.43
22 BuildRequires: perl-Scalar-List-Utils
23 BuildRequires: perl-Test-Pod >= 1.48
24 BuildRequires: perl-Test-Pod-Coverage >= 1.10
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 The most basic test one can write is "does it compile?". This module
31 tests if the code compiles and play nice with Test::Simple modules.
33 Another good practice this module can test is to "use strict;" in all
36 By setting a minimum test coverage through all_cover_ok(), a code
37 author can ensure his code is tested above a preset level of quality
38 throughout the development cycle.
40 Along with Test::Pod, this module can provide the first tests to setup
43 %description -l pl.UTF-8
44 Najbardziej podstawowym testem, który można napisać, to "czy to się
45 kompiluje?". Ten moduł sprawdza więc, czy kod się kompiluje i dobrze
46 współpracuje z modułami Test::Simple.
48 Inną dobrą praktyką, jaką może testować ten moduł, to czy wszystkie
49 pliki perlowe zawierają "use strict;".
51 Ustawiając minimalne pokrycie testami poprzez all_cover_ok(), autor
52 kodu może upewnić się, że jego kod jest testowany pod kątem
53 określonego poziomu jakości.
55 Wraz z Test::Pod ten moduł może zapewnić autorom modułów pierwsze
59 %setup -q -n %{pdir}-%{pnam}-%{version}
62 %{__perl} Makefile.PL \
66 %{?with_tests:%{__make} test}
69 rm -rf $RPM_BUILD_ROOT
72 DESTDIR=$RPM_BUILD_ROOT
75 rm -rf $RPM_BUILD_ROOT
78 %defattr(644,root,root,755)
80 %{perl_vendorlib}/Test/Strict.pm
81 %{_mandir}/man3/Test::Strict.3pm*