From 73f4ba23a3fe03212d55d4c4b12edb8faedd703453ac90f1d7d0ab28f0e996e2 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 9 Jul 2018 20:29:26 +0000 Subject: [PATCH] - fix build for older python 3.x versions OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-docker?expand=0&rev=13 --- python-docker.changes | 5 +++++ python-docker.spec | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/python-docker.changes b/python-docker.changes index 398bb8d..45826bd 100644 --- a/python-docker.changes +++ b/python-docker.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jul 9 20:28:16 UTC 2018 - dmueller@suse.com + +- fix build for older python 3.x versions + ------------------------------------------------------------------- Sun Jul 1 17:44:06 UTC 2018 - arun@gmx.de diff --git a/python-docker.spec b/python-docker.spec index dabe448..078265d 100644 --- a/python-docker.spec +++ b/python-docker.spec @@ -26,6 +26,11 @@ License: Apache-2.0 Group: System/Management URL: https://github.com/docker/docker-py Source0: https://files.pythonhosted.org/packages/source/d/docker/docker-%{version}.tar.gz +%if 0%{?python3_version_nodots} < 36 +BuildRequires: %{oldpython} +BuildRequires: %{python_module backports.ssl_match_hostname >= 3.5} +BuildRequires: python3 +%endif BuildRequires: %{python_module docker-pycreds >= 0.2.3} BuildRequires: %{python_module mock} BuildRequires: %{python_module pip}