- 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
This commit is contained in:
Jan Matejek 2017-10-19 11:51:01 +00:00 committed by Git OBS Bridge
parent 51714d024b
commit 2f366d4311
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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