Compare commits

2 Commits

2 changed files with 13 additions and 6 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jun 4 06:08:04 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
-------------------------------------------------------------------
Mon May 29 15:35:52 UTC 2023 - pgajdos@suse.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-txWS
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -21,7 +21,6 @@ Version: 0.9.1
Release: 0
Summary: Twisted WebSockets wrapper
License: X11
Group: Development/Languages/Python
URL: https://github.com/MostAwesomeDude/txWS
Source0: https://files.pythonhosted.org/packages/source/t/txWS/txWS-%{version}.tar.gz
# https://github.com/MostAwesomeDude/txWS/commit/9e3a2a464b1c908086c82b293c271e58196f83df
@@ -31,8 +30,10 @@ Patch0: python-txWS-no-python2.patch
# https://github.com/MostAwesomeDude/txWS/commit/05aadd036a7d9a0959c0d915a139779706e960d7
Patch1: python-txWS-tobytes.patch
BuildRequires: %{python_module Twisted}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module vcversioner}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: python3-pyupgrade
@@ -48,10 +49,10 @@ adding WebSockets server support to Twisted applications.
%autosetup -p1 -n txWS-%{version}
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
@@ -65,7 +66,8 @@ sed -i 's:\(challenge = \)\(.*\):\1b\2:' tests.py
%files %{python_files}
%license LICENSE
%doc CHANGELOG.rst README.rst
%{python_sitelib}/tx{WS,ws}*
%{python_sitelib}/__pycache__
%{python_sitelib}/tx{WS,ws}.py
%pycache_only %{python_sitelib}/__pycache__/tx{WS,ws}*.pyc
%{python_sitelib}/tx{WS,ws}-%{version}.dist-info
%changelog