Accepting request 855783 from home:bnavigator:branches:devel:languages:python

- If you skip_python2 you don't need mock.

mcepl: This still has the wrong condition, we talked about yesterday.

OBS-URL: https://build.opensuse.org/request/show/855783
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-urllib3?expand=0&rev=110
This commit is contained in:
Matej Cepl 2020-12-14 17:20:19 +00:00 committed by Git OBS Bridge
parent 6c92a26185
commit 0d81b01f4f
2 changed files with 5 additions and 8 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Dec 14 15:21:26 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
- If you skip_python2 you don't need mock.
-------------------------------------------------------------------
Sun Dec 13 21:46:22 UTC 2020 - Matej Cepl <mcepl@suse.com>

View File

@ -18,7 +18,6 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
%define oldpython python
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%define psuffix -test
@ -54,10 +53,6 @@ Requires: python-six >= 1.12.0
Recommends: python-PySocks >= 1.5.6
Recommends: python-brotlipy >= 0.6.0
BuildArch: noarch
# for SSL module on older distros
%if 0%{?suse_version} < 1500
BuildRequires: %{oldpython}
%endif
%if %{with test}
BuildRequires: %{python_module PySocks >= 1.5.6}
BuildRequires: %{python_module brotlipy >= 0.6.0}
@ -75,9 +70,6 @@ BuildRequires: %{python_module python-dateutil}
BuildRequires: %{python_module tornado >= 6}
BuildRequires: %{python_module trustme >= 0.5.3}
BuildRequires: %{python_module urllib3 >= %{version}}
%if "%{python_flavor}" == "python2"
BuildRequires: %{python_module mock}
%endif
%endif
%python_subpackages