!6 remove python2 dependency
From: @xinghe_1 Reviewed-by: @small_leek Signed-off-by: @small_leek
This commit is contained in:
commit
68e43e3cd8
@ -1,6 +1,6 @@
|
|||||||
Name: python-websocket-client
|
Name: python-websocket-client
|
||||||
Version: 0.57.0
|
Version: 0.57.0
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: WebSocket client for python
|
Summary: WebSocket client for python
|
||||||
License: LGPLv2
|
License: LGPLv2
|
||||||
URL: https://github.com/websocket-client/websocket-client
|
URL: https://github.com/websocket-client/websocket-client
|
||||||
@ -13,17 +13,6 @@ This provide the low level APIs for WebSocket. All APIs
|
|||||||
are the synchronous functions.
|
are the synchronous functions.
|
||||||
websocket-client supports only hybi-13.
|
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
|
%package -n python3-websocket-client
|
||||||
%{?python_provide:%python_provide python3-websocket-client}
|
%{?python_provide:%python_provide python3-websocket-client}
|
||||||
@ -43,15 +32,9 @@ websocket-client supports only hybi-13.
|
|||||||
rm -rf websocket_client.egg-info
|
rm -rf websocket_client.egg-info
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py2_build
|
|
||||||
%py3_build
|
%py3_build
|
||||||
|
|
||||||
%install
|
%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
|
%py3_install
|
||||||
rm -rf $RPM_BUILD_ROOT%{python3_sitelib}/websocket/cacert.pem
|
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
|
ln -s /etc/pki/tls/cert.pem $RPM_BUILD_ROOT%{python3_sitelib}/websocket/cacert.pem
|
||||||
@ -60,12 +43,6 @@ mv $RPM_BUILD_ROOT%{_bindir}/wsdump.py $RPM_BUILD_ROOT%{_bindir}/wsdump
|
|||||||
|
|
||||||
%check
|
%check
|
||||||
%{__python3} setup.py test
|
%{__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
|
%files -n python3-websocket-client
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
@ -74,6 +51,9 @@ mv $RPM_BUILD_ROOT%{_bindir}/wsdump.py $RPM_BUILD_ROOT%{_bindir}/wsdump
|
|||||||
%{_bindir}/wsdump
|
%{_bindir}/wsdump
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Oct 30 2020 yanglongkang <yanglongkang@huawei.com> - 0.57.0-2
|
||||||
|
- remove python2 dependency
|
||||||
|
|
||||||
* Thu Jul 16 2020 jixinjie <jixinjie@huawei.com> - 0.57.0-1
|
* Thu Jul 16 2020 jixinjie <jixinjie@huawei.com> - 0.57.0-1
|
||||||
- update package to 0.57.0
|
- update package to 0.57.0
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user