2007-01-15 23:34:25 +00:00
|
|
|
#
|
2011-09-20 12:24:46 +00:00
|
|
|
# spec file for package python-urlgrabber
|
2007-01-15 23:34:25 +00:00
|
|
|
#
|
2011-09-20 12:24:46 +00:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-15 23:34:25 +00:00
|
|
|
#
|
2008-09-26 13:10:02 +00:00
|
|
|
# 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.
|
|
|
|
|
2007-01-15 23:34:25 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2008-02-21 00:59:28 +00:00
|
|
|
|
2007-01-15 23:34:25 +00:00
|
|
|
Name: python-urlgrabber
|
2011-09-20 12:24:46 +00:00
|
|
|
Version: 3.9.1
|
|
|
|
Release: 0
|
|
|
|
Url: http://linux.duke.edu/projects/urlgrabber/
|
2007-01-15 23:34:25 +00:00
|
|
|
Summary: A high-level cross-protocol url-grabber
|
2009-08-10 21:04:13 +00:00
|
|
|
License: LGPL
|
2011-09-20 12:24:46 +00:00
|
|
|
Group: Development/Languages/Python
|
|
|
|
Source: http://pypi.python.org/packages/source/u/urlgrabber/urlgrabber-%{version}.tar.gz
|
2007-01-15 23:34:25 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2011-09-20 12:24:46 +00:00
|
|
|
BuildRequires: python-devel
|
|
|
|
BuildRequires: python-pycurl
|
|
|
|
Requires: python-pycurl
|
|
|
|
%if 0%{?suse_version}
|
2007-01-15 23:34:25 +00:00
|
|
|
%py_requires
|
2011-09-20 12:24:46 +00:00
|
|
|
%if 0%{?suse_version} > 1110
|
2009-08-13 00:46:44 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
%endif
|
2011-09-20 12:24:46 +00:00
|
|
|
%endif
|
|
|
|
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
2007-01-15 23:34:25 +00:00
|
|
|
|
|
|
|
%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
|
2011-09-20 12:24:46 +00:00
|
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
2011-09-21 07:27:08 +00:00
|
|
|
rm -rf %{buildroot}/usr/share/doc/urlgrabber-%{version} # Remove wrongly installed docs
|
2007-01-15 23:34:25 +00:00
|
|
|
|
2011-09-20 12:24:46 +00:00
|
|
|
%files
|
2007-01-15 23:34:25 +00:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc ChangeLog LICENSE README TODO
|
2011-09-21 07:27:08 +00:00
|
|
|
%{_bindir}/urlgrabber
|
2011-09-20 12:24:46 +00:00
|
|
|
%{python_sitelib}/*
|
2007-01-15 23:34:25 +00:00
|
|
|
|
2008-02-21 00:59:28 +00:00
|
|
|
%changelog
|