3 %bcond_without tests # do not perform "make test"
7 %include /usr/lib/rpm/macros.perl
8 Summary: CGI::Safe - safe method of using CGI.pm
9 Summary(pl.UTF-8): CGI::Safe - bezpieczny sposób używania CGI.pm
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: 67e055249e96845adc8858bee0bba785
18 URL: http://search.cpan.org/dist/CGI-Safe/
19 %{?with_tests:BuildRequires: perl-CGI >= 2.20}
20 BuildRequires: perl-devel >= 1:5.8.0
21 BuildRequires: rpm-perlprov >= 4.1-13
22 Requires: perl-CGI >= 2.20
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 This module makes running the CGI environment safer by eliminating
28 dangerous %%ENV variables and presetting certain CGI.pm globals (such
29 as disabling uploads by default and limiting POST data size).
31 %description -l pl.UTF-8
32 Ten moduł czyni uruchamianie środowiska CGI bezpieczniejszym poprzez
33 usuwanie niebezpiecznych zmiennych z %%ENV i ustawianie kilku
34 zmiennych globalnych CGI.pm (takich jak domyślne wyłączenie
35 przysyłania danych czy ograniczenie rozmiaru danych POST).
38 %setup -q -n %{pdir}-%{pnam}-%{version}
41 %{__perl} Makefile.PL \
46 %{?with_tests:%{__make} test}
49 rm -rf $RPM_BUILD_ROOT
52 DESTDIR=$RPM_BUILD_ROOT
55 rm -rf $RPM_BUILD_ROOT
58 %defattr(644,root,root,755)
60 %{perl_vendorlib}/CGI/Safe.pm