From 500805ac78ba759280290c0fa9653748d374017c Mon Sep 17 00:00:00 2001 From: Chris Weyl Date: Jul 28 2006 03:52:07 +0000 Subject: auto-import perl-POE-Component-Client-HTTP-0.77-1.fc5 on branch devel from perl-POE-Component-Client-HTTP-0.77-1.fc5.src.rpm --- diff --git a/.cvsignore b/.cvsignore index e69de29..06303aa 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +POE-Component-Client-HTTP-0.77.tar.gz diff --git a/perl-POE-Component-Client-HTTP.spec b/perl-POE-Component-Client-HTTP.spec new file mode 100644 index 0000000..bb31633 --- /dev/null +++ b/perl-POE-Component-Client-HTTP.spec @@ -0,0 +1,87 @@ +# Note: The tests for this perl dist. are disabled by default, as they +# require network access and would thus fail in the buildsys' mock +# environments. To build locally while enabling tests, either: +# +# rpmbuild ... --define '_with_network_tests 1' ... +# rpmbuild ... --with network_tests ... +# define _with_network_tests 1 in your ~/.rpmmacros +# +# Note that right now, the only way to run tests locally from a cvs sandbox +# "make noarch" type scenario is the third one. + +Name: perl-POE-Component-Client-HTTP +Version: 0.77 +Release: 1%{?dist} +Summary: A non-blocking/parallel web requests engine for POE + +Group: Development/Libraries +License: Artistic or GPL +URL: http://search.cpan.org/dist/POE-Component-Client-HTTP +Source0: http://search.cpan.org/CPAN/authors/id/R/RC/RCAPUTO/POE-Component-Client-HTTP-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch +BuildRequires: perl +BuildRequires: perl(POE) >= 0.31, perl(HTTP::Request) >= 1.30 +BuildRequires: perl(HTTP::Response) >= 1.37, perl(URI) >= 1.24 +BuildRequires: perl(POE::Component::Client::Keepalive) >= 0.0704 +BuildRequires: dos2unix, sed +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +POE::Component::Client::HTTP is an HTTP user-agent for POE. It lets other +sessions run while HTTP transactions are being processed, and it lets several +HTTP transactions be processed in parallel. + + +%prep +%setup -q -n POE-Component-Client-HTTP-%{version} + + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + + +%install +rm -rf %{buildroot} +make pure_install PERL_INSTALL_ROOT=%{buildroot} +find %{buildroot} -type f -name .packlist -exec rm -f {} ';' +find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';' +chmod -R u+w %{buildroot}/* + +cd examples +dos2unix pcchget.perl +sed -i -e '/#!perl/d' pcchget.perl + + +%check +# we don't have network access during the builds; fortunately these look to be +# the only tests requiring it. Failing that, the entire suite can be +# disabled. +%{?!_with_network_tests:rm t/01* t/02* t/09* t/11* t/50* t/54*} + +make test + + +%clean +rm -rf %{buildroot} + + +%files +%defattr(-,root,root,-) +%doc CHANGES* README examples +%{perl_vendorlib}/* +%{_mandir}/man3/*.3* + + +%changelog +* Thu Jul 27 2006 Chris Weyl 0.77-1 +- switched to the same _with_network_tests test as perl-POE-Component-IRC +- updated to 0.77 + +* Thu Jul 20 2006 Chris Weyl 0.76-1 +- bits snipped + +* Thu Jul 13 2006 Chris Weyl 0.76-0 +- Initial spec file for F-E diff --git a/sources b/sources index e69de29..405b21e 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +bca2c306d8c63535845b760883a13644 POE-Component-Client-HTTP-0.77.tar.gz