mirror of
https://abf.rosa.ru/djam/python-websockets.git
synced 2025-02-23 10:42:54 +00:00
12.0
This commit is contained in:
parent
850eb341cc
commit
d74ba041bf
3 changed files with 41 additions and 30 deletions
2
.abf.yml
2
.abf.yml
|
@ -1,2 +1,2 @@
|
|||
sources:
|
||||
websockets-7.0.tar.gz: 7f2823a1f004c3f0a7e762dcf4bd83ee49f589aa
|
||||
websockets-12.0.tar.gz: 4cf2561bba8bb7bae862706eca7d5e378fe7b0c6
|
||||
|
|
32
python-websockets-setup.patch
Normal file
32
python-websockets-setup.patch
Normal file
|
@ -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',
|
||||
)
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue