15
0

Accepting request 1076639 from home:bnavigator:branches:devel:languages:python:numeric

- 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)

OBS-URL: https://build.opensuse.org/request/show/1076639
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-SoundFile?expand=0&rev=18
This commit is contained in:
2023-04-03 10:55:34 +00:00
committed by Git OBS Bridge
parent f3c20a401b
commit 6140f57f39
5 changed files with 51 additions and 24 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:490cff42650733d1832728b937fe99fa1802896f5ef4d61bcf78cf7ebecb107b
size 36460

View File

@@ -1,3 +1,24 @@
-------------------------------------------------------------------
Sat Apr 1 11:53:26 UTC 2023 - Ben Greiner <code@bnavigator.de>
- 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 <code@bnavigator.de>

View File

@@ -0,0 +1,2 @@
# pure python script uses dlopen()
addFilter("explicit-lib-dependency libsndfile[0-9]+")

View File

@@ -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

3
soundfile-0.12.1.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e8e1017b2cf1dda767aef19d2fd9ee5ebe07e050d430f77a0a7c66ba08b8cdae
size 43184