From c0c9985df2e987f3d763d2e070a576d3ade2a44cdff69ddcf7a6bb54ab7127d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Thu, 12 Jun 2025 12:01:14 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-simpleaudio?expand=0&rev=10 --- python-simpleaudio.changes | 5 +++++ python-simpleaudio.spec | 18 +++++++++--------- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/python-simpleaudio.changes b/python-simpleaudio.changes index 19b2f0b..267bd90 100644 --- a/python-simpleaudio.changes +++ b/python-simpleaudio.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jun 12 12:00:01 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Mon Dec 2 16:12:51 UTC 2019 - Todd R diff --git a/python-simpleaudio.spec b/python-simpleaudio.spec index 3960b36..0917a85 100644 --- a/python-simpleaudio.spec +++ b/python-simpleaudio.spec @@ -1,7 +1,7 @@ # # spec file for package python-simpleaudio # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# 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,43 +16,43 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define skip_python2 1 Name: python-simpleaudio Version: 1.0.4 Release: 0 Summary: Asynchronous audio playback for Python License: MIT Group: Development/Languages/Python -Url: https://github.com/hamiltron/py-simple-audio +URL: https://github.com/hamiltron/py-simple-audio Source: https://files.pythonhosted.org/packages/source/s/simpleaudio/simpleaudio-%{version}.tar.gz BuildRequires: %{python_module devel} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes +BuildRequires: pkgconfig BuildRequires: python-rpm-macros BuildRequires: pkgconfig(alsa) - %python_subpackages %description The simplaudio package provides audio playback capability for Python 3 on OSX, Windows, and Linux. - %prep %setup -q -n simpleaudio-%{version} %build export CFLAGS="%{optflags}" -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitearch} %files %{python_files} %doc README.rst %license LICENSE.txt -%{python_sitearch}/* +%{python_sitearch}/simpleaudio +%{python_sitearch}/simpleaudio-%{version}*-info %changelog