14
0

- Drop patch grabber_fix.diff that was never upstreamed. Should

not be needed anymore

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-urlgrabber?expand=0&rev=32
This commit is contained in:
Tomáš Chvátal
2019-02-27 09:45:46 +00:00
committed by Git OBS Bridge
parent 4192a3124d
commit d12eed8207
3 changed files with 9 additions and 94 deletions

View File

@@ -16,11 +16,8 @@
#
%{!?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
%define modname urlgrabber
Name: python-urlgrabber
Version: 4.0.0
Release: 0
@@ -29,7 +26,6 @@ License: LGPL-2.1-only
Group: Development/Languages/Python
URL: http://urlgrabber.baseurl.org
Source: https://github.com/rpm-software-management/%{modname}/releases/download/%{modname}-4-0-0/%{modname}-%{version}.tar.gz
Patch0: grabber_fix.diff
BuildRequires: %{python_module pycurl}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six}
@@ -46,8 +42,8 @@ throttling, authentication, proxies and more.
%prep
%setup -q -n urlgrabber-%{version}
# Remove with next release
sed -i "13d" urlgrabber/__init__.py # Remove wrong license header, fixes bnc#781323
%autopatch -p1
%build
%python_build
@@ -61,8 +57,8 @@ mv -v %{buildroot}%{_usr}/libexec/urlgrabber-ext-down %{buildroot}%{_usr}/lib/ur
%files %{python_files}
%license LICENSE
%doc ChangeLog README TODO
%{_bindir}/urlgrabber
%python3_only %{_bindir}/urlgrabber
%{python_sitelib}/*
%{_usr}/lib/urlgrabber*
%python3_only %{_prefix}/lib/urlgrabber*
%changelog