From ee30360a2abce6426d92c8bc975f402e2c5e4d075f1fc4e7b44a108bd0a81747 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Wed, 4 Jun 2025 09:03:35 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pybluez?expand=0&rev=20 --- python-pybluez.changes | 5 +++++ python-pybluez.spec | 10 ++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/python-pybluez.changes b/python-pybluez.changes index f25d122..51cdd5f 100644 --- a/python-pybluez.changes +++ b/python-pybluez.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jun 4 09:01:21 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Thu Jul 27 08:26:16 UTC 2023 - ecsos diff --git a/python-pybluez.spec b/python-pybluez.spec index 007fc10..5836226 100644 --- a/python-pybluez.spec +++ b/python-pybluez.spec @@ -1,7 +1,7 @@ # # spec file for package python-pybluez # -# 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 @@ -27,7 +27,9 @@ Group: Development/Libraries/Python URL: https://pybluez.github.io/ Source: https://github.com/pybluez/pybluez/archive/%{rev}.tar.gz#/pybluez-%{rev}.tar.gz BuildRequires: %{python_module devel} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: bluez-devel BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -45,10 +47,10 @@ Bluetooth applications. %build export CFLAGS="%{optflags} -fno-strict-aliasing" -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitearch} #%%check @@ -58,6 +60,6 @@ export CFLAGS="%{optflags} -fno-strict-aliasing" %license COPYING %doc CHANGELOG README.md %{python_sitearch}/bluetooth/ -%{python_sitearch}/PyBluez-*.egg-info +%{python_sitearch}/[Pp]y[Bb]luez-%{version}*-info %changelog