3 %bcond_without tests # do not perform "make test"
6 %include /usr/lib/rpm/macros.perl
7 Summary: Taint - Perl utility extensions for tainted data
8 Summary(pl.UTF-8): Taint - rozszerzenia narzędziowe Perla dla napiętnowanych danych
12 License: not distributable
13 Group: Development/Languages/Perl
14 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{version}.tar.gz
15 # NoSource0-md5: e9b23bec1f15ee2f1e1d7309eb04ef92
17 URL: http://search.cpan.org/dist/Taint/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 Perl has the ability to mark data as 'tainted', as described in
25 perlsec(1). Perl will prevent tainted data from being used for some
26 operations, and you may wish to add such caution to your own code. The
27 routines in this module provide convenient ways to taint data and to
28 check data for taint. To remove the taint from data, use the method
29 described in perlsec(1), or use the make_extractor routine.
31 %description -l pl.UTF-8
32 Perl ma możliwość oznaczenia danych jako "napiętnowane" zgodnie z
33 opisem w perlsec(1). Interpreter nie pozwala na używanie
34 napiętnowanych danych w niektórych operacjach, a możemy chcieć dodać
35 taki warunek w swoim kodzie. Funkcje z tego modułu udostępniają
36 wygodne metody do piętnowania danych oraz sprawdzania danych pod tym
37 kątem. Aby usunąć piętno z danych można użyć metody opisanej w
38 perlsec(1) lub wywołać funkcję make_extractor.
41 %setup -q -n %{pdir}-%{version}
44 %{__perl} Makefile.PL \
48 # some tests fail - check again
49 %{?with_tests:%{__make} test}
52 rm -rf $RPM_BUILD_ROOT
55 DESTDIR=$RPM_BUILD_ROOT
58 rm -rf $RPM_BUILD_ROOT
61 %defattr(644,root,root,755)
62 %doc Changes README TODO
63 %{perl_vendorlib}/Taint.pm