commit 45166fdb161f587956ec375e089ef5aadfa6c9f8 Author: Ralf CorsÃpius <corsepiu@xxxxxxxxxxxxxxxxx> Date: Sun Feb 27 07:09:42 2011 +0100 Import. .gitignore | 1 + perl-Starlet.spec | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 62 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..dc34c58 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Starlet-0.13.tar.gz diff --git a/perl-Starlet.spec b/perl-Starlet.spec new file mode 100644 index 0000000..e7619c6 --- /dev/null +++ b/perl-Starlet.spec @@ -0,0 +1,60 @@ +Name: perl-Starlet +Version: 0.13 +Release: 1%{?dist} +Summary: Simple, high-performance PSGI/Plack HTTP server +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Starlet/ +Source0: http://www.cpan.org/authors/id/K/KA/KAZUHO/Starlet-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch + +BuildRequires: /usr/bin/start_server +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Parallel::Prefork) >= 0.07 +BuildRequires: perl(Plack) >= 0.992 +BuildRequires: perl(Server::Starter) >= 0.06 +BuildRequires: perl(Test::More) >= 0.88 +BuildRequires: perl(Test::TCP) >= 0.15 +#Requires: perl(Parallel::Prefork) >= 0.07 +#Requires: perl(Plack) >= 0.992 +#Requires: perl(Server::Starter) >= 0.06 +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +Starlet is a standalone HTTP/1.0 server with keep-alive support, formerly +known as Plack::Server::Standalone::Prefork and +Plack::Server::Standalone::Prefork::Server::Starter. + +%prep +%setup -q -n Starlet-%{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 +* Wed Dec 22 2010 Ralf CorsÃpius <corsepiu@xxxxxxxxxxxxxxxxx> 0.13-1 +- Initial Fedora package. diff --git a/sources b/sources index e69de29..f2ad97d 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +222eff2e8e5d69a44a8a3935fb8837cd Starlet-0.13.tar.gz -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel