3 %bcond_without tests # do not perform "make test"
5 %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 BuildRequires: perl-devel >= 1:5.8.0
18 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 Perl has the ability to mark data as 'tainted', as described in
24 perlsec(1). Perl will prevent tainted data from being used for some
25 operations, and you may wish to add such caution to your own code. The
26 routines in this module provide convenient ways to taint data and to
27 check data for taint. To remove the taint from data, use the method
28 described in perlsec(1), or use the make_extractor routine.
30 %description -l pl.UTF-8
31 Perl ma możliwość oznaczenia danych jako "napiętnowane" zgodnie z
32 opisem w perlsec(1). Interpreter nie pozwala na używanie
33 napiętnowanych danych w niektórych operacjach, a możemy chcieć dodać
34 taki warunek w swoim kodzie. Funkcje z tego modułu udostępniają
35 wygodne metody do piętnowania danych oraz sprawdzania danych pod tym
36 kątem. Aby usunąć piętno z danych można użyć metody opisanej w
37 perlsec(1) lub wywołać funkcję make_extractor.
40 %setup -q -n %{pdir}-%{version}
43 %{__perl} Makefile.PL \
47 # some tests fail - check again
48 %{?with_tests:%{__make} test}
51 rm -rf $RPM_BUILD_ROOT
54 DESTDIR=$RPM_BUILD_ROOT
57 rm -rf $RPM_BUILD_ROOT
60 %defattr(644,root,root,755)
61 %doc Changes README TODO
62 %{perl_vendorlib}/Taint.pm