15
0
Files
python-SoundFile/python-SoundFile.spec
Daniel Garcia 6140f57f39 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
2023-04-03 10:55:34 +00:00

80 lines
2.7 KiB
RPMSpec

#
# spec file for package python-SoundFile
#
# 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
# 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-SoundFile
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
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: libsndfile-devel
BuildRequires: python-rpm-macros
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}
Provides: python-soundfile = %{version}
%python_subpackages
%description
PySoundFile is an audio library based on libsndfile, CFFI and NumPy.
Full documentation is available on http://pysoundfile.readthedocs.org/.
PySoundFile can read and write sound files. File reading/writing is
supported through libsndfile, which itself is accessed through CFFI,
a foreign function interface for Python calling C code. PySoundFile
represents audio data as NumPy arrays.
%prep
%setup -q -n soundfile-%{version}
%build
# force a pure wheel through unknown platform
# (we do not bundle the libs anyway)
export PYSOUNDFILE_PLATFORM="OBS"
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%doc README.rst
%license LICENSE
%{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