diff --git a/SoundFile-0.10.3.post1.tar.gz b/SoundFile-0.10.3.post1.tar.gz deleted file mode 100644 index 1176339..0000000 --- a/SoundFile-0.10.3.post1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:490cff42650733d1832728b937fe99fa1802896f5ef4d61bcf78cf7ebecb107b -size 36460 diff --git a/python-SoundFile.changes b/python-SoundFile.changes index afd6024..d39f280 100644 --- a/python-SoundFile.changes +++ b/python-SoundFile.changes @@ -1,3 +1,24 @@ +------------------------------------------------------------------- +Sat Apr 1 11:53:26 UTC 2023 - Ben Greiner + +- Update to 0.12.1 + * Fixes a bug in the library discover on Linux, if no system + library and no packaged library could be found. +- Release 0.12.0 + * Updated libsndfile to v1.2.0 + * Improves precompiled library location, especially with py2app + or cx-freeze. + * Now provide binary wheels for Linux x86_64 + * Now prefers packaged libsndfile over system-installed + libsndfile +- Release 0.11.0 + * MP3 support + * Updates libsndfile to v1.1.0 + * Adds get_strings method for retrieving all metadata at once + * Improves documentation, error messages and tests + * Displays length of very short files in samples + * Supports the file system path protocol (pathlib et al) + ------------------------------------------------------------------- Fri Feb 19 17:24:38 UTC 2021 - Ben Greiner diff --git a/python-SoundFile.rpmlintrc b/python-SoundFile.rpmlintrc new file mode 100644 index 0000000..01ec103 --- /dev/null +++ b/python-SoundFile.rpmlintrc @@ -0,0 +1,2 @@ +# pure python script uses dlopen() +addFilter("explicit-lib-dependency libsndfile[0-9]+") \ No newline at end of file diff --git a/python-SoundFile.spec b/python-SoundFile.spec index bf70973..23ab797 100644 --- a/python-SoundFile.spec +++ b/python-SoundFile.spec @@ -1,7 +1,7 @@ # # spec file for package python-SoundFile # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,31 +16,30 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define oldpython python Name: python-SoundFile -Version: 0.10.3.post1 +Version: 0.12.1 Release: 0 Summary: An audio library based on libsndfile, CFFI and NumPy License: BSD-3-Clause URL: https://github.com/bastibe/python-soundfile -Source: https://files.pythonhosted.org/packages/source/S/SoundFile/SoundFile-%{version}.tar.gz -BuildRequires: %{python_module cffi >= 0.6} +Source: https://files.pythonhosted.org/packages/source/s/soundfile/soundfile-%{version}.tar.gz +Source99: python-SoundFile.rpmlintrc +BuildRequires: %{python_module cffi >= 1.0} +BuildRequires: %{python_module numpy} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes -BuildRequires: libsndfile1 +BuildRequires: libsndfile-devel BuildRequires: python-rpm-macros -BuildRequires: %{python_module numpy if (%python-base without python36-base)} -Requires: libsndfile1 -Requires: python-cffi >= 0.6 +BuildArch: noarch +Requires: python-cffi >= 1.0 +Requires: %(rpm -q --requires libsndfile-devel | grep -o 'libsndfile[0-9]*') Recommends: python-numpy Obsoletes: python-PySoundFile < %{version} Provides: python-PySoundFile = %{version} -%ifpython2 -Obsoletes: %{oldpython}-PySoundFile < %{version} -Provides: %{oldpython}-PySoundFile = %{version} -%endif +Provides: python-soundfile = %{version} %python_subpackages %description @@ -53,23 +52,28 @@ a foreign function interface for Python calling C code. PySoundFile represents audio data as NumPy arrays. %prep -%setup -q -n SoundFile-%{version} +%setup -q -n soundfile-%{version} %build -%python_build +# force a pure wheel through unknown platform +# (we do not bundle the libs anyway) +export PYSOUNDFILE_PLATFORM="OBS" +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -# don't test if we don't have optional numpy installed -python36_ignore="--ignore tests/test_pysoundfile.py" -%pytest -k 'not read_int_data_from_float_file' ${$python_ignore} +%pytest %files %{python_files} %doc README.rst %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/soundfile-%{version}.dist-info +%{python_sitelib}/soundfile.py +%{python_sitelib}/_soundfile.py +%pycache_only %{python_sitelib}/__pycache__/soundfile*.pyc +%pycache_only %{python_sitelib}/__pycache__/_soundfile*.pyc %changelog diff --git a/soundfile-0.12.1.tar.gz b/soundfile-0.12.1.tar.gz new file mode 100644 index 0000000..08b8e12 --- /dev/null +++ b/soundfile-0.12.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e8e1017b2cf1dda767aef19d2fd9ee5ebe07e050d430f77a0a7c66ba08b8cdae +size 43184