]> git.pld-linux.org Git - packages/perl-CGI-Safe.git/blame - perl-CGI-Safe.spec
use generic url
[packages/perl-CGI-Safe.git] / perl-CGI-Safe.spec
CommitLineData
41e6f9ba
JB
1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
79a721ba 4
58724925 5%define pdir CGI
6%define pnam Safe
79a721ba 7%include /usr/lib/rpm/macros.perl
41e6f9ba 8Summary: CGI::Safe - safe method of using CGI.pm
f9e70d94 9Summary(pl.UTF-8): CGI::Safe - bezpieczny sposób używania CGI.pm
41e6f9ba 10Name: perl-CGI-Safe
0391ed62 11Version: 1.25
3fdaa488 12Release: 2
41e6f9ba 13# same as perl
40fc0143 14License: GPL v1+ or Artistic
41e6f9ba
JB
15Group: Development/Languages/Perl
16Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
0391ed62 17# Source0-md5: 67e055249e96845adc8858bee0bba785
79a721ba 18URL: http://search.cpan.org/dist/CGI-Safe/
41e6f9ba
JB
19%{?with_tests:BuildRequires: perl-CGI >= 2.20}
20BuildRequires: perl-devel >= 1:5.8.0
21BuildRequires: rpm-perlprov >= 4.1-13
22Requires: perl-CGI >= 2.20
23BuildArch: noarch
24BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26%description
27This module makes running the CGI environment safer by eliminating
28dangerous %%ENV variables and presetting certain CGI.pm globals (such
29as disabling uploads by default and limiting POST data size).
30
7cb7bb67
JR
31%description -l pl.UTF-8
32Ten moduł czyni uruchamianie środowiska CGI bezpieczniejszym poprzez
41e6f9ba 33usuwanie niebezpiecznych zmiennych z %%ENV i ustawianie kilku
7cb7bb67
JR
34zmiennych globalnych CGI.pm (takich jak domyślne wyłączenie
35przysyłania danych czy ograniczenie rozmiaru danych POST).
41e6f9ba
JB
36
37%prep
38%setup -q -n %{pdir}-%{pnam}-%{version}
39
40%build
41%{__perl} Makefile.PL \
42 INSTALLDIRS=vendor
43
44%{__make}
45
46%{?with_tests:%{__make} test}
47
48%install
49rm -rf $RPM_BUILD_ROOT
50
51%{__make} install \
52 DESTDIR=$RPM_BUILD_ROOT
53
54%clean
55rm -rf $RPM_BUILD_ROOT
56
57%files
58%defattr(644,root,root,755)
59%doc Changes README
60%{perl_vendorlib}/CGI/Safe.pm
61%{_mandir}/man3/*
This page took 0.094944 seconds and 4 git commands to generate.