Initial push of CGI

This commit is contained in:
Marcela Mašláňová 2010-12-01 12:43:17 +01:00
parent b881ebc886
commit d4d47c9a85
3 changed files with 74 additions and 0 deletions

1
.gitignore vendored
View File

@ -0,0 +1 @@
/CGI.pm-3.50.tar.gz

72
perl-CGI.spec Normal file
View File

@ -0,0 +1,72 @@
Name: perl-CGI
Summary: Handle Common Gateway Interface requests and responses
Version: 3.50
Release: 1%{?dist}
License: GPL+ or Artistic
Group: Development/Libraries
Source0: http://search.cpan.org/CPAN/authors/id/L/LD/LDS/CGI.pm-%{version}.tar.gz
URL: http://search.cpan.org/dist/CGI
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
BuildArch: noarch
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Spec) >= 0.82
BuildRequires: perl(FCGI) >= 0.67
# test
BuildRequires: perl(Test::More) >= 0.80
%{?perl_default_filter}
%{?perl_default_subpackage_tests}
%description
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. Some HTML
generation utilities are included as well.
CGI.pm performs very well in in a vanilla CGI.pm environment and also comes
with built-in support for mod_perl and mod_perl2 as well as FastCGI.
%prep
%setup -q -n CGI.pm-%{version}
%{?filter_setup:
%filter_from_provides /^perl(Fh)$/d
%filter_from_provides /^perl(MultipartBuffer)$/d
%filter_from_provides /^perl(utf8)$/d
%filter_setup
}
iconv -f iso8859-1 -t utf-8 < Changes > Changes.1
mv Changes.1 Changes
sed -i 's?usr/bin perl?usr/bin/perl?' t/init.t
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
%{_fixperms} %{buildroot}/*
%check
make test
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc README Changes
%{perl_vendorlib}/*
%{_mandir}/man3/*.3*
%changelog
* Mon Nov 29 2010 Marcela Mašláňová <mmaslano@redhat.com> 3.50-1
- initial dual-life package

View File

@ -0,0 +1 @@
51d62c74b83e5b6a8b6f88b4e9334387 CGI.pm-3.50.tar.gz