|
|
d4d47c9 |
Name: perl-CGI
|
|
|
d4d47c9 |
Summary: Handle Common Gateway Interface requests and responses
|
|
|
2e05079 |
Version: 3.52
|
|
|
2e05079 |
Release: 203%{?dist}
|
|
|
d4d47c9 |
License: GPL+ or Artistic
|
|
|
d4d47c9 |
Group: Development/Libraries
|
|
|
c1544ab |
Source0: http://search.cpan.org/CPAN/authors/id/M/MA/MARKSTOS/CGI.pm-%{version}.tar.gz
|
|
|
206c516 |
# CVE-2012-5526, RHBZ #876974
|
|
|
2e05079 |
Patch0: CGI-3.51-CVE-2012-5526.patch
|
|
|
d4d47c9 |
URL: http://search.cpan.org/dist/CGI
|
|
|
d4d47c9 |
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
d4d47c9 |
BuildArch: noarch
|
|
|
d4d47c9 |
|
|
|
d4d47c9 |
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
d4d47c9 |
BuildRequires: perl(File::Spec) >= 0.82
|
|
|
d4d47c9 |
BuildRequires: perl(FCGI) >= 0.67
|
|
|
d4d47c9 |
# test
|
|
|
d4d47c9 |
BuildRequires: perl(Test::More) >= 0.80
|
|
|
c1544ab |
Obsoletes: %{name}-tests <= 3.49
|
|
|
d4d47c9 |
|
|
|
d4d47c9 |
%{?perl_default_filter}
|
|
|
d4d47c9 |
|
|
|
d4d47c9 |
%description
|
|
|
d4d47c9 |
CGI.pm is a stable, complete and mature solution for processing and preparing
|
|
|
d4d47c9 |
HTTP requests and responses. Major features including processing form
|
|
|
d4d47c9 |
submissions, file uploads, reading and writing cookies, query string generation
|
|
|
d4d47c9 |
and manipulation, and processing and preparing HTTP headers. Some HTML
|
|
|
d4d47c9 |
generation utilities are included as well.
|
|
|
d4d47c9 |
|
|
|
d4d47c9 |
CGI.pm performs very well in in a vanilla CGI.pm environment and also comes
|
|
|
d4d47c9 |
with built-in support for mod_perl and mod_perl2 as well as FastCGI.
|
|
|
d4d47c9 |
|
|
|
d4d47c9 |
%prep
|
|
|
d4d47c9 |
%setup -q -n CGI.pm-%{version}
|
|
|
a228742 |
%patch0 -p1
|
|
|
d4d47c9 |
|
|
|
1b044aa |
# RPM 4.8 style
|
|
|
d4d47c9 |
%{?filter_setup:
|
|
|
d4d47c9 |
%filter_from_provides /^perl(Fh)$/d
|
|
|
d4d47c9 |
%filter_from_provides /^perl(MultipartBuffer)$/d
|
|
|
d4d47c9 |
%filter_from_provides /^perl(utf8)$/d
|
|
|
d4d47c9 |
%filter_setup
|
|
|
d4d47c9 |
}
|
|
|
1b044aa |
# RPM 4.9 style
|
|
|
1b044aa |
%global __provides_exclude %{?__provides_exclude:__provides_exclude|}^perl\\(Fh\\)$
|
|
|
1b044aa |
%global __provides_exclude %__provides_exclude|^perl\\(MultipartBuffer\\)$
|
|
|
1b044aa |
%global __provides_exclude %__provides_exclude|^perl\\(utf8\\)$
|
|
|
d4d47c9 |
|
|
|
d4d47c9 |
iconv -f iso8859-1 -t utf-8 < Changes > Changes.1
|
|
|
d4d47c9 |
mv Changes.1 Changes
|
|
|
d4d47c9 |
sed -i 's?usr/bin perl?usr/bin/perl?' t/init.t
|
|
|
d4d47c9 |
|
|
|
d4d47c9 |
%build
|
|
|
d4d47c9 |
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
d4d47c9 |
make %{?_smp_mflags}
|
|
|
d4d47c9 |
|
|
|
d4d47c9 |
%install
|
|
|
d4d47c9 |
make pure_install DESTDIR=%{buildroot}
|
|
|
d4d47c9 |
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
|
|
|
d4d47c9 |
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
|
|
|
d4d47c9 |
|
|
|
d4d47c9 |
%{_fixperms} %{buildroot}/*
|
|
|
d4d47c9 |
|
|
|
d4d47c9 |
%check
|
|
|
d4d47c9 |
make test
|
|
|
d4d47c9 |
|
|
|
d4d47c9 |
|
|
|
d4d47c9 |
%clean
|
|
|
d4d47c9 |
rm -rf %{buildroot}
|
|
|
d4d47c9 |
|
|
|
d4d47c9 |
%files
|
|
|
d4d47c9 |
%defattr(-,root,root,-)
|
|
|
d4d47c9 |
%doc README Changes
|
|
|
d4d47c9 |
%{perl_vendorlib}/*
|
|
|
d4d47c9 |
%{_mandir}/man3/*.3*
|
|
|
d4d47c9 |
|
|
|
d4d47c9 |
%changelog
|
|
|
2e05079 |
* Mon Nov 26 2012 Petr Pisar <ppisar@redhat.com> - 3.52-203
|
|
|
2e05079 |
- 3.52 bump
|
|
|
2e05079 |
- Fix CVE-2012-5526 (escape new-lines in Set-Cookie and P3P response headers
|
|
|
2e05079 |
properly (bug #876974)
|
|
|
2e05079 |
|
|
|
206c516 |
* Fri Nov 16 2012 Petr Pisar <ppisar@redhat.com> - 3.51-6
|
|
|
206c516 |
- Improper new-line escaping in Set-Cookie and P3P headers is known as
|
|
|
206c516 |
CVE-2012-5526 (bug #876974)
|
|
|
206c516 |
|
|
|
a228742 |
* Thu Nov 15 2012 Petr Pisar <ppisar@redhat.com> - 3.51-5
|
|
|
a228742 |
- Escape new-lines in Set-Cookie and P3P response headers properly (bug #876974)
|
|
|
a228742 |
|
|
|
1b044aa |
* Fri Jul 22 2011 Petr Pisar <ppisar@redhat.com> - 3.51-4
|
|
|
1b044aa |
- RPM 4.9 dependency filtering added
|
|
|
1b044aa |
|
|
|
4541ecf |
* Mon Jun 20 2011 Marcela Mašláňová <mmaslano@redhat.com> - 3.51-3
|
|
|
4541ecf |
- Perl mass rebuild
|
|
|
4541ecf |
|
|
|
f5f3ba9 |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.51-2
|
|
|
f5f3ba9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
f5f3ba9 |
|
|
|
c1544ab |
* Thu Jan 20 2011 Marcela Mašláňová <mmaslano@redhat.com> 3.51-1
|
|
|
c1544ab |
- update to fix CVE-2010-2761
|
|
|
c1544ab |
|
|
|
23c3507 |
* Mon Nov 29 2010 Marcela Mašláňová <mmaslano@redhat.com> 3.50-2
|
|
|
23c3507 |
- remove -test sub-package, which would be needed also in perl-core
|
|
|
23c3507 |
|
|
|
d4d47c9 |
* Mon Nov 29 2010 Marcela Mašláňová <mmaslano@redhat.com> 3.50-1
|
|
|
d4d47c9 |
- initial dual-life package
|
|
|
d4d47c9 |
|