|
|
@ -2,7 +2,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-%{pypi_name}
|
|
|
|
Name: python-%{pypi_name}
|
|
|
|
Version: 10.0
|
|
|
|
Version: 10.0
|
|
|
|
Release: 2%{?dist}
|
|
|
|
Release: 3%{?dist}
|
|
|
|
Summary: An implementation of the WebSocket Protocol for python with asyncio
|
|
|
|
Summary: An implementation of the WebSocket Protocol for python with asyncio
|
|
|
|
|
|
|
|
|
|
|
|
License: BSD
|
|
|
|
License: BSD
|
|
|
@ -10,50 +10,50 @@ URL: https://github.com/aaugustin/websockets
|
|
|
|
Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz
|
|
|
|
Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
|
|
|
BuildRequires: pyproject-rpm-macros
|
|
|
|
|
|
|
|
|
|
|
|
%global _description \
|
|
|
|
%global _description %{expand:
|
|
|
|
websockets is a library for developing WebSocket servers and clients in\
|
|
|
|
websockets is a library for developing WebSocket servers and clients in
|
|
|
|
Python. It implements RFC 6455 with a focus on correctness and simplicity. It\
|
|
|
|
Python. It implements RFC 6455 with a focus on correctness and simplicity. It
|
|
|
|
passes the Autobahn Testsuite.\
|
|
|
|
passes the Autobahn Testsuite.
|
|
|
|
\
|
|
|
|
|
|
|
|
Built on top of Python’s asynchronous I/O support introduced in PEP 3156, it\
|
|
|
|
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\
|
|
|
|
provides an API based on coroutines, making it easy to write highly concurrent
|
|
|
|
applications.
|
|
|
|
applications.}
|
|
|
|
|
|
|
|
|
|
|
|
%description %{_description}
|
|
|
|
%description %{_description}
|
|
|
|
|
|
|
|
|
|
|
|
%package -n python3-%{pypi_name}
|
|
|
|
%package -n python3-%{pypi_name}
|
|
|
|
Summary: %{summary}
|
|
|
|
Summary: %{summary}
|
|
|
|
BuildRequires: python3-devel >= 3.6.1
|
|
|
|
BuildRequires: python3-devel >= 3.7
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description -n python3-%{pypi_name} %{_description}
|
|
|
|
%description -n python3-%{pypi_name} %{_description}
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%autosetup -n %{pypi_name}-%{version} -p1
|
|
|
|
%autosetup -n %{pypi_name}-%{version} -p1
|
|
|
|
# Remove upstream's egg-info
|
|
|
|
|
|
|
|
rm -vrf %{pypi_name}.egg-info
|
|
|
|
%generate_buildrequires
|
|
|
|
|
|
|
|
%pyproject_buildrequires -t
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
%py3_build
|
|
|
|
%pyproject_wheel
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
%py3_install
|
|
|
|
%pyproject_install
|
|
|
|
# Remove installed C file
|
|
|
|
%pyproject_save_files websockets
|
|
|
|
rm -vf %{buildroot}%{python3_sitearch}/%{pypi_name}/speedups.c
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
# Skip tests because they fail on Python 3.8. See: https://github.com/aaugustin/websockets/issues/648
|
|
|
|
%tox
|
|
|
|
# WEBSOCKETS_TESTS_TIMEOUT_FACTOR=100 %%{__python3} setup.py test
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n python3-%{pypi_name}
|
|
|
|
%files -n python3-%{pypi_name} -f %{pyproject_files}
|
|
|
|
%license LICENSE
|
|
|
|
|
|
|
|
%doc README.rst
|
|
|
|
%doc README.rst
|
|
|
|
%{python3_sitearch}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/
|
|
|
|
|
|
|
|
%{python3_sitearch}/%{pypi_name}/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Wed Feb 02 2022 Carl George <carl@george.computer> - 10.0-3
|
|
|
|
|
|
|
|
- Convert to pyproject macros
|
|
|
|
|
|
|
|
- Run test suite in %%check
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 10.0-2
|
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 10.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|