From 743ee95a6282997911a3d41ba350c41685bed8baf582e26eea9a9fe7d5414d23 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 --- .gitattributes | 23 +++++++++++++++ .gitignore | 1 + python-sox.changes | 40 ++++++++++++++++++++++++++ python-sox.spec | 72 ++++++++++++++++++++++++++++++++++++++++++++++ sox-1.5.0.tar.gz | 3 ++ 5 files changed, 139 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-sox.changes create mode 100644 python-sox.spec create mode 100644 sox-1.5.0.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-sox.changes b/python-sox.changes new file mode 100644 index 0000000..3e88a7f --- /dev/null +++ b/python-sox.changes @@ -0,0 +1,40 @@ +------------------------------------------------------------------- +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 + +- Build package from source +- Run tests +- Update to 1.5.0 + - This is the first stable release of the 1.5 series. It is + functionally identical to 1.5-rc1. Compared to 1.4, the main + change is that we have dropped support for EOL Python (3.7 and + earlier) and have added support for Python up to 3.12 (@hugovk and + @lostanlen). + - New features: + * pathlib support (#124), @cjacoby + * type hints (#129), @hadware and @rabitt + +------------------------------------------------------------------- +Tue Oct 26 12:45:07 UTC 2021 - Axel Braun + +- version 1.4.1 + changes up to version 1.4.0: + * added .build_array() which supports file or in memory inputs and array outputs + * added .build_file() - an alias to .build() + * refactored .build() function to support file or in-memory array inputs and file outputs + * the call to subprocess calls the binary directly (shell=False) + * file_info methods return None instead of 0 when the value is not available + * fixed bug in file_info.bitrate(), which was returning bitdepth + * added file_info.bitdepth() + * added Windows support for soxi + * added configurable logging + * .trim() can be called with only the start time specificed + +------------------------------------------------------------------- +Thu Jan 30 16:25:12 UTC 2020 - Todd R + +- initial version diff --git a/python-sox.spec b/python-sox.spec new file mode 100644 index 0000000..cea58aa --- /dev/null +++ b/python-sox.spec @@ -0,0 +1,72 @@ +# +# spec file for package python-sox +# +# 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 +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: python-sox +Version: 1.5.0 +Release: 0 +Summary: Python wrapper around SoX +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 +Requires: python-numpy +Requires: python-typing-extensions +Requires: sox +BuildArch: noarch +%python_subpackages + +%description +SOX is intended to be the Swiss Army knife of sound processing tools. +It does many things, it just does not do them all well. Sooner or later +it will come in very handy. SOX is really only usable day-to-day if you +hide the wacky options with one-line shell scripts. + +This is a Python wrapper for SOX. + +%prep +%autosetup -p1 -n pysox-%{version} +sed -i -e '/^#!\//, 1d' sox/*.py + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +# Fails in i586 +donttest="test_multichannel or test_valid" +%pytest -k "not ($donttest)" + +%files %{python_files} +%license LICENSE +%{python_sitelib}/sox-%{version}*-info/ +%{python_sitelib}/sox + +%changelog diff --git a/sox-1.5.0.tar.gz b/sox-1.5.0.tar.gz new file mode 100644 index 0000000..1cb1a05 --- /dev/null +++ b/sox-1.5.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:554b6e70dc0b2b2c0ec75bec7e51ea0462f15d4de9ea078111f9179bdbcf89ae +size 4123476