From f1848bd32f26eb646e20153537cb2cdc51ba1047e1c4a7041a25984ce1b05c21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Thu, 12 Jun 2025 12:15:39 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sox?expand=0&rev=7 --- python-sox.changes | 5 +++++ python-sox.spec | 13 +++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/python-sox.changes b/python-sox.changes index 39b1480..3e88a7f 100644 --- a/python-sox.changes +++ b/python-sox.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jun 12 12:15:28 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Tue May 14 11:32:32 UTC 2024 - Daniel Garcia diff --git a/python-sox.spec b/python-sox.spec index 53a37a4..cea58aa 100644 --- a/python-sox.spec +++ b/python-sox.spec @@ -1,7 +1,7 @@ # # spec file for package python-sox # -# Copyright (c) 2024 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 @@ -19,16 +19,18 @@ Name: python-sox Version: 1.5.0 Release: 0 -License: BSD-3-Clause Summary: Python wrapper around SoX -URL: https://github.com/rabitt/pysox +License: BSD-3-Clause Group: Development/Languages/Python +URL: https://github.com/rabitt/pysox Source: https://github.com/marl/pysox/archive/v%{version}/sox-%{version}.tar.gz BuildRequires: %{python_module numpy} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module soundfile} BuildRequires: %{python_module typing-extensions} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRequires: sox @@ -36,7 +38,6 @@ Requires: python-numpy Requires: python-typing-extensions Requires: sox BuildArch: noarch - %python_subpackages %description @@ -52,10 +53,10 @@ This is a Python wrapper for SOX. sed -i -e '/^#!\//, 1d' sox/*.py %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check