diff --git a/python-websockets.spec b/python-websockets.spec new file mode 100644 index 0000000000000000000000000000000000000000..1c80565f38cedf06caeeac6a0f6bc23b8885c6a0 --- /dev/null +++ b/python-websockets.spec @@ -0,0 +1,71 @@ +%define anolis_release 1 + +%global pypi_name websockets + +%ifarch x86_64 +%bcond_without tests +%endif + +Name: python-%{pypi_name} +Version: 10.4 +Release: %{anolis_release}%{dist} + +Summary: Implementation of the WebSocket Protocol for Python + +License: BSD +URL: https://github.com/aaugustin/websockets +Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz + +BuildRequires: gcc + +%global _description %{expand: +websockets is a library for developing WebSocket servers and clients in +Python. It implements RFC 6455 with a focus on correctness and simplicity. It +passes the Autobahn Testsuite. + +Built on top of Python’s asynchronous I/O support introduced in PEP 3156, it +provides an API based on coroutines, making it easy to write highly concurrent +applications.} + +%description %{_description} + +%package -n python3-%{pypi_name} +Summary: %{summary} +BuildRequires: python3-devel + +%description -n python3-%{pypi_name} %{_description} + +%package -n python3-%{pypi_name}-doc +Summary: Documentation files for %{name} +Requires: python3-%{pypi_name} = %{EVR} +BuildArch: noarch + +%description -n python3-%{pypi_name}-doc +The %{name}-doc package contains documentation files for %{name}. + +%prep +%autosetup -n %{pypi_name}-%{version} -p1 + +%generate_buildrequires +%pyproject_buildrequires %{?with_tests:-t} + +%build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files websockets + +%check +%if %{with tests} +%tox +%endif + +%files -n python3-%{pypi_name} -f %{pyproject_files} + +%files -n python3-%{pypi_name}-doc +%doc README.rst + +%changelog +* Tue Mar 28 2023 yuanhui - 10.4-1 +- Init package from upstream diff --git a/websockets-10.4.tar.gz b/websockets-10.4.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..d14b2bb6ea63e08bc9259bd92cd796df61d7115d Binary files /dev/null and b/websockets-10.4.tar.gz differ