From d74ba041bfbefc6b4eac2b0415a40301c2a8b8f6 Mon Sep 17 00:00:00 2001 From: Sergey Zhemoytel Date: Mon, 29 Jan 2024 14:04:51 +0000 Subject: [PATCH] 12.0 --- .abf.yml | 2 +- python-websockets-setup.patch | 32 ++++++++++++++++++++++++++++++ python-websockets.spec | 37 ++++++++--------------------------- 3 files changed, 41 insertions(+), 30 deletions(-) create mode 100644 python-websockets-setup.patch diff --git a/.abf.yml b/.abf.yml index 0b96c84..682b2d6 100644 --- a/.abf.yml +++ b/.abf.yml @@ -1,2 +1,2 @@ sources: - websockets-7.0.tar.gz: 7f2823a1f004c3f0a7e762dcf4bd83ee49f589aa + websockets-12.0.tar.gz: 4cf2561bba8bb7bae862706eca7d5e378fe7b0c6 diff --git a/python-websockets-setup.patch b/python-websockets-setup.patch new file mode 100644 index 0000000..fc7229a --- /dev/null +++ b/python-websockets-setup.patch @@ -0,0 +1,32 @@ +diff --git a/setup.py.orig b/setup.py +index ae0aaa6..f286273 100644 +--- a/setup.py.orig ++++ b/setup.py +@@ -32,7 +32,27 @@ else: + + # Static values are declared in pyproject.toml. + setuptools.setup( ++ name='websockets', + version=version, + long_description=long_description, + ext_modules=ext_modules, ++ url='https://github.com/python-websockets/websockets', ++ author='Aymeric Augustin', ++ author_email='aymeric.augustin@m4x.org', ++ license='BSD', ++ classifiers=[ ++ 'Development Status :: 5 - Production/Stable', ++ 'Environment :: Web Environment', ++ 'Intended Audience :: Developers', ++ 'License :: OSI Approved :: BSD License', ++ 'Operating System :: OS Independent', ++ 'Programming Language :: Python', ++ 'Programming Language :: Python :: 3', ++ 'Programming Language :: Python :: 3.8', ++ 'Programming Language :: Python :: 3.9', ++ 'Programming Language :: Python :: 3.10', ++ 'Programming Language :: Python :: 3.11', ++ ], ++ python_requires='>=3.8', ++ test_loader='unittest:TestLoader', + ) diff --git a/python-websockets.spec b/python-websockets.spec index c96a308..b082474 100644 --- a/python-websockets.spec +++ b/python-websockets.spec @@ -1,16 +1,17 @@ %define pypi_name websockets # gi-find-deps.sh is very slow but is not needed here, it may be installed locally -%define __typelib_path %{nil} +#define __typelib_path %{nil} Name: python-%{pypi_name} -Version: 7.0 +Version: 12.0 Release: 1 Summary: An implementation of the WebSocket Protocol for python with asyncio License: BSD Group: Development/Python URL: https://github.com/aaugustin/websockets Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz +Patch0: python-websockets-setup.patch BuildRequires: gcc %global _description \ @@ -26,22 +27,6 @@ applications. #------------------------------------------------------------------------- -%package -n python3-%{pypi_name} -Summary: %{summary} -BuildRequires: pkgconfig(python3) -BuildRequires: python3egg(setuptools) -# the 10.1 pops up always. -Obsoletes: python3-%{pypi_name} < %{EVRD} - -%description -n python3-%{pypi_name} -%{_description} - -%files -n python3-%{pypi_name} -%doc README.rst LICENSE -%{py3_platsitedir}/%{pypi_name}-%{version}-py%{python3_version}.egg-info -%{py3_platsitedir}/%{pypi_name} - -#------------------------------------------------------------------------- %package -n python38-%{pypi_name} Summary: %{summary} @@ -62,24 +47,18 @@ Obsoletes: python38-%{pypi_name} < %{EVRD} %prep %setup -qn %{pypi_name}-%{version} -# Remove upstream's egg-info -rm -vrf %{pypi_name}.egg-info +%patch0 -p1 -cp -a . %{py38dir} +# Remove upstream's egg-info +#rm -vrf %{pypi_name}.egg-info + +#cp -a . %{py38dir} %build -%py3_build - -pushd %{py38dir} %py38_build -popd %install -%py3_install - -pushd %{py38dir} %py38_install -popd # Remove installed C file rm -vf %{buildroot}%{py3_platsitedir}/%{pypi_name}/speedups.c %{buildroot}%{py38_platsitedir}/%{pypi_name}/speedups.c