From 2f366d4311edc07020db3484d633e50f12ca22ece93a040a44254e9631a6aa80 Mon Sep 17 00:00:00 2001 From: Jan Matejek Date: Thu, 19 Oct 2017 11:51:01 +0000 Subject: [PATCH] - use python3 for detection, in anticipation of python2 removal OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-urllib3?expand=0&rev=32 --- python-urllib3.changes | 5 +++++ python-urllib3.spec | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/python-urllib3.changes b/python-urllib3.changes index d7a537c..154b5eb 100644 --- a/python-urllib3.changes +++ b/python-urllib3.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Oct 19 11:48:58 UTC 2017 - jmatejek@suse.com + +- use python3 for detection, in anticipation of python2 removal + ------------------------------------------------------------------- Fri Aug 11 14:55:33 UTC 2017 - toddrme2178@gmail.com diff --git a/python-urllib3.spec b/python-urllib3.spec index 9029647..8253586 100644 --- a/python-urllib3.spec +++ b/python-urllib3.spec @@ -70,7 +70,7 @@ Highlights %setup -q -n urllib3-%{version} %patch1 -p1 %patch2 -p1 -%if %(python -c "import ssl; print(hasattr(ssl,'PROTOCOL_TLSv1_2'))") == "True" +%if %(python3 -c "import ssl; print(hasattr(ssl,'PROTOCOL_TLSv1_2'))") == "True" %patch3 -p1 %endif