2011-08-03 10:09:15 +00:00
|
|
|
#
|
2015-08-28 07:01:10 +00:00
|
|
|
# spec file for package perl-CGI-PSGI
|
2011-08-03 10:09:15 +00:00
|
|
|
#
|
2024-03-08 10:05:29 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2011-08-03 10:09:15 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2023-10-15 18:48:27 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-08-03 10:09:15 +00:00
|
|
|
#
|
|
|
|
|
2015-08-28 07:01:10 +00:00
|
|
|
|
2024-07-19 19:43:38 +00:00
|
|
|
%define cpan_name CGI-PSGI
|
2011-08-03 10:09:15 +00:00
|
|
|
Name: perl-CGI-PSGI
|
2024-07-19 19:43:38 +00:00
|
|
|
Version: 0.150.0
|
2015-08-28 07:01:10 +00:00
|
|
|
Release: 0
|
2024-07-19 19:43:38 +00:00
|
|
|
# 0.15 -> normalize -> 0.150.0
|
|
|
|
%define cpan_version 0.15
|
2023-10-15 18:48:27 +00:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2024-07-19 19:43:38 +00:00
|
|
|
Summary: Adapt CGI.pm to the PSGI protocol
|
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/M/MI/MIYAGAWA/%{cpan_name}-%{cpan_version}.tar.gz
|
2025-08-12 18:12:17 +02:00
|
|
|
Source100: README.md
|
2011-08-03 10:09:15 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2024-07-19 19:43:38 +00:00
|
|
|
BuildRequires: perl(CGI) >= 3.33
|
2023-10-15 18:48:27 +00:00
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42
|
|
|
|
BuildRequires: perl(Test::More) >= 0.88
|
|
|
|
Requires: perl(CGI) >= 3.33
|
2024-07-19 19:43:38 +00:00
|
|
|
Provides: perl(CGI::PSGI) = %{version}
|
|
|
|
%undefine __perllib_provides
|
2011-08-03 10:09:15 +00:00
|
|
|
%{perl_requires}
|
|
|
|
|
|
|
|
%description
|
2024-07-19 19:43:38 +00:00
|
|
|
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.
|
2011-08-03 10:09:15 +00:00
|
|
|
|
2024-07-19 19:43:38 +00:00
|
|
|
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.
|
|
|
|
|
|
|
|
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.)
|
2011-08-03 10:09:15 +00:00
|
|
|
|
|
|
|
%prep
|
2024-07-19 19:43:38 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
|
|
|
|
|
|
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
2011-08-03 10:09:15 +00:00
|
|
|
|
|
|
|
%build
|
2024-07-19 19:43:38 +00:00
|
|
|
PERL_USE_UNSAFE_INC=1 perl Makefile.PL INSTALLDIRS=vendor
|
|
|
|
%make_build
|
2011-08-03 10:09:15 +00:00
|
|
|
|
|
|
|
%check
|
2024-07-19 19:43:38 +00:00
|
|
|
make test
|
2011-08-03 10:09:15 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
2024-07-19 19:43:38 +00:00
|
|
|
%doc Changes README
|
2011-08-03 10:09:15 +00:00
|
|
|
|
|
|
|
%changelog
|