From 13029d8fff7b09cea0eb4746588c06d47103128936e608e06fd8094cd5850980 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 26 May 2025 11:36:56 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dasbus?expand=0&rev=5 --- python-dasbus.changes | 5 +++++ python-dasbus.spec | 13 +++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/python-dasbus.changes b/python-dasbus.changes index 7e30417..fef0cad 100644 --- a/python-dasbus.changes +++ b/python-dasbus.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon May 26 11:01:06 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Fri Dec 2 01:18:57 UTC 2022 - Yogalakshmi Arunachalam diff --git a/python-dasbus.spec b/python-dasbus.spec index 1cdabb3..afbf7dc 100644 --- a/python-dasbus.spec +++ b/python-dasbus.spec @@ -1,7 +1,7 @@ # # spec file for package python-dasbus # -# Copyright (c) 2022 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,8 +16,6 @@ # -%define skip_python2 1 -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-dasbus Version: 1.7 Release: 0 @@ -27,7 +25,9 @@ Group: Development/Libraries/Python URL: https://github.com/rhinstaller/dasbus Source: https://github.com/rhinstaller/dasbus/releases/download/v%{version}/dasbus-%{version}.tar.gz BuildRequires: %{python_module devel} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: gobject-introspection BuildRequires: python-rpm-macros @@ -42,15 +42,16 @@ DBus library in Python 3, based on GLib and inspired by pydbus. %setup -q -n dasbus-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %files %{python_files} %doc README.md %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/dasbus +%{python_sitelib}/dasbus-%{version}*-info %changelog