2010-09-14 22:44:12 +00:00
|
|
|
#
|
2011-11-10 11:51:31 +00:00
|
|
|
# spec file for package perl-CGI
|
2010-09-14 22:44:12 +00:00
|
|
|
#
|
2025-01-13 21:47:59 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2010-09-14 22:44:12 +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.
|
2009-12-09 16:23:48 +00:00
|
|
|
|
2019-03-27 07:23:26 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2010-09-14 22:44:12 +00:00
|
|
|
#
|
|
|
|
|
2011-11-10 11:51:31 +00:00
|
|
|
|
2021-05-06 06:57:35 +00:00
|
|
|
%define cpan_name CGI
|
- fix deps
* Test::More >= 0.88 (done_testing)
- fix build for
* openSUSE > 1140 (shebang), SLE_10, SLE_11, RHEL, CentOS
- remove Author from desc
- update to 3.55:
+ [THINGS THAT MAY BREAK YOUR CODE]
url() was fixed to return "PATH_INFO" when it is explicitly requested
with either the path=>1 or path_info=>1 flag.
If your code is running under mod_rewrite (or compatible) and you are
calling self_url() or you are calling url() and passing path_info=>1,
These methods will actually be returning PATH_INFO now, as you have
explicitly requested, or has self_url() has requested on your behalf.
The PATH_INFO has been omitted in such URLs since the issue was
introduced in the 3.12 release in December, 2005.
This bug is so old your application may have come to depend on it or
workaround it. Check for application before upgrading to this release.
+ The DELETE HTTP verb is now supported (RT#52614)
+ [NEW FEATURES]
- A new option to set $CGI::Carp::TO_BROWSER = 0, allows you to
explicitly exclude a particular scope from triggering printing to
the browser when fatatlsToBrowser is set. (RT#62783)
- The <script> tag now supports the "charset" attribute.
(RT#62907)
- In CGI::Cookie, "Max-Age" is now supported for better
spec compliance.
+ Further improvements have been made to guard against newline
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-CGI?expand=0&rev=12
2011-08-25 21:28:55 +00:00
|
|
|
Name: perl-CGI
|
2025-07-11 10:19:15 +00:00
|
|
|
Version: 4.700.0
|
2013-10-14 07:46:02 +00:00
|
|
|
Release: 0
|
2025-07-11 10:19:15 +00:00
|
|
|
# 4.70 -> normalize -> 4.700.0
|
|
|
|
%define cpan_version 4.70
|
2019-03-27 07:23:26 +00:00
|
|
|
License: Artistic-2.0
|
2023-01-27 10:13:46 +00:00
|
|
|
Summary: Handle Common Gateway Interface requests and responses
|
2020-03-18 20:48:53 +00:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2023-10-11 16:41:19 +00:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/L/LE/LEEJO/%{cpan_name}-%{cpan_version}.tar.gz
|
2016-06-12 14:06:25 +00:00
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:12:14 +02:00
|
|
|
Source100: README.md
|
2015-08-26 13:02:30 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: perl
|
2011-08-23 19:45:58 +00:00
|
|
|
BuildRequires: perl-macros
|
2016-06-23 14:45:43 +00:00
|
|
|
BuildRequires: perl(File::Temp) >= 0.17
|
2025-04-15 07:45:30 +00:00
|
|
|
BuildRequires: perl(HTML::Entities) >= 3.690
|
2016-06-12 14:06:25 +00:00
|
|
|
BuildRequires: perl(Test::More) >= 0.98
|
2017-04-07 07:49:28 +00:00
|
|
|
BuildRequires: perl(Test::NoWarnings)
|
2025-06-17 10:45:18 +00:00
|
|
|
BuildRequires: perl(Test::Warn) >= 0.300
|
2025-04-15 07:45:30 +00:00
|
|
|
BuildRequires: perl(URI) >= 1.760
|
2014-12-04 16:17:24 +00:00
|
|
|
BuildRequires: perl(parent) >= 0.225
|
2016-06-23 14:45:43 +00:00
|
|
|
Requires: perl(File::Temp) >= 0.17
|
2025-04-15 07:45:30 +00:00
|
|
|
Requires: perl(HTML::Entities) >= 3.690
|
|
|
|
Requires: perl(URI) >= 1.760
|
2014-12-04 16:17:24 +00:00
|
|
|
Requires: perl(parent) >= 0.225
|
2023-10-11 16:41:19 +00:00
|
|
|
Provides: perl(CGI)
|
2023-12-01 10:43:25 +00:00
|
|
|
Provides: perl(CGI::Carp) = %{version}
|
2023-10-11 16:41:19 +00:00
|
|
|
Provides: perl(CGI::Cookie)
|
2023-12-01 10:43:25 +00:00
|
|
|
Provides: perl(CGI::File::Temp) = %{version}
|
2023-10-11 16:41:19 +00:00
|
|
|
Provides: perl(CGI::HTML::Functions)
|
|
|
|
Provides: perl(CGI::MultipartBuffer)
|
2023-12-01 10:43:25 +00:00
|
|
|
Provides: perl(CGI::Pretty) = %{version}
|
2023-10-11 16:41:19 +00:00
|
|
|
Provides: perl(CGI::Push)
|
2025-06-17 10:45:18 +00:00
|
|
|
Provides: perl(CGI::Util) = %{version}
|
2023-12-01 10:43:25 +00:00
|
|
|
Provides: perl(Fh) = %{version}
|
2024-04-06 12:51:19 +00:00
|
|
|
%undefine __perllib_provides
|
2011-08-23 19:45:58 +00:00
|
|
|
%{perl_requires}
|
2008-07-26 00:18:46 +00:00
|
|
|
|
|
|
|
%description
|
2014-12-04 16:17:24 +00:00
|
|
|
CGI.pm is a stable, complete and mature solution for processing and
|
|
|
|
preparing HTTP requests and responses. Major features including processing
|
|
|
|
form submissions, file uploads, reading and writing cookies, query string
|
|
|
|
generation and manipulation, and processing and preparing HTTP headers.
|
2010-09-14 22:44:12 +00:00
|
|
|
|
2014-12-04 16:17:24 +00:00
|
|
|
CGI.pm performs very well in a vanilla CGI.pm environment and also comes
|
2010-09-14 22:44:12 +00:00
|
|
|
with built-in support for mod_perl and mod_perl2 as well as FastCGI.
|
|
|
|
|
2015-08-26 13:02:30 +00:00
|
|
|
It has the benefit of having developed and refined over 20 years with input
|
2014-12-04 16:17:24 +00:00
|
|
|
from dozens of contributors and being deployed on thousands of websites.
|
2015-08-26 13:02:30 +00:00
|
|
|
CGI.pm was included in the perl distribution from perl v5.4 to v5.20,
|
|
|
|
however is has now been removed from the perl core...
|
2014-12-04 16:17:24 +00:00
|
|
|
|
2008-07-26 00:18:46 +00:00
|
|
|
%prep
|
2025-06-17 10:45:18 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{cpan_version} -p1
|
2023-03-10 10:43:08 +00:00
|
|
|
|
2023-05-03 15:21:47 +00:00
|
|
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
2008-07-26 00:18:46 +00:00
|
|
|
|
|
|
|
%build
|
2019-03-27 07:23:26 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
2021-05-06 06:57:35 +00:00
|
|
|
%make_build
|
2008-11-30 02:47:58 +00:00
|
|
|
|
|
|
|
%check
|
2019-03-27 07:23:26 +00:00
|
|
|
make test
|
2008-07-26 00:18:46 +00:00
|
|
|
|
|
|
|
%install
|
2008-11-30 02:47:58 +00:00
|
|
|
%perl_make_install
|
2011-08-23 19:45:58 +00:00
|
|
|
%perl_process_packlist
|
2009-12-09 16:23:48 +00:00
|
|
|
%perl_gen_filelist
|
2008-07-26 00:18:46 +00:00
|
|
|
|
2009-12-09 16:23:48 +00:00
|
|
|
%files -f %{name}.files
|
2017-04-07 07:49:28 +00:00
|
|
|
%doc Changes examples README.md
|
|
|
|
%license LICENSE
|
2010-09-14 22:44:12 +00:00
|
|
|
|
|
|
|
%changelog
|