%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} Name: python-batchhttp Version: 1.0 Release: 1%{?dist} Summary: Parallel fetching of HTTP resources through MIME multipart Group: Development/Languages License: BSD URL: http://sixapart.github.com/batchhttp/ Source0: http://pypi.python.org/packages/source/b/batchhttp/batchhttp-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-devel python-setuptools-devel Requires: python-httplib2 %description This package's BatchClient applies standard MIME multipart encoding to HTTP messages, providing a standards-conservant technique for making parallelizable HTTP requests over a single proxy connection. To make a batch request, open a new request on a BatchClient instance and add your subrequests, along with callbacks that will receive the subresponses. Once all parallelized requests are added, complete the request; the request is made and the batched subresponses are provided to your callbacks. %prep %setup -q -n batchhttp-%{version} %build python setup.py build %install rm -rf $RPM_BUILD_ROOT python setup.py install --skip-build --root $RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc LICENSE %{python_sitelib}/* %changelog * Tue Oct 06 2009 Sebastian Dziallas - 1.0-1 - initial packaging