%{!?python_sitelib: %define python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} Summary: A high-level cross-protocol url-grabber Name: python-urlgrabber Version: 2.9.6 Release: 3 Source0: urlgrabber-%{version}.tar.gz Patch0: python-urlgrabber-2.9.6-reget.patch License: LGPL Group: Development/Libraries BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot Prefix: %{_prefix} BuildArch: noarch Url: http://linux.duke.edu/projects/urlgrabber/ Provides: urlgrabber %description A high-level cross-protocol url-grabber for python supporting HTTP, FTP and file locations. Features include keepalive, byte ranges, throttling, authentication, proxies and more. %prep %setup -n urlgrabber-%{version} %patch0 -p1 -b .reget %build python setup.py build %install python setup.py install -O1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES %clean rm -rf $RPM_BUILD_ROOT %files -f INSTALLED_FILES %defattr(-,root,root) %dir %{python_sitelib}/urlgrabber %changelog * Wed Sep 14 2005 Jeremy Katz - 2.9.6-3 - add directory to file list (#168261) * Fri Jun 03 2005 Phil Knirsch 2.9.6-2 - Fixed the reget method to actually work correctly (skip completely transfered files, etc) * Tue Mar 8 2005 Jeremy Katz - 2.9.6-1 - update to 2.9.6 * Mon Mar 7 2005 Jeremy Katz - 2.9.5-1 - import into dist - make the description less of a book * Mon Mar 7 2005 Seth Vidal 2.9.5-0 - 2.9.5 * Thu Feb 24 2005 Seth Vidal 2.9.3-0 - first package for fc3 - named python-urlgrabber for naming guideline compliance