From b3106948fc0d5bc5fd6bb1ab3b9ba333237947f3 Mon Sep 17 00:00:00 2001 From: Carl George Date: Wed, 2 Feb 2022 20:46:09 -0600 Subject: [PATCH] Latest upstream 10.1 Resolves: rhbz#2023114 --- python-websockets.spec | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/python-websockets.spec b/python-websockets.spec index 763c72b..ee2a9b5 100644 --- a/python-websockets.spec +++ b/python-websockets.spec @@ -1,8 +1,12 @@ %global pypi_name websockets +%ifarch %{ix86} x86_64 +%bcond_without tests +%endif + Name: python-%{pypi_name} -Version: 10.0 -Release: 3%{?dist} +Version: 10.1 +Release: 1%{?dist} Summary: An implementation of the WebSocket Protocol for python with asyncio License: BSD @@ -10,7 +14,6 @@ URL: https://github.com/aaugustin/websockets Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz BuildRequires: gcc -BuildRequires: pyproject-rpm-macros %global _description %{expand: websockets is a library for developing WebSocket servers and clients in @@ -25,7 +28,7 @@ applications.} %package -n python3-%{pypi_name} Summary: %{summary} -BuildRequires: python3-devel >= 3.7 +BuildRequires: python3-devel %description -n python3-%{pypi_name} %{_description} @@ -33,7 +36,7 @@ BuildRequires: python3-devel >= 3.7 %autosetup -n %{pypi_name}-%{version} -p1 %generate_buildrequires -%pyproject_buildrequires -t +%pyproject_buildrequires %{?with_tests:-t} %build %pyproject_wheel @@ -43,13 +46,19 @@ BuildRequires: python3-devel >= 3.7 %pyproject_save_files websockets %check +%if %{with tests} %tox +%endif %files -n python3-%{pypi_name} -f %{pyproject_files} %doc README.rst %changelog +* Thu Feb 03 2022 Carl George - 10.1-1 +- Latest upstream rhbz#2023114 +- Only run tests on x86 architectures + * Wed Feb 02 2022 Carl George - 10.0-3 - Convert to pyproject macros - Run test suite in %%check