[perl-HTTP-Server-Simple-PSGI] Import.
corsepiu
corsepiu at fedoraproject.org
Mon Mar 14 16:14:03 UTC 2011
commit 1b60b9c4aeb9eb9c370b63a24a2cd99e6c5f488f
Author: Ralf Corsépius <corsepiu at fedoraproject.org>
Date: Mon Mar 14 17:13:49 2011 +0100
Import.
.gitignore | 1 +
perl-HTTP-Server-Simple-PSGI.spec | 53 +++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 55 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..65d3033 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/HTTP-Server-Simple-PSGI-0.14.tar.gz
diff --git a/perl-HTTP-Server-Simple-PSGI.spec b/perl-HTTP-Server-Simple-PSGI.spec
new file mode 100644
index 0000000..13bfdab
--- /dev/null
+++ b/perl-HTTP-Server-Simple-PSGI.spec
@@ -0,0 +1,53 @@
+Name: perl-HTTP-Server-Simple-PSGI
+Version: 0.14
+Release: 1%{?dist}
+Summary: PSGI handler for HTTP::Server::Simple
+License: GPL+ or Artistic
+Group: Development/Libraries
+URL: http://search.cpan.org/dist/HTTP-Server-Simple-PSGI/
+Source0: http://www.cpan.org/authors/id/M/MI/MIYAGAWA/HTTP-Server-Simple-PSGI-%{version}.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildArch: noarch
+BuildRequires: perl(ExtUtils::MakeMaker)
+BuildRequires: perl(HTTP::Server::Simple) >= 0.42
+BuildRequires: perl(Test::More)
+Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+%description
+HTTP::Server::Simple::PSGI is a HTTP::Server::Simple based HTTP server that
+can run PSGI applications. This module only depends on
+HTTP::Server::Simple, which itself doesn't depend on any non-core modules
+so it's best to be used as an embedded web server.
+
+%prep
+%setup -q -n HTTP-Server-Simple-PSGI-%{version}
+
+%build
+%{__perl} Makefile.PL INSTALLDIRS=vendor
+make %{?_smp_mflags}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
+
+find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
+find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
+
+%{_fixperms} $RPM_BUILD_ROOT/*
+
+%check
+make test
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root,-)
+%doc Changes README
+%{perl_vendorlib}/*
+%{_mandir}/man3/*
+
+%changelog
+* Sun Jan 16 2011 Ralf Corsépius <corsepiu at fedoraproject.org> 0.14-1
+- Initial Fedora package.
diff --git a/sources b/sources
index e69de29..58636e0 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+c26795112c9f616dbd37ece1c5895b55 HTTP-Server-Simple-PSGI-0.14.tar.gz
More information about the perl-devel
mailing list