SPECS: perl-HTTP-Async.spec (NEW), perl-HTTP-Server-Simple.spec (N...

radek radek at pld-linux.org
Mon Mar 19 01:28:42 CET 2007


Author: radek                        Date: Mon Mar 19 00:28:42 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- new

---- Files affected:
SPECS:
   perl-HTTP-Async.spec (NONE -> 1.1)  (NEW), perl-HTTP-Server-Simple.spec (NONE -> 1.1)  (NEW), perl-Test-HTTP-Server-Simple.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/perl-HTTP-Async.spec
diff -u /dev/null SPECS/perl-HTTP-Async.spec:1.1
--- /dev/null	Mon Mar 19 01:28:42 2007
+++ SPECS/perl-HTTP-Async.spec	Mon Mar 19 01:28:36 2007
@@ -0,0 +1,93 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	tests		# do not perform "make test"
+#
+%include	/usr/lib/rpm/macros.perl
+%define	pdir	HTTP
+%define	pnam	Async
+Summary:	HTTP::Async - process multiple HTTP requests in parallel without blocking.
+#Summary(pl):	
+Name:		perl-HTTP-Async
+Version:	0.07
+Release:	1
+# same as perl
+License:	GPL v1+ or Artistic
+Group:		Development/Languages/Perl
+Source0:	http://www.cpan.org/modules/by-authors/id/E/EV/EVDB/HTTP-Async-0.07.tar.gz
+# Source0-md5:	d18d2c705ea8a2b1e3d40cb65ee73fbd
+# generic URL, check or change before uncommenting
+#URL:		http://search.cpan.org/dist/HTTP-Async/
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires:	perl(HTTP::Request)
+BuildRequires:	perl(HTTP::Response)
+BuildRequires:	perl(HTTP::Status)
+BuildRequires:	perl(Net::HTTP)
+BuildRequires:	perl(Net::HTTP::NB)
+BuildRequires:	perl(URI)
+BuildRequires:	perl(HTTP::Server::Simple::CGI)
+BuildRequires:	perl(LWP::UserAgent)
+BuildRequires:	perl(Module::Build)
+BuildRequires:	perl(Test::HTTP::Server::Simple)
+BuildRequires:	perl(URI::Escape)
+%endif
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Although using the conventional LWP::UserAgent is fast and easy it does
+have some drawbacks - the code execution blocks until the request has been
+completed and it is only possible to process one request at a time.
+HTTP::Async attempts to address these limitations.
+
+It gives you a 'Async' object that you can add requests to, and then get the
+requests off as they finish. The actual sending and receiving of the requests
+is abstracted. As soon as you add a request it is transmitted, if there are
+too many requests in progress at the moment they are queued. There is no
+concept of starting or stopping - it runs continuously.
+
+Whilst it is waiting to receive data it returns control to the code that
+called it meaning that you can carry out processing whilst fetching data from
+the network. All without forking or threading - it is actually done using
+select lists.
+
+# %description -l pl
+# TODO
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Build.PL \
+	destdir=$RPM_BUILD_ROOT \
+	installdirs=vendor
+./Build
+
+%{?with_tests:./Build test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+./Build install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGES README TODO
+%{perl_vendorlib}/HTTP/*.pm
+%{perl_vendorlib}/HTTP/Async
+%{_mandir}/man3/*
+
+%define	date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2007/03/19 00:28:36  radek
+- new
+

================================================================
Index: SPECS/perl-HTTP-Server-Simple.spec
diff -u /dev/null SPECS/perl-HTTP-Server-Simple.spec:1.1
--- /dev/null	Mon Mar 19 01:28:42 2007
+++ SPECS/perl-HTTP-Server-Simple.spec	Mon Mar 19 01:28:36 2007
@@ -0,0 +1,74 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	tests		# do not perform "make test"
+#
+%include	/usr/lib/rpm/macros.perl
+%define	pdir	HTTP
+%define	pnam	Server-Simple
+Summary:	HTTP::Server::Simple - Lightweight HTTP server
+#Summary(pl):	
+Name:		perl-HTTP-Server-Simple
+Version:	0.27
+Release:	1
+# same as perl
+License:	GPL v1+ or Artistic
+Group:		Development/Languages/Perl
+Source0:	http://www.cpan.org/modules/by-authors/id/J/JE/JESSE/HTTP-Server-Simple-0.27.tar.gz
+# Source0-md5:	0c197222646d7f6b34800b9e69aae0b0
+URL:		http://search.cpan.org/dist/HTTP-Server-Simple/
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This is a simple standalone HTTP server. By default, it doesn't thread 
+or fork.
+
+It does, however, act as a simple frontend which can be used 
+to build a standalone web-based application or turn a CGI into one.
+
+(It's possible to use Net::Server to get threading, forking,
+preforking and so on. Autrijus Tang wrote the functionality and owes docs for that ;)
+
+By default, the server traps a few signals:
+
+# %description -l pl
+# TODO
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+	INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%{perl_vendorlib}/HTTP/Server/*.pm
+%{perl_vendorlib}/HTTP/Server/Simple
+%{_mandir}/man3/*
+
+%define	date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2007/03/19 00:28:36  radek
+- new
+

================================================================
Index: SPECS/perl-Test-HTTP-Server-Simple.spec
diff -u /dev/null SPECS/perl-Test-HTTP-Server-Simple.spec:1.1
--- /dev/null	Mon Mar 19 01:28:42 2007
+++ SPECS/perl-Test-HTTP-Server-Simple.spec	Mon Mar 19 01:28:36 2007
@@ -0,0 +1,69 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	tests		# do not perform "make test"
+#
+%include	/usr/lib/rpm/macros.perl
+%define	pdir	Test
+%define	pnam	HTTP-Server-Simple
+Summary:	Test::HTTP::Server::Simple - Test::More functions for HTTP::Server::Simple
+#Summary(pl):	
+Name:		perl-Test-HTTP-Server-Simple
+Version:	0.03
+Release:	1
+# same as perl
+License:	GPL v1+ or Artistic
+Group:		Development/Languages/Perl
+Source0:	http://www.cpan.org/modules/by-authors/id/G/GL/GLASSER/Test-HTTP-Server-Simple-0.03.tar.gz
+# Source0-md5:	bb23602669311fa2dd5a61bfc01e05dd
+URL:		http://search.cpan.org/dist/Test-HTTP-Server-Simple/
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires:	perl-HTTP-Server-Simple
+BuildRequires:	perl-Test-Builder-Tester >= 1.01
+%endif
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This mixin class provides methods to test an HTTP::Server::Simple-based web
+server.  Currently, it provides only one such method: started_ok.
+
+# %description -l pl
+# TODO
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Build.PL \
+	destdir=$RPM_BUILD_ROOT \
+	installdirs=vendor
+./Build
+
+%{?with_tests:./Build test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+./Build install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%{perl_vendorlib}/Test/HTTP/Server/*.pm
+%{_mandir}/man3/*
+
+%define	date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2007/03/19 00:28:36  radek
+- new
+
================================================================


More information about the pld-cvs-commit mailing list