diff --git a/python-pyinotify.changes b/python-pyinotify.changes index 0947089..01ca86a 100644 --- a/python-pyinotify.changes +++ b/python-pyinotify.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jun 11 05:49:29 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. + ------------------------------------------------------------------- Wed Mar 26 11:57:29 UTC 2025 - Nico Krapp diff --git a/python-pyinotify.spec b/python-pyinotify.spec index b55133a..5413f06 100644 --- a/python-pyinotify.spec +++ b/python-pyinotify.spec @@ -34,7 +34,9 @@ Source: https://files.pythonhosted.org/packages/source/p/pyinotify/pyino Source1: pyinotify # PATCH-FIX_UPSTREAM https://github.com/seb-m/pyinotify/pull/205 Patch0: make_asyncore_support_optional.patch +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: python-rpm-macros %if %{with libalternatives} Requires: alts @@ -70,10 +72,10 @@ sed -i "s|#!%{_bindir}/env python|#!%__python2|" python2/examples/*py sed -i "s|#!%{_bindir}/env python|#!%__python3|" python3/examples/*py %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install install -D -m 0755 %{SOURCE1} %{buildroot}%{_bindir}/pyinotify %python_clone -a %{buildroot}%{_bindir}/pyinotify @@ -94,7 +96,7 @@ install -D -m 0755 %{SOURCE1} %{buildroot}%{_bindir}/pyinotify %doc python3/examples %python_alternative %{_bindir}/pyinotify %{python_sitelib}/pyinotify.py -%{python_sitelib}/pyinotify-%{version}*.egg-info -%pycache_only %{python_sitelib}/__pycache__ +%pycache_only %{python_sitelib}/__pycache__/pyinotify.*.pyc +%{python_sitelib}/pyinotify-%{version}.dist-info %changelog