mirror of
https://abf.rosa.ru/djam/python-websockets.git
synced 2025-02-23 10:42:54 +00:00
7.0
This commit is contained in:
parent
f2cca3cb80
commit
850eb341cc
2 changed files with 36 additions and 9 deletions
2
.abf.yml
2
.abf.yml
|
@ -1,2 +1,2 @@
|
||||||
sources:
|
sources:
|
||||||
websockets-12.0.tar.gz: 4cf2561bba8bb7bae862706eca7d5e378fe7b0c6
|
websockets-7.0.tar.gz: 7f2823a1f004c3f0a7e762dcf4bd83ee49f589aa
|
||||||
|
|
|
@ -4,13 +4,13 @@
|
||||||
%define __typelib_path %{nil}
|
%define __typelib_path %{nil}
|
||||||
|
|
||||||
Name: python-%{pypi_name}
|
Name: python-%{pypi_name}
|
||||||
Version: 12.0
|
Version: 7.0
|
||||||
Release: 1
|
Release: 1
|
||||||
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
|
||||||
Group: Development/Python
|
Group: Development/Python
|
||||||
URL: https://github.com/aaugustin/websockets
|
URL: https://github.com/aaugustin/websockets
|
||||||
Source0: https://github.com/aaugustin/websockets/archive/%{version}/%{pypi_name}-%{version}.tar.gz
|
Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
|
|
||||||
%global _description \
|
%global _description \
|
||||||
|
@ -28,8 +28,8 @@ applications.
|
||||||
|
|
||||||
%package -n python3-%{pypi_name}
|
%package -n python3-%{pypi_name}
|
||||||
Summary: %{summary}
|
Summary: %{summary}
|
||||||
BuildRequires: pkgconfig(python-3.11)
|
BuildRequires: pkgconfig(python3)
|
||||||
BuildRequires: python3egg(setuptools) >= 67.2
|
BuildRequires: python3egg(setuptools)
|
||||||
# the 10.1 pops up always.
|
# the 10.1 pops up always.
|
||||||
Obsoletes: python3-%{pypi_name} < %{EVRD}
|
Obsoletes: python3-%{pypi_name} < %{EVRD}
|
||||||
|
|
||||||
|
@ -37,25 +37,52 @@ Obsoletes: python3-%{pypi_name} < %{EVRD}
|
||||||
%{_description}
|
%{_description}
|
||||||
|
|
||||||
%files -n python3-%{pypi_name}
|
%files -n python3-%{pypi_name}
|
||||||
%license LICENSE
|
%doc README.rst LICENSE
|
||||||
%doc README.rst
|
|
||||||
%{py3_platsitedir}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
|
%{py3_platsitedir}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
|
||||||
%{py3_platsitedir}/%{pypi_name}
|
%{py3_platsitedir}/%{pypi_name}
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
|
|
||||||
|
%package -n python38-%{pypi_name}
|
||||||
|
Summary: %{summary}
|
||||||
|
BuildRequires: python38-devel
|
||||||
|
BuildRequires: python38-setuptools
|
||||||
|
# the 10.1 pops up always.
|
||||||
|
Obsoletes: python38-%{pypi_name} < %{EVRD}
|
||||||
|
|
||||||
|
%description -n python38-%{pypi_name}
|
||||||
|
%{_description}
|
||||||
|
|
||||||
|
%files -n python38-%{pypi_name}
|
||||||
|
%doc README.rst LICENSE
|
||||||
|
%{py38_platsitedir}/%{pypi_name}-%{version}-py%{python38_version}.egg-info
|
||||||
|
%{py38_platsitedir}/%{pypi_name}
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n %{pypi_name}-%{version} -p1
|
%setup -qn %{pypi_name}-%{version}
|
||||||
# Remove upstream's egg-info
|
# Remove upstream's egg-info
|
||||||
rm -vrf %{pypi_name}.egg-info
|
rm -vrf %{pypi_name}.egg-info
|
||||||
|
|
||||||
|
cp -a . %{py38dir}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py3_build
|
%py3_build
|
||||||
|
|
||||||
|
pushd %{py38dir}
|
||||||
|
%py38_build
|
||||||
|
popd
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py3_install
|
%py3_install
|
||||||
|
|
||||||
|
pushd %{py38dir}
|
||||||
|
%py38_install
|
||||||
|
popd
|
||||||
|
|
||||||
# Remove installed C file
|
# Remove installed C file
|
||||||
rm -vf %{buildroot}%{py3_platsitedir}/%{pypi_name}/speedups.c
|
rm -vf %{buildroot}%{py3_platsitedir}/%{pypi_name}/speedups.c %{buildroot}%{py38_platsitedir}/%{pypi_name}/speedups.c
|
||||||
# zerolenght
|
# zerolenght
|
||||||
find %{buildroot} -type f -empty -delete
|
find %{buildroot} -type f -empty -delete
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue