From bcae822937b4dc2e84be11a8c5c338ed230076a6ea5187b4e2b4846996c8f99b Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 9 Jul 2018 20:29:26 +0000 Subject: [PATCH 1/2] - 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} From 276e977dcfd6583642c70dd8ab8488ee3a95c16b8e1c014f79a4bdf262982014 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 9 Jul 2018 20:31:46 +0000 Subject: [PATCH 2/2] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-docker?expand=0&rev=14 --- python-docker.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-docker.spec b/python-docker.spec index 078265d..11590a9 100644 --- a/python-docker.spec +++ b/python-docker.spec @@ -26,7 +26,7 @@ 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 +%if 0%{?suse_version} < 1320 BuildRequires: %{oldpython} BuildRequires: %{python_module backports.ssl_match_hostname >= 3.5} BuildRequires: python3