From eb6383ecf6f7e0a948205f08a213eebc6c061fe376c10a20656cbd862d497564 Mon Sep 17 00:00:00 2001 From: Nico Krapp Date: Tue, 27 May 2025 13:00:22 +0000 Subject: [PATCH] Accepting request 1280490 from home:mcalabkova:branches:devel:languages:python - Convert to pip-based build OBS-URL: https://build.opensuse.org/request/show/1280490 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dbf?expand=0&rev=21 --- python-dbf.changes | 5 +++++ python-dbf.spec | 12 +++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/python-dbf.changes b/python-dbf.changes index 5b307a7..01b2490 100644 --- a/python-dbf.changes +++ b/python-dbf.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon May 26 11:26:32 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Wed Jan 4 16:19:13 UTC 2023 - Dirk Müller diff --git a/python-dbf.spec b/python-dbf.spec index 14e9ca6..ca7570e 100644 --- a/python-dbf.spec +++ b/python-dbf.spec @@ -1,7 +1,7 @@ # # spec file for package python-dbf # -# 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 @@ -16,7 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-dbf Version: 0.99.3 Release: 0 @@ -25,8 +24,10 @@ License: BSD-3-Clause URL: https://pypi.org/project/dbf/ Source: https://files.pythonhosted.org/packages/source/d/dbf/dbf-%{version}.tar.gz BuildRequires: %{python_module aenum} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytz} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-aenum @@ -44,12 +45,13 @@ fields are supported. %prep %setup -q -n dbf-%{version} +chmod -x dbf/LICENSE dbf/README.md dbf/WHATSNEW %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -57,7 +59,7 @@ fields are supported. %files %{python_files} %license dbf/LICENSE -%{python_sitelib}/dbf-%{version}-py*.egg-info +%{python_sitelib}/dbf-%{version}*-info %{python_sitelib}/dbf %changelog