加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
python-websocket-client.spec 2.13 KB
一键复制 编辑 原始数据 按行查看 历史
Name: python-websocket-client
Version: 0.58.0
Release: 1
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 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
%py3_build
%install
%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
%files -n python3-websocket-client
%license LICENSE
%doc README.rst
%{python3_sitelib}/*
%{_bindir}/wsdump
%changelog
* Thu Aug 05 2021 liusheng <liusheng2048@gmail.com> - 0.58.0-1
- Upgrade to version 0.58.0
* 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
- update package to 0.57.0
* 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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化