]>
Commit | Line | Data |
---|---|---|
80ef023a | 1 | # |
2 | # Conditional build: | |
3fead8fa | 3 | %bcond_without tests # do not perform "make test" |
c7beac39 | 4 | |
bae7b59d | 5 | %define pdir Taint |
c7beac39 | 6 | %include /usr/lib/rpm/macros.perl |
99a5f761 | 7 | Summary: Taint - Perl utility extensions for tainted data |
9e4c09aa | 8 | Summary(pl.UTF-8): Taint - rozszerzenia narzędziowe Perla dla napiętnowanych danych |
80ef023a | 9 | Name: perl-Taint |
99a5f761 | 10 | Version: 0.09 |
80ef023a | 11 | Release: 0.1 |
5eb449e3 | 12 | License: not distributable |
80ef023a | 13 | Group: Development/Languages/Perl |
14 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{version}.tar.gz | |
5eb449e3 | 15 | # NoSource0-md5: e9b23bec1f15ee2f1e1d7309eb04ef92 |
16 | NoSource: 0 | |
c7beac39 | 17 | URL: http://search.cpan.org/dist/Taint/ |
c2fdac3f | 18 | BuildRequires: perl-devel >= 1:5.8.0 |
99a5f761 | 19 | BuildRequires: rpm-perlprov >= 4.1-13 |
80ef023a | 20 | BuildArch: noarch |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
80ef023a | 23 | %description |
99a5f761 JB |
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. | |
80ef023a | 30 | |
73ff9aeb JR |
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. | |
80ef023a | 39 | |
40 | %prep | |
41 | %setup -q -n %{pdir}-%{version} | |
42 | ||
43 | %build | |
99a5f761 JB |
44 | %{__perl} Makefile.PL \ |
45 | INSTALLDIRS=vendor | |
80ef023a | 46 | %{__make} |
80ef023a | 47 | |
3fead8fa | 48 | # some tests fail - check again |
49 | %{?with_tests:%{__make} test} | |
80ef023a | 50 | |
51 | %install | |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | ||
54 | %{__make} install \ | |
55 | DESTDIR=$RPM_BUILD_ROOT | |
56 | ||
57 | %clean | |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
60 | %files | |
61 | %defattr(644,root,root,755) | |
99a5f761 JB |
62 | %doc Changes README TODO |
63 | %{perl_vendorlib}/Taint.pm | |
80ef023a | 64 | %{_mandir}/man3/* |