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
|
|
|
#
|
2018-05-29 14:24:34 +00:00
|
|
|
# Copyright (c) 2018 SUSE LINUX 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.
|
|
|
|
|
2018-12-04 14:12:08 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-15 23:34:25 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2018-05-29 14:24:34 +00:00
|
|
|
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
%define skip_python3 1
|
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
|
2007-01-15 23:34:25 +00:00
|
|
|
Summary: A high-level cross-protocol url-grabber
|
2018-05-29 14:24:34 +00:00
|
|
|
License: LGPL-2.1-only
|
2011-09-20 12:24:46 +00:00
|
|
|
Group: Development/Languages/Python
|
2018-05-29 14:24:34 +00:00
|
|
|
URL: http://urlgrabber.baseurl.org
|
|
|
|
Source: https://files.pythonhosted.org/packages/source/u/urlgrabber/urlgrabber-%{version}.tar.gz
|
2013-02-07 13:09:55 +00:00
|
|
|
Patch0: grabber_fix.diff
|
2014-09-17 14:54:38 +00:00
|
|
|
# PATCH-FIX-UPSTREAM bnc#896844
|
|
|
|
Patch1: python-urlgrabber-3.9.1-preserve-queryparams-in-urls.patch
|
2015-07-26 12:41:50 +00:00
|
|
|
Patch2: declare-dollar-sign-as-safe-in-urlquote.patch
|
|
|
|
Patch3: python-urlgrabber-3.9.1-set-SSL_VERIFYHOST-correct.dif
|
2018-05-29 14:24:34 +00:00
|
|
|
BuildRequires: %{python_module pycurl}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2011-09-20 12:24:46 +00:00
|
|
|
Requires: python-pycurl
|
2009-08-13 00:46:44 +00:00
|
|
|
BuildArch: noarch
|
2018-05-29 14:24:34 +00:00
|
|
|
%python_subpackages
|
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}
|
2012-10-01 09:55:49 +00:00
|
|
|
sed -i "13d" urlgrabber/__init__.py # Remove wrong license header, fixes bnc#781323
|
2013-02-07 13:09:55 +00:00
|
|
|
%patch0 -p1
|
2014-09-17 14:54:38 +00:00
|
|
|
%patch1 -p1
|
2015-07-26 12:41:50 +00:00
|
|
|
%patch2 -p1
|
|
|
|
%patch3 -p1
|
2007-01-15 23:34:25 +00:00
|
|
|
|
|
|
|
%build
|
2018-05-29 14:24:34 +00:00
|
|
|
%python_build
|
2007-01-15 23:34:25 +00:00
|
|
|
|
|
|
|
%install
|
2018-05-29 14:24:34 +00:00
|
|
|
%python_install
|
|
|
|
rm -rf %{buildroot}%{_datadir}/doc/urlgrabber-%{version} # Remove wrongly installed docs
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2007-01-15 23:34:25 +00:00
|
|
|
|
2018-05-29 14:24:34 +00:00
|
|
|
%files %{python_files}
|
|
|
|
%license LICENSE
|
|
|
|
%doc ChangeLog 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
|