forked from pool/python-urlgrabber
		
	* cleanup all the old urlgrabber urllib code that's not being used
  * delete sslfactory and keepalive fix up the unittests to match existing code
  * make sure the value we get back from the parse150 and other calls is
    converted to an int before we make it 'size' rhbug: #524705
- Spec file updates:
  * Enabled testsuite
  * Removed authors from description
  * Dropped useless python-urlgrabber-2.9.9.patch
  * Dropped obsolete python-urlgrabber-3.1.0.patch (upstream changed)
  * Require python-pycurl
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-urlgrabber?expand=0&rev=14
		
	
		
			
				
	
	
		
			63 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			RPMSpec
		
	
	
	
	
	
			
		
		
	
	
			63 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			RPMSpec
		
	
	
	
	
	
#
 | 
						|
# spec file for package python-urlgrabber
 | 
						|
#
 | 
						|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
 | 
						|
#
 | 
						|
# All modifications and additions to the file contributed by third parties
 | 
						|
# remain the property of their copyright owners, unless otherwise agreed
 | 
						|
# upon. The license for this file, and modifications and additions to the
 | 
						|
# file, is the same license as for the pristine package itself (unless the
 | 
						|
# license for the pristine package is not an Open Source License, in which
 | 
						|
# case the license is the MIT License). An "Open Source License" is a
 | 
						|
# license that conforms to the Open Source Definition (Version 1.9)
 | 
						|
# published by the Open Source Initiative.
 | 
						|
 | 
						|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
 | 
						|
#
 | 
						|
 | 
						|
 | 
						|
 | 
						|
Name:           python-urlgrabber
 | 
						|
Version:        3.9.1
 | 
						|
Release:        0
 | 
						|
Url:            http://linux.duke.edu/projects/urlgrabber/
 | 
						|
Summary:        A high-level cross-protocol url-grabber
 | 
						|
License:        LGPL
 | 
						|
Group:          Development/Languages/Python
 | 
						|
Source:         http://pypi.python.org/packages/source/u/urlgrabber/urlgrabber-%{version}.tar.gz
 | 
						|
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 | 
						|
BuildRequires:  python-devel
 | 
						|
BuildRequires:  python-pycurl
 | 
						|
Requires:       python-pycurl
 | 
						|
%if 0%{?suse_version}
 | 
						|
%py_requires
 | 
						|
%if 0%{?suse_version} > 1110
 | 
						|
BuildArch:      noarch
 | 
						|
%endif
 | 
						|
%endif
 | 
						|
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
 | 
						|
 | 
						|
%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}
 | 
						|
 | 
						|
%build
 | 
						|
python setup.py build
 | 
						|
 | 
						|
%install
 | 
						|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
 | 
						|
 | 
						|
%check
 | 
						|
python setup.py test
 | 
						|
 | 
						|
%files
 | 
						|
%defattr(-,root,root,-)
 | 
						|
%doc ChangeLog LICENSE README TODO
 | 
						|
%{python_sitelib}/*
 | 
						|
 | 
						|
%changelog
 |