diff --git a/python-ws4py.changes b/python-ws4py.changes index 8fdffc5..bcd7e71 100644 --- a/python-ws4py.changes +++ b/python-ws4py.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Jun 13 02:45:11 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. +- No more greedy globs in %files. + ------------------------------------------------------------------- Fri Mar 28 20:47:08 UTC 2025 - Dirk Müller diff --git a/python-ws4py.spec b/python-ws4py.spec index 770b7e8..6c97949 100644 --- a/python-ws4py.spec +++ b/python-ws4py.spec @@ -16,7 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} %global flavor @BUILD_FLAVOR@%{nil} %if "%{flavor}" == "test" %define psuffix -test @@ -33,7 +32,9 @@ License: BSD-3-Clause Group: Development/Languages/Python URL: https://github.com/Lawouach/WebSocket-for-Python Source: https://files.pythonhosted.org/packages/source/w/ws4py/ws4py-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -56,11 +57,11 @@ defined in RFC 6455. rm test/test_cherrypy.py %build -%python_build +%pyproject_wheel %install %if !%{with test} -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %endif @@ -75,7 +76,8 @@ sed -i 's:from mock:from unittest.mock:' test/test_*.py %files %{python_files} %license LICENSE %doc README.md -%{python_sitelib}/* +%{python_sitelib}/ws4py +%{python_sitelib}/ws4py-%{version}.dist-info %endif %changelog