From 1f5f58a225b9d5ed9f08f87970f8794bbaaaac3380ccc05712b116580e7061ae Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Fri, 11 Apr 2025 07:20:00 +0000 Subject: [PATCH] - Clean up the SPEC file. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pycares?expand=0&rev=26 --- python-pycares.changes | 5 +++++ python-pycares.spec | 13 ++++++------- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/python-pycares.changes b/python-pycares.changes index 3d460c0..d3edf41 100644 --- a/python-pycares.changes +++ b/python-pycares.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Apr 11 07:18:09 UTC 2025 - Matej Cepl + +- Clean up the SPEC file. + ------------------------------------------------------------------- Thu Apr 10 12:28:57 UTC 2025 - John Paul Adrian Glaubitz diff --git a/python-pycares.spec b/python-pycares.spec index c628ec6..2da105e 100644 --- a/python-pycares.spec +++ b/python-pycares.spec @@ -16,8 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define skip_python2 1 %{?sle15_python_module_pythons} Name: python-pycares Version: 4.6.0 @@ -32,7 +30,9 @@ Source: https://files.pythonhosted.org/packages/source/p/pycares/pycares Patch0: cleanup_tests.patch BuildRequires: %{python_module cffi} BuildRequires: %{python_module devel} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: c-ares-devel BuildRequires: fdupes BuildRequires: gcc @@ -49,13 +49,11 @@ resolutions asynchronously %prep %autosetup -p1 -n pycares-%{version} -rm -Rf - %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitearch} %check @@ -66,6 +64,7 @@ rm -Rf %files %{python_files} %license LICENSE %doc ChangeLog README.rst -%{python_sitearch}/* +%{python_sitearch}/pycares +%{python_sitearch}/pycares-%{version}*-info %changelog