|
|
@ -1,10 +1,10 @@
|
|
|
|
%define realname urlgrabber
|
|
|
|
%{!?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
|
|
|
|
Summary: A high-level cross-protocol url-grabber
|
|
|
|
Name: python-urlgrabber
|
|
|
|
Name: python-urlgrabber
|
|
|
|
Version: 2.9.6
|
|
|
|
Version: 2.9.6
|
|
|
|
Release: 2
|
|
|
|
Release: 3
|
|
|
|
Source0: %{realname}-%{version}.tar.gz
|
|
|
|
Source0: urlgrabber-%{version}.tar.gz
|
|
|
|
Patch0: python-urlgrabber-2.9.6-reget.patch
|
|
|
|
Patch0: python-urlgrabber-2.9.6-reget.patch
|
|
|
|
License: LGPL
|
|
|
|
License: LGPL
|
|
|
|
Group: Development/Libraries
|
|
|
|
Group: Development/Libraries
|
|
|
@ -20,22 +20,26 @@ and file locations. Features include keepalive, byte ranges, throttling,
|
|
|
|
authentication, proxies and more.
|
|
|
|
authentication, proxies and more.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -n %{realname}-%{version}
|
|
|
|
%setup -n urlgrabber-%{version}
|
|
|
|
%patch0 -p1 -b .reget
|
|
|
|
%patch0 -p1 -b .reget
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
python setup.py build
|
|
|
|
python setup.py build
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
python setup.py install --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
|
|
|
|
python setup.py install -O1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
|
|
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
%files -f INSTALLED_FILES
|
|
|
|
%files -f INSTALLED_FILES
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
|
|
|
%dir %{python_sitelib}/urlgrabber
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Wed Sep 14 2005 Jeremy Katz <katzj@redhat.com> - 2.9.6-3
|
|
|
|
|
|
|
|
- add directory to file list (#168261)
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jun 03 2005 Phil Knirsch <pknirsch@redhat.com> 2.9.6-2
|
|
|
|
* Fri Jun 03 2005 Phil Knirsch <pknirsch@redhat.com> 2.9.6-2
|
|
|
|
- Fixed the reget method to actually work correctly (skip completely transfered
|
|
|
|
- Fixed the reget method to actually work correctly (skip completely transfered
|
|
|
|
files, etc)
|
|
|
|
files, etc)
|
|
|
|