]> git.pld-linux.org Git - packages/perl-Taint.git/blob - perl-Taint.spec
926668dc922f042124882c7453d2cbc6a55144f2
[packages/perl-Taint.git] / perl-Taint.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4 #
5 %include        /usr/lib/rpm/macros.perl
6 %define         pdir    Taint
7 Summary:        Taint - Perl utility extensions for tainted data
8 Summary(pl.UTF-8):      Taint - rozszerzenia narzędziowe Perla dla napiętnowanych danych
9 Name:           perl-Taint
10 Version:        0.09
11 Release:        0.1
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
16 NoSource:       0
17 BuildRequires:  perl-devel >= 1:5.8.0
18 BuildRequires:  rpm-perlprov >= 4.1-13
19 BuildArch:      noarch
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
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.
29
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.
38
39 %prep
40 %setup -q -n %{pdir}-%{version}
41
42 %build
43 %{__perl} Makefile.PL \
44         INSTALLDIRS=vendor
45 %{__make}
46
47 # some tests fail - check again
48 %{?with_tests:%{__make} test}
49
50 %install
51 rm -rf $RPM_BUILD_ROOT
52
53 %{__make} install \
54         DESTDIR=$RPM_BUILD_ROOT
55
56 %clean
57 rm -rf $RPM_BUILD_ROOT
58
59 %files
60 %defattr(644,root,root,755)
61 %doc Changes README TODO
62 %{perl_vendorlib}/Taint.pm
63 %{_mandir}/man3/*
This page took 0.044526 seconds and 2 git commands to generate.