From 23fbcf0915a326bf828937d690faf63965f8c24e873c4ed4887435f8e6db9045 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 26 May 2025 11:38:11 +0000 Subject: [PATCH] Accepting request 1280132 from home:mcalabkova:branches:devel:languages:python - Convert to pip-based build OBS-URL: https://build.opensuse.org/request/show/1280132 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dbfread?expand=0&rev=14 --- python-dbfread.changes | 5 +++++ python-dbfread.spec | 12 +++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/python-dbfread.changes b/python-dbfread.changes index a11796f..f00bd64 100644 --- a/python-dbfread.changes +++ b/python-dbfread.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon May 26 11:27:21 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Tue Jul 23 11:06:07 UTC 2024 - Berthold Gunreben diff --git a/python-dbfread.spec b/python-dbfread.spec index e1b1a2b..e559879 100644 --- a/python-dbfread.spec +++ b/python-dbfread.spec @@ -1,7 +1,7 @@ # # spec file for package python-dbfread # -# Copyright (c) 2024 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 @@ -16,7 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-dbfread Version: 2.0.7 Release: 0 @@ -28,8 +27,10 @@ Source: https://files.pythonhosted.org/packages/source/d/dbfread/dbfread # gh#olemb/dbfread#33 Patch0: pytest4.patch Patch1: field_parser.patch +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -45,10 +46,10 @@ batch jobs and one-off scripts. %autosetup -p1 -n dbfread-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -57,6 +58,7 @@ batch jobs and one-off scripts. %files %{python_files} %doc README.rst %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/dbfread +%{python_sitelib}/dbfread-%{version}*-info %changelog