diff --git a/.abf.yml b/.abf.yml index bd965ee..8053b49 100644 --- a/.abf.yml +++ b/.abf.yml @@ -1,2 +1,2 @@ sources: - websockets-10.3.tar.gz: c0d4308332bc892d44d61276c93e02fd5d6e5625 + websockets-11.0.2.tar.gz: faa4e5120b38e3d7897ab64570dba32a0c543daf diff --git a/python-websockets.spec b/python-websockets.spec index 3e554b2..ee3494e 100644 --- a/python-websockets.spec +++ b/python-websockets.spec @@ -4,8 +4,8 @@ %define __typelib_path %{nil} Name: python-%{pypi_name} -Version: 10.3 -Release: 2 +Version: 11.0.2 +Release: 1 Summary: An implementation of the WebSocket Protocol for python with asyncio License: BSD Group: Development/Python @@ -28,8 +28,8 @@ applications. %package -n python3-%{pypi_name} Summary: %{summary} -BuildRequires: python3-devel -BuildRequires: python3-setuptools +BuildRequires: pkgconfig(python-3.11) +BuildRequires: python3egg(setuptools) >= 67.2 %description -n python3-%{pypi_name} %{_description} @@ -37,8 +37,8 @@ BuildRequires: python3-setuptools %files -n python3-%{pypi_name} %license LICENSE %doc README.rst -%{python3_sitearch}/%{pypi_name}-%{version}-py%{python3_version}.egg-info -%{python3_sitearch}/%{pypi_name} +%{py3_platsitedir}/%{pypi_name}-%{version}-py%{python3_version}.egg-info +%{py3_platsitedir}/%{pypi_name} #------------------------------------------------------------------------- @@ -53,8 +53,12 @@ rm -vrf %{pypi_name}.egg-info %install %py3_install # Remove installed C file -rm -vf %{buildroot}%{python3_sitearch}/%{pypi_name}/speedups.c +rm -vf %{buildroot}%{py3_platsitedir}/%{pypi_name}/speedups.c +# zerolenght +find %{buildroot} -type f -empty -delete %check # Skip tests because they fail on Python 3.8. See: https://github.com/aaugustin/websockets/issues/648 # WEBSOCKETS_TESTS_TIMEOUT_FACTOR=100 %%{__python3} setup.py test +%py3_test +