diff --git a/python-websocket-client.changes b/python-websocket-client.changes index 69e59f5..74251bb 100644 --- a/python-websocket-client.changes +++ b/python-websocket-client.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Mar 12 07:49:24 UTC 2020 - Tomáš Chvátal + +- Fix build without python2 + ------------------------------------------------------------------- Thu Feb 6 13:48:44 UTC 2020 - Marketa Calabkova diff --git a/python-websocket-client.spec b/python-websocket-client.spec index 106856e..ff4478e 100644 --- a/python-websocket-client.spec +++ b/python-websocket-client.spec @@ -23,17 +23,16 @@ %else %define ssl_match_hostname python-backports.ssl_match_hostname %endif +%bcond_without python2 Name: python-websocket-client Version: 0.57.0 Release: 0 Summary: WebSocket client implementation License: LGPL-2.1-only -Group: Development/Languages/Python URL: https://github.com/liris/websocket-client/releases Source0: https://files.pythonhosted.org/packages/source/w/websocket_client/websocket_client-%{version}.tar.gz BuildRequires: %{python_module setuptools} BuildRequires: %{python_module six} -BuildRequires: %{ssl_match_hostname} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-six @@ -42,6 +41,9 @@ Requires(postun): update-alternatives Provides: python-websocket-client-test = %{version} Obsoletes: python-websocket-client-test < %{version} BuildArch: noarch +%if %{with python2} +BuildRequires: %{ssl_match_hostname} +%endif %ifpython2 Requires: %{ssl_match_hostname} %endif