Sophie

Sophie

distrib > Arklinux > devel > i586 > by-pkgid > e775d2cef85c2ac234cd31d8346fceab > files > 1

python-urlgrabber-3.0.0-3ark.src.rpm

%{!?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.0.0
Release: 3ark
Source0: http://urlgrabber.baseurl.org/download/urlgrabber-%{version}.tar.gz
Patch0: urlgrabber-keepalive.patch
Patch1: urlgrabber-string-type.patch
License: LGPLv2+
Group: Development/Libraries
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: python-devel
Url: http://urlgrabber.baseurl.org/
Provides: urlgrabber = %{version}-%{release}
BuildArch: noarch

%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

%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/*.egg-info
%{python_sitelib}/urlgrabber
%{_bindir}/urlgrabber

%changelog
* Fri Aug 20 2010 Bernhard Rosenkraenzer <bero@arklinux.ch> 3.0.0-3ark
- Rebuild for Python 2.7
- Make noarch

* Mon Aug  9 2010 Bernhard Rosenkraenzer <bero@arklinux.ch> 3.0.0-2ark
- Rebuild for Python 2.6