Merge pull request #1 from rosalinuxro/python-websockets:rosa2023.1

abfonly
This commit is contained in:
abfonly 2023-04-22 07:21:19 +00:00
commit 8616ef07d4
2 changed files with 13 additions and 8 deletions

View file

@ -1,2 +1,2 @@
sources:
websockets-10.3.tar.gz: c0d4308332bc892d44d61276c93e02fd5d6e5625
websockets-11.0.2.tar.gz: faa4e5120b38e3d7897ab64570dba32a0c543daf

View file

@ -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,13 @@ 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
# test needs internet connections
# %%py3_test