commit d4d47c9a85a267906f451b5e80fb7104cb3899e1
Author: Marcela Mašláňová <mmasl...@redhat.com>
Date:   Wed Dec 1 12:43:17 2010 +0100

    Initial push of CGI

 .gitignore    |    1 +
 perl-CGI.spec |   72 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources       |    1 +
 3 files changed, 74 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..3860bb8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/CGI.pm-3.50.tar.gz
diff --git a/perl-CGI.spec b/perl-CGI.spec
new file mode 100644
index 0000000..ccd2af5
--- /dev/null
+++ b/perl-CGI.spec
@@ -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á <mmasl...@redhat.com> 3.50-1
+- initial dual-life package
+
diff --git a/sources b/sources
index e69de29..9e50bbe 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+51d62c74b83e5b6a8b6f88b4e9334387  CGI.pm-3.50.tar.gz
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-de...@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/perl-devel

Reply via email to