From: Elan Ruusamäe Date: Tue, 25 Nov 2014 08:27:23 +0000 (+0200) Subject: use generic url X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=c95e482d0f02bb3261432ffe046514639658af44;p=packages%2Fperl-CGI-PSGI.git use generic url --- diff --git a/perl-CGI-PSGI.spec b/perl-CGI-PSGI.spec index dd1ca3a..4d18848 100644 --- a/perl-CGI-PSGI.spec +++ b/perl-CGI-PSGI.spec @@ -1,12 +1,11 @@ # # Conditional build: %bcond_without tests # do not perform "make test" -# + %define pdir CGI %define pnam PSGI %include /usr/lib/rpm/macros.perl Summary: CGI::PSGI - Adapt CGI.pm to the PSGI protocol -#Summary(pl.UTF-8): Name: perl-CGI-PSGI Version: 0.15 Release: 1 @@ -15,8 +14,7 @@ License: GPL v1+ or Artistic Group: Development/Languages/Perl Source0: http://www.cpan.org/modules/by-module/CGI/%{pdir}-%{pnam}-%{version}.tar.gz # Source0-md5: 58a39711add2b48229710688c5f81cfd -# generic URL, check or change before uncommenting -#URL: http://search.cpan.org/dist/CGI-PSGI/ +URL: http://search.cpan.org/dist/CGI-PSGI/ BuildRequires: perl-devel >= 1:5.8.0 BuildRequires: rpm-perlprov >= 4.1-13 %if %{with tests} @@ -25,27 +23,22 @@ BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description -This module is for web application framework developers who currently uses -CGI to handle query parameters, and would like for the frameworks to comply -with the PSGI protocol. +This module is for web application framework developers who currently +uses CGI to handle query parameters, and would like for the frameworks +to comply with the PSGI protocol. -Only slight modifications should be required if the framework is already -collecting the body content to print to STDOUT at one place (rather using -the print-as-you-go approach). +Only slight modifications should be required if the framework is +already collecting the body content to print to STDOUT at one place +(rather using the print-as-you-go approach). -On the other hand, if you are an "end user" of CGI.pm and have a CGI script -that you want to run under PSGI web servers, this module might not be what you -want. Take a look at CGI::Emulate::PSGI instead. +On the other hand, if you are an "end user" of CGI.pm and have a CGI +script that you want to run under PSGI web servers, this module might +not be what you want. Take a look at CGI::Emulate::PSGI instead. Your application, typically the web application framework adapter -should update the code to do CGI::PSGI->new($env) instead of -CGI->new to create a new CGI object. (This is similar to how -CGI::Fast object is initialized in a FastCGI environment.) - - - -# %description -l pl.UTF-8 -# TODO +should update the code to do CGI::PSGI->new($env) instead of CGI->new +to create a new CGI object. (This is similar to how CGI::Fast object +is initialized in a FastCGI environment.) %prep %setup -q -n %{pdir}-%{pnam}-%{version}