From be6bf53fcead9b831a0b9c6d51fa288ec9d0e9a1f893efbf3c308a567721161a Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Thu, 12 Jun 2025 05:09:28 +0000 Subject: [PATCH] - Switch to pyproject macros. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ua-parser?expand=0&rev=15 --- python-ua-parser.changes | 5 +++++ python-ua-parser.spec | 10 ++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/python-ua-parser.changes b/python-ua-parser.changes index 5d4c278..cbe06ee 100644 --- a/python-ua-parser.changes +++ b/python-ua-parser.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jun 12 05:01:34 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. + ------------------------------------------------------------------- Fri Dec 8 12:28:05 UTC 2023 - Dirk Müller diff --git a/python-ua-parser.spec b/python-ua-parser.spec index 67be37c..4899311 100644 --- a/python-ua-parser.spec +++ b/python-ua-parser.spec @@ -1,7 +1,7 @@ # # spec file for package python-ua-parser # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -25,7 +25,9 @@ License: Apache-2.0 URL: https://github.com/ua-parser/uap-python Source: https://files.pythonhosted.org/packages/source/u/ua-parser/ua-parser-%{version}.tar.gz BuildRequires: %{python_module PyYAML} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -39,10 +41,10 @@ https://github.com/tobie/ua-parser) %setup -q -n ua-parser-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}/%{$python_sitelib} %check @@ -51,6 +53,6 @@ https://github.com/tobie/ua-parser) %files %{python_files} %{python_sitelib}/ua_parser -%{python_sitelib}/ua_parser-%{version}*-info +%{python_sitelib}/ua_parser-%{version}.dist-info %changelog