From 3e15f0572ab0b73faace0cfb387aee1cd5bb7d496ebfb58ee4938afa8ca3e674 Mon Sep 17 00:00:00 2001 From: Nico Krapp Date: Mon, 26 May 2025 12:36:28 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dbus_next?expand=0&rev=4 --- python-dbus_next.changes | 5 +++++ python-dbus_next.spec | 14 +++++++------- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/python-dbus_next.changes b/python-dbus_next.changes index dfa0045..54a1e01 100644 --- a/python-dbus_next.changes +++ b/python-dbus_next.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon May 26 11:28:49 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Wed Sep 29 14:57:58 UTC 2021 - Matej Cepl diff --git a/python-dbus_next.spec b/python-dbus_next.spec index 264f18a..978ee45 100644 --- a/python-dbus_next.spec +++ b/python-dbus_next.spec @@ -1,7 +1,7 @@ # # spec file for package python-dbus_next # -# Copyright (c) 2021 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-%{**}} %define modname python-dbus-next Name: python-dbus_next Version: 0.2.3 @@ -27,11 +25,12 @@ License: MIT URL: https://github.com/altdesktop/python-dbus-next Source0: https://github.com/altdesktop/python-dbus-next/archive/v%{version}/%{modname}-%{version}.tar.gz Source99: python-dbus_next-rpmlintrc +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch - %python_subpackages %description @@ -55,10 +54,10 @@ Completely documented public API. %setup -q -n %{modname}-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} # Test are only supported inside provided docker container. https://github.com/altdesktop/python-dbus-next/issues/94#issuecomment-881654674 @@ -66,6 +65,7 @@ Completely documented public API. %files %{python_files} %doc CHANGELOG.md README.md %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/dbus_next +%{python_sitelib}/dbus_next-%{version}*-info %changelog