From f2c26683d5c8707b4473c6728cd8949e16bdfa549baac08ff06f5aa222e7e0bf Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Wed, 18 Jun 2025 16:34:52 +0000 Subject: [PATCH] Accepting request 1286230 from home:StevenK:branches:Application:Geo - Use pyproject macros to build and install. OBS-URL: https://build.opensuse.org/request/show/1286230 OBS-URL: https://build.opensuse.org/package/show/Application:Geo/python-maxminddb?expand=0&rev=8 --- python-maxminddb.changes | 5 +++++ python-maxminddb.spec | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/python-maxminddb.changes b/python-maxminddb.changes index 0ab7d1a..1bce754 100644 --- a/python-maxminddb.changes +++ b/python-maxminddb.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jun 17 04:35:55 UTC 2025 - Steve Kowalik + +- Use pyproject macros to build and install. + ------------------------------------------------------------------- Wed Apr 30 07:57:16 UTC 2025 - Sebastian Wagner diff --git a/python-maxminddb.spec b/python-maxminddb.spec index c07ada9..cab07f9 100644 --- a/python-maxminddb.spec +++ b/python-maxminddb.spec @@ -27,6 +27,7 @@ URL: http://www.maxmind.com/ Source: https://files.pythonhosted.org/packages/source/m/maxminddb/maxminddb-%{version}.tar.gz BuildRequires: %{python_module devel >= 3.6} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module pip} BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: libmaxminddb-devel @@ -49,10 +50,10 @@ sed -i '/nose/d' setup.py %build export CFLAGS="%{optflags}" -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitearch} %check @@ -62,6 +63,6 @@ export CFLAGS="%{optflags}" %license LICENSE %doc README.rst %{python_sitearch}/maxminddb/ -%{python_sitearch}/maxminddb-%{version}*-info +%{python_sitearch}/maxminddb-%{version}.dist-info %changelog