diff --git a/python-websocket-client.spec b/python-websocket-client.spec new file mode 100644 index 0000000000000000000000000000000000000000..edc7e380959170c9393bf72dd5ca67970f967c35 --- /dev/null +++ b/python-websocket-client.spec @@ -0,0 +1,68 @@ +%define anolis_release 1 + +# what it's called on pypi +%global srcname websocket-client +# what it's imported as +%global libname websocket + +%global common_description %{expand: +websocket-client is a WebSocket client for Python. It provides access to low +level APIs for WebSockets. websocket-client implements version hybi-13 of the +WebSocket protocol. This client does not currently support the +permessage-deflate extension from RFC 7692.} + +Name: python-%{srcname} +Version: 1.3.3 +Release: %{anolis_release}%{dist} + +Summary: WebSocket client for python +License: ASL 2.0 +URL: https://github.com/websocket-client/websocket-client +Source0: %pypi_source +BuildArch: noarch + +%description %{common_description} + +%package -n python3-%{srcname} +Summary: %{summary} +BuildRequires: python3-devel +BuildRequires: %{py3_dist pytest} + +Conflicts: python2-websocket-client <= 0.40.0-4 + +%description -n python3-%{srcname} %{common_description} + +%package -n python3-%{srcname}-doc +Summary: Documentation files for %{name} +Requires: python3-%{srcname} = %{EVR} +BuildArch: noarch + +%description -n python3-%{srcname}-doc +The %{name}-doc package contains documentation files for %{name}. + +%prep +%autosetup -n %{srcname}-%{version} + +%generate_buildrequires +%pyproject_buildrequires -x test + +%build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files %{libname} + +%check +%pytest websocket/tests + +%files -n python3-%{srcname} -f %{pyproject_files} +%license LICENSE +%{_bindir}/wsdump + +%files -n python3-%{srcname}-doc +%doc README.md ChangeLog + +%changelog +* Tue Mar 28 2023 yuanhui - 1.3.3-1 +- Init package from upstream diff --git a/websocket-client-1.3.3.tar.gz b/websocket-client-1.3.3.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..9c473024a1aa31433f9bb344a8afd0e712556a95 Binary files /dev/null and b/websocket-client-1.3.3.tar.gz differ