3 %bcond_without tests # do not perform "make test"
7 Summary: CGI::PSGI - Adapt CGI.pm to the PSGI protocol
12 License: GPL v1+ or Artistic
13 Group: Development/Languages/Perl
14 Source0: http://www.cpan.org/modules/by-module/CGI/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5: 58a39711add2b48229710688c5f81cfd
16 URL: http://search.cpan.org/dist/CGI-PSGI/
17 BuildRequires: perl-devel >= 1:5.8.0
18 BuildRequires: rpm-perlprov >= 4.1-13
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 This module is for web application framework developers who currently
26 uses CGI to handle query parameters, and would like for the frameworks
27 to comply with the PSGI protocol.
29 Only slight modifications should be required if the framework is
30 already collecting the body content to print to STDOUT at one place
31 (rather using the print-as-you-go approach).
33 On the other hand, if you are an "end user" of CGI.pm and have a CGI
34 script that you want to run under PSGI web servers, this module might
35 not be what you want. Take a look at CGI::Emulate::PSGI instead.
37 Your application, typically the web application framework adapter
38 should update the code to do CGI::PSGI->new($env) instead of CGI->new
39 to create a new CGI object. (This is similar to how CGI::Fast object
40 is initialized in a FastCGI environment.)
43 %setup -q -n %{pdir}-%{pnam}-%{version}
46 %{__perl} Makefile.PL \
50 %{?with_tests:%{__make} test}
53 rm -rf $RPM_BUILD_ROOT
55 %{__make} pure_install \
56 DESTDIR=$RPM_BUILD_ROOT
59 rm -rf $RPM_BUILD_ROOT
62 %defattr(644,root,root,755)
64 %{perl_vendorlib}/CGI/*.pm