代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/python-websocket-client 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
Name: python-websocket-client
Version: 0.47.0
Release: 6
Summary: WebSocket client for python
License: LGPLv2
URL: https://github.com/websocket-client/websocket-client
Source0: https://files.pythonhosted.org/packages/source/w/websocket-client/websocket_client-%{version}.tar.gz
BuildArch: noarch
%description
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 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
BuildRequires: python3-devel, python3-setuptools, python3-six
Requires: python3-six
Conflicts: python2-websocket-client <= 0.40.0-4
%description -n python3-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.
%prep
%autosetup -n websocket_client-%{version} -p1
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
rm -r $RPM_BUILD_ROOT%{python3_sitelib}/websocket/tests
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
%doc README.rst
%{python3_sitelib}/*
%{_bindir}/wsdump
%changelog
* Sat Feb 22 2020 hy-euler <eulerstoragemt@huawei.com> - 0.47.0-6
- modify the require of python-backports-ssl_match_hostname and python-six to python2
* Thu Feb 13 2020 Ruijun Ge <geruijun@huawei.com> - 0.47.0-5
- init package
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。