]> git.pld-linux.org Git - packages/perl-Test-Taint.git/blame - perl-Test-Taint.spec
rebuild with perl 5.32
[packages/perl-Test-Taint.git] / perl-Test-Taint.spec
CommitLineData
496de956
MP
1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
ff0dbeb6 4
00a19bf8 5%define pdir Test
6%define pnam Taint
f856bb2d 7Summary: Test::Taint - tools to test taintedness
edc84c6f 8Summary(pl.UTF-8): Test::Taint - narzędzia do sprawdzania napiętnowania
496de956 9Name: perl-Test-Taint
3870a865 10Version: 1.08
1451c0ed 11Release: 3
f856bb2d
JB
12# same as perl
13License: GPL v1+ or Artistic
496de956 14Group: Development/Languages/Perl
fcbbcc1e 15Source0: http://www.cpan.org/modules/by-module/Test/%{pdir}-%{pnam}-%{version}.tar.gz
3870a865 16# Source0-md5: d59152acb169a34640bec861fca170de
8d8f5b36 17URL: https://metacpan.org/release/Test-Taint
496de956
MP
18BuildRequires: perl-devel >= 1:5.8.0
19BuildRequires: rpm-perlprov >= 4.1-13
8d8f5b36 20BuildRequires: rpmbuild(macros) >= 1.745
496de956
MP
21BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23%description
f856bb2d
JB
24Tainted data is data that comes from an unsafe source, such as the
25command line, or, in the case of web apps, any GET or POST
26transactions (see perlsec(1) man page for details on why tainted data
27is bad, and how to untaint the data).
28
29When you're writing unit tests for code that deals with tainted data,
30you'll want to have a way to provide tainted data for your routines to
31handle, and easy ways to check and report on the taintedness of your
32data, in standard Test::More style.
33
caf1224b
JR
34%description -l pl.UTF-8
35Dane napiętnowane to dane pochodzące z niebezpiecznego źródła, takiego
36jak linia poleceń, lub, w przypadku aplikacji WWW, wszelkie transakcje
37GET i POST (na stronie podręcznika perlsec(1) można znaleźć
38dokładniejsze informacje dlaczego dane napiętnowane są złe i jak
39pozbyć się z nich piętna).
f856bb2d 40
caf1224b
JR
41Przy pisaniu testów jednostkowych dla kodu przetwarzającego dane
42napiętnowane zwykle chcemy móc dostarczyć napiętnowane dane do
43własnych funkcji i w łatwy sposób sprawdzić napiętnowanie naszych
f856bb2d 44danych w standardowym stylu Test::More.
496de956
MP
45
46%prep
47%setup -q -n %{pdir}-%{pnam}-%{version}
48
49%build
50%{__perl} Makefile.PL \
51 INSTALLDIRS=vendor
496de956 52%{__make} \
729412be 53 CC="%{__cc}" \
496de956
MP
54 OPTIMIZE="%{rpmcflags}"
55
56%{?with_tests:%{__make} test}
57
58%install
59rm -rf $RPM_BUILD_ROOT
60
61%{__make} install \
62 DESTDIR=$RPM_BUILD_ROOT
63
64%clean
65rm -rf $RPM_BUILD_ROOT
66
67%files
68%defattr(644,root,root,755)
69%doc Changes
70%{perl_vendorarch}/Test/Taint.pm
f856bb2d 71%dir %{perl_vendorarch}/auto/Test/Taint
496de956 72%attr(755,root,root) %{perl_vendorarch}/auto/Test/Taint/Taint.so
c22d9e4c 73%{_mandir}/man3/Test::Taint.3pm*
This page took 0.083202 seconds and 4 git commands to generate.