%define pkg_name HTTP-Async %define pkg_version 0.09 %define rpm_pkg_version 0.09 %define rpm_pkg_release 1.n0i.2 Summary: Process multiple HTTP requests in parallel without blocking Name: perl-%{pkg_name} Version: %{rpm_pkg_version} Release: %{rpm_pkg_release}%{?cpan_version}%{?dist} Group: Development/Libraries License: GPL+ or Artistic URL: http://search.cpan.org/dist/%{pkg_name}/ Source0: http://www.cpan.org/modules/by-module/HTTP/%{pkg_name}-%{pkg_version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: reb00t-rpmdevtools BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Carp) BuildRequires: perl(Data::Dumper) BuildRequires: perl(HTTP::Request) BuildRequires: perl(HTTP::Response) BuildRequires: perl(HTTP::Server::Simple::CGI) BuildRequires: perl(HTTP::Status) BuildRequires: perl(IO::Select) BuildRequires: perl(LWP::UserAgent) BuildRequires: perl(Net::HTTP) BuildRequires: perl(Net::HTTP::NB) BuildRequires: perl(Test::HTTP::Server::Simple) BuildRequires: perl(Test::More) BuildRequires: perl(Time::HiRes) BuildRequires: perl(URI) BuildRequires: perl(URI::Escape) %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. %prep %setup -q -n %{pkg_name}-%{pkg_version} %build %{perl_build} # internet conectivity required %{?_with_test:%{__make} test} %install %{__rm} -rf $RPM_BUILD_ROOT %{perl_install} %clean %{__rm} -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %{perl_files} %doc CHANGES README TODO %changelog * Fri Sep 14 2007 Marius Feraru - 0.09-1.n0i.2 - version 0.09 * Thu Sep 13 2007 Marius Feraru - 0.08-1.n0i.1 - spec file (re)created using N0i::CPAN::RPMizer/1.14.10 - version 0.08