Latest upstream 10.1
Resolves: rhbz#2023114
This commit is contained in:
parent
ae088f4b71
commit
b3106948fc
@ -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 <carl@george.computer> - 10.1-1
|
||||
- Latest upstream rhbz#2023114
|
||||
- Only run tests on x86 architectures
|
||||
|
||||
* Wed Feb 02 2022 Carl George <carl@george.computer> - 10.0-3
|
||||
- Convert to pyproject macros
|
||||
- Run test suite in %%check
|
||||
|
Loading…
Reference in New Issue
Block a user