From 8ab230e0ad4f5ead9e8add65ef0f53d19f7a95f5 Mon Sep 17 00:00:00 2001 From: Chris Weyl Date: Apr 05 2010 04:41:44 +0000 Subject: initial import --- diff --git a/.cvsignore b/.cvsignore index e69de29..1c0b348 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +CGI-Emulate-PSGI-0.06.tar.gz diff --git a/import.log b/import.log new file mode 100644 index 0000000..e022735 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +perl-CGI-Emulate-PSGI-0_06-1_fc12:F-13:perl-CGI-Emulate-PSGI-0.06-1.fc12.src.rpm:1270442499 diff --git a/perl-CGI-Emulate-PSGI.spec b/perl-CGI-Emulate-PSGI.spec new file mode 100644 index 0000000..afd1599 --- /dev/null +++ b/perl-CGI-Emulate-PSGI.spec @@ -0,0 +1,67 @@ +Name: perl-CGI-Emulate-PSGI +Summary: PSGI adapter for CGI applications +Version: 0.06 +Release: 1%{?dist} +License: GPL+ or Artistic +Group: Development/Libraries +Source0: http://search.cpan.org/CPAN/authors/id/M/MI/MIYAGAWA/CGI-Emulate-PSGI-%{version}.tar.gz +URL: http://search.cpan.org/dist/CGI-Emulate-PSGI +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +BuildArch: noarch + +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42 +BuildRequires: perl(HTTP::Response) +BuildRequires: perl(Test::More) + +Requires: perl(HTTP::Response) + +%{?perl_default_filter} +%{?perl_default_subpackage_tests} + +%description +This module allows an application designed for the CGI environment to +run in a PSGI environment, and thus on any of the backends that PSGI +supports. + +It works by translating the environment provided by the PSGI +specification to one expected by the CGI specification. Likewise, it +captures output as it would be prepared for the CGI standard, and +translates it to the format expected for the PSGI standard using +the CGI::Parse::PSGI module. + + +%prep +%setup -q -n CGI-Emulate-PSGI-%{version} + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +rm -rf %{buildroot} + +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 Changes README +%{perl_vendorlib}/* +%{_mandir}/man3/*.3* + +%changelog +* Sat Mar 20 2010 Chris Weyl 0.06-1 +- specfile by Fedora::App::MaintainerTools 0.006 + + diff --git a/sources b/sources index e69de29..d3ca6e9 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +8643aba10fe775ece7893982de7f6178 CGI-Emulate-PSGI-0.06.tar.gz