diff --git a/python-websocket-client.spec b/python-websocket-client.spec index 0f227af64999953c8e5b79ac0e5e65f55a649c0b..7e709e633d6908d77a403c7e0e3511cc40b60c7d 100644 --- a/python-websocket-client.spec +++ b/python-websocket-client.spec @@ -1,6 +1,6 @@ Name: python-websocket-client Version: 0.47.0 -Release: 6 +Release: 7 Summary: WebSocket client for python License: LGPLv2 URL: https://github.com/websocket-client/websocket-client @@ -13,18 +13,6 @@ This provide the low level APIs for WebSocket. All APIs are the synchronous functions. websocket-client supports only hybi-13. -%package -n python2-websocket-client -%{?python_provide:%python_provide python2-websocket-client} -Summary: WebSocket client for python -BuildRequires: python2-devel, python-setuptools, python2-backports-ssl_match_hostname, python2-six -Requires: python2-backports-ssl_match_hostname, python2-six - -%description -n python2-websocket-client -websocket-client module is WebSocket client for python. -This provide the low level APIs for WebSocket. All APIs -are the synchronous functions. -websocket-client supports only hybi-13. - %package -n python3-websocket-client %{?python_provide:%python_provide python3-websocket-client} Summary: WebSocket client for python @@ -43,15 +31,9 @@ websocket-client supports only hybi-13. rm -rf websocket_client.egg-info %build -%py2_build %py3_build %install -%py2_install -rm -rf $RPM_BUILD_ROOT%{python2_sitelib}/websocket/cacert.pem -ln -s /etc/pki/tls/cert.pem $RPM_BUILD_ROOT%{python2_sitelib}/websocket/cacert.pem -rm -rf $RPM_BUILD_ROOT%{python2_sitelib}/websocket/tests - %py3_install rm -rf $RPM_BUILD_ROOT%{python3_sitelib}/websocket/cacert.pem ln -s /etc/pki/tls/cert.pem $RPM_BUILD_ROOT%{python3_sitelib}/websocket/cacert.pem @@ -60,12 +42,6 @@ mv $RPM_BUILD_ROOT%{_bindir}/wsdump.py $RPM_BUILD_ROOT%{_bindir}/wsdump %check %{__python3} setup.py test -%{__python2} setup.py test - -%files -n python2-websocket-client -%license LICENSE -%doc README.rst -%{python2_sitelib}/* %files -n python3-websocket-client %license LICENSE @@ -74,6 +50,8 @@ mv $RPM_BUILD_ROOT%{_bindir}/wsdump.py $RPM_BUILD_ROOT%{_bindir}/wsdump %{_bindir}/wsdump %changelog +* Wed Jan 26 2022 zhangy1317 - 0.47.0-7 +- Remove python2 * Sat Feb 22 2020 hy-euler - 0.47.0-6 - modify the require of python-backports-ssl_match_hostname and python-six to python2 * Thu Feb 13 2020 Ruijun Ge - 0.47.0-5