From 3cfce7ae551e034ec59c0ddf4db0e9548b90eaf2 Mon Sep 17 00:00:00 2001 From: Maxwell G Date: Fri, 20 Oct 2023 01:45:23 +0000 Subject: [PATCH] Use the pyproject macros The %py3_build and %py3_install macros are obsolete and rely on deprecated calls to setup.py. --- python-resolvelib.spec | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/python-resolvelib.spec b/python-resolvelib.spec index 0521927..8d0e9bc 100644 --- a/python-resolvelib.spec +++ b/python-resolvelib.spec @@ -12,7 +12,6 @@ Source0: %{pypi_source} BuildArch: noarch BuildRequires: python3-devel -BuildRequires: python3dist(setuptools) %global _description %{expand: ResolveLib at the highest level provides a Resolver class that @@ -34,17 +33,24 @@ Summary: %{summary} %prep %autosetup -n %{pypi_name}-%{version} + +%generate_buildrequires +%pyproject_buildrequires + + %build -%py3_build +%pyproject_wheel + %install -%py3_install +%pyproject_install +%pyproject_save_files %{pypi_name} -%files -n python3-%{pypi_name} + +%files -n python3-%{pypi_name} -f %{pyproject_files} %license LICENSE %doc README.rst -%{python3_sitelib}/%{pypi_name} -%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info + %changelog * Fri Oct 20 2023 Maxwell G - 1.0.1-1