forked from pool/python-urlgrabber
Accepting request 612885 from devel:languages:python
Clean SPEC file (forwarded request 612884 from mcepl) OBS-URL: https://build.opensuse.org/request/show/612885 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-urlgrabber?expand=0&rev=22
This commit is contained in:
@@ -1,3 +1,13 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue May 29 14:23:52 UTC 2018 - mcepl@suse.com
|
||||||
|
|
||||||
|
- Clean SPEC file
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Aug 24 13:56:44 UTC 2017 - jmatejek@suse.com
|
||||||
|
|
||||||
|
- singlespec auto-conversion
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Feb 12 13:42:05 CET 2015 - mc@suse.de
|
Thu Feb 12 13:42:05 CET 2015 - mc@suse.de
|
||||||
|
|
||||||
@@ -142,3 +152,4 @@ Sun Aug 14 02:04:14 CEST 2005 - cthiel@suse.de
|
|||||||
|
|
||||||
- initial package (version 2.9.6)
|
- initial package (version 2.9.6)
|
||||||
|
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-urlgrabber
|
# spec file for package python-urlgrabber
|
||||||
#
|
#
|
||||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -16,30 +16,29 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%{!?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
|
||||||
Name: python-urlgrabber
|
Name: python-urlgrabber
|
||||||
Version: 3.9.1
|
Version: 3.9.1
|
||||||
Release: 0
|
Release: 0
|
||||||
Url: http://urlgrabber.baseurl.org
|
|
||||||
Summary: A high-level cross-protocol url-grabber
|
Summary: A high-level cross-protocol url-grabber
|
||||||
License: LGPL-2.1
|
License: LGPL-2.1-only
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Source: http://pypi.python.org/packages/source/u/urlgrabber/urlgrabber-%{version}.tar.gz
|
URL: http://urlgrabber.baseurl.org
|
||||||
|
Source: https://files.pythonhosted.org/packages/source/u/urlgrabber/urlgrabber-%{version}.tar.gz
|
||||||
Patch0: grabber_fix.diff
|
Patch0: grabber_fix.diff
|
||||||
# PATCH-FIX-UPSTREAM bnc#896844
|
# PATCH-FIX-UPSTREAM bnc#896844
|
||||||
Patch1: python-urlgrabber-3.9.1-preserve-queryparams-in-urls.patch
|
Patch1: python-urlgrabber-3.9.1-preserve-queryparams-in-urls.patch
|
||||||
Patch2: declare-dollar-sign-as-safe-in-urlquote.patch
|
Patch2: declare-dollar-sign-as-safe-in-urlquote.patch
|
||||||
Patch3: python-urlgrabber-3.9.1-set-SSL_VERIFYHOST-correct.dif
|
Patch3: python-urlgrabber-3.9.1-set-SSL_VERIFYHOST-correct.dif
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRequires: %{python_module devel}
|
||||||
BuildRequires: python-devel
|
BuildRequires: %{python_module pycurl}
|
||||||
BuildRequires: python-pycurl
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-pycurl
|
Requires: python-pycurl
|
||||||
%if 0%{?suse_version}
|
|
||||||
%py_requires
|
|
||||||
%if 0%{?suse_version} > 1110
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%endif
|
%python_subpackages
|
||||||
%endif
|
|
||||||
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
A high-level cross-protocol url-grabber for python supporting HTTP, FTP
|
A high-level cross-protocol url-grabber for python supporting HTTP, FTP
|
||||||
@@ -55,15 +54,16 @@ sed -i "13d" urlgrabber/__init__.py # Remove wrong license header, fixes bnc#781
|
|||||||
%patch3 -p1
|
%patch3 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
python setup.py build
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
%python_install
|
||||||
rm -rf %{buildroot}/usr/share/doc/urlgrabber-%{version} # Remove wrongly installed docs
|
rm -rf %{buildroot}%{_datadir}/doc/urlgrabber-%{version} # Remove wrongly installed docs
|
||||||
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%files
|
%files %{python_files}
|
||||||
%defattr(-,root,root,-)
|
%license LICENSE
|
||||||
%doc ChangeLog LICENSE README TODO
|
%doc ChangeLog README TODO
|
||||||
%{_bindir}/urlgrabber
|
%{_bindir}/urlgrabber
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user