3 %bcond_without tests # do not perform "make test"
7 Summary: Test::Taint - tools to test taintedness
8 Summary(pl.UTF-8): Test::Taint - narzędzia do sprawdzania napiętnowania
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: d59152acb169a34640bec861fca170de
17 URL: https://metacpan.org/release/Test-Taint
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRequires: rpmbuild(macros) >= 1.745
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 Tainted data is data that comes from an unsafe source, such as the
25 command line, or, in the case of web apps, any GET or POST
26 transactions (see perlsec(1) man page for details on why tainted data
27 is bad, and how to untaint the data).
29 When you're writing unit tests for code that deals with tainted data,
30 you'll want to have a way to provide tainted data for your routines to
31 handle, and easy ways to check and report on the taintedness of your
32 data, in standard Test::More style.
34 %description -l pl.UTF-8
35 Dane napiętnowane to dane pochodzące z niebezpiecznego źródła, takiego
36 jak linia poleceń, lub, w przypadku aplikacji WWW, wszelkie transakcje
37 GET i POST (na stronie podręcznika perlsec(1) można znaleźć
38 dokładniejsze informacje dlaczego dane napiętnowane są złe i jak
39 pozbyć się z nich piętna).
41 Przy pisaniu testów jednostkowych dla kodu przetwarzającego dane
42 napiętnowane zwykle chcemy móc dostarczyć napiętnowane dane do
43 własnych funkcji i w łatwy sposób sprawdzić napiętnowanie naszych
44 danych w standardowym stylu Test::More.
47 %setup -q -n %{pdir}-%{pnam}-%{version}
50 %{__perl} Makefile.PL \
54 OPTIMIZE="%{rpmcflags}"
56 %{?with_tests:%{__make} test}
59 rm -rf $RPM_BUILD_ROOT
62 DESTDIR=$RPM_BUILD_ROOT
65 rm -rf $RPM_BUILD_ROOT
68 %defattr(644,root,root,755)
70 %{perl_vendorarch}/Test/Taint.pm
71 %dir %{perl_vendorarch}/auto/Test/Taint
72 %attr(755,root,root) %{perl_vendorarch}/auto/Test/Taint/Taint.so
73 %{_mandir}/man3/Test::Taint.3pm*