%{!?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: 3.1.0 Release: 5%{?dist} Source0: urlgrabber-%{version}.tar.gz Patch0: urlgrabber-keepalive.patch Patch1: urlgrabber-string-type.patch Patch3: urlgrabber-ftp-port.patch Patch4: urlgrabber-progress-ui.patch Patch5: urlgrabber-grab-no-range.patch Patch6: urlgrabber-no-ssl-ok.patch Patch7: urlgrabber-keepalive-shared.patch License: LGPLv2+ Group: Development/Libraries BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot BuildArch: noarch Url: http://linux.duke.edu/projects/urlgrabber/ Provides: urlgrabber = %{version}-%{release} Requires: m2crypto >= 0.16-5 %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 -q -n urlgrabber-%{version} %patch0 -p0 %patch1 -p1 %patch3 -p0 %patch4 -p1 %patch5 -p1 # RHN always needs SSL, so might as well leave this out #patch6 -p1 %patch7 -p1 %build python setup.py build %install rm -rf $RPM_BUILD_ROOT python setup.py install -O1 --root=$RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT/%{_docdir}/urlgrabber-%{version} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc ChangeLog LICENSE README TODO %{python_sitelib}/urlgrabber* %{_bindir}/urlgrabber %changelog * Wed Nov 12 2008 James Antill - 3.1.0-5 - Fix keepalive for HTTP. - Resolves: rhbz#471224 * Mon Jul 21 2008 James Antill - 3.1.0-4 - Import fixes from Fedora, and UI progress tweaks - FTP byterange with specified port - reget with HTTP servers that don't support Range - Dynamic resizing progress, with totals and visible end state - Resolves: rhbz#435156 - Resolves: rhbz#444085 - Fedora-Bug: 404211 - Fedora-Bug: 419241 - Fedora-Bug: 437197 * Fri Jan 18 2008 James Antill - 3.1.0-3 - fix unicode problems - Related: rhbz#384691 * Wed Dec 6 2006 Jeremy Katz - 3.1.0-2 - fix keepalive (#218268) * Mon Oct 23 2006 James Bowes - 3.1.0-1 - update to 3.1.0 * Mon Jul 17 2006 James Bowes - 2.9.9-2 - Add support for byte ranges and keepalive over HTTPS * Wed Jul 12 2006 Jesse Keating - 2.9.9-1.1 - rebuild * Tue May 16 2006 Jeremy Katz - 2.9.9-1 - update to 2.9.9 * Tue Mar 14 2006 Jeremy Katz - 2.9.8-2 - catch read errors so they trigger the failure callback. helps catch bad cds * Wed Feb 22 2006 Jeremy Katz - 2.9.8-1 - update to new version fixing progress bars in yum on regets * Fri Dec 09 2005 Jesse Keating - rebuilt * Wed Sep 21 2005 Jeremy Katz - 2.9.6-4 - don't use --record and list files by hand so that we don't miss directories (#158480) * 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