3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: CGI::Simple - a Simple totally OO CGI interface that is CGI.pm compliant
9 Summary(pl.UTF-8): CGI::Simple - prosty, zorientowany obiektowo interfejs CGI zgodny z CGI.pm
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/CGI/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: 50c50dbec87b822e3f2285e41cb23519
18 URL: http://search.cpan.org/dist/Cgi-Simple/
19 BuildRequires: perl-Module-Build
20 BuildRequires: perl-devel >= 1:5.8.0
21 BuildRequires: rpm-perlprov >= 4.1-13
23 BuildRequires: perl-IO-stringy
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 CGI::Simple provides a relatively lightweight drop in replacement for
30 CGI.pm. It shares an identical OO interface to CGI.pm for parameter
31 parsing, file upload, cookie handling and header generation. This
32 module is entirely object oriented, however a complete functional
33 interface is available by using the CGI::Simple::Standard module.
35 %description -l pl.UTF-8
36 CGI::Simple udostępnia w miarę lekki zamiennik CGI.pm. Współdzieli z
37 CGI.pm identyczny zorientowany obiektowo interfejs do analizy
38 parametrów, przesyłania plików, obsługi ciasteczek i generowania
39 nagłówków. Ten moduł jest w pełni zorientowany obiektowo, ale z
40 pełnym interfejsem funkcyjnym dostępnym poprzez moduł
41 CGI::Simple::Standard.
44 %setup -q -n %{pdir}-%{pnam}-%{version}
45 #setup -q -n Cgi-%{pnam}-%{version}
49 destdir=$RPM_BUILD_ROOT \
53 %{?with_tests:./Build test}
56 rm -rf $RPM_BUILD_ROOT
61 rm -rf $RPM_BUILD_ROOT
64 %defattr(644,root,root,755)
66 %{perl_vendorlib}/CGI/*.pm
67 %{perl_vendorlib}/CGI/Simple