2018-05-09 01:24:35 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-SoundFile
|
|
|
|
|
#
|
2023-04-03 10:55:34 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2018-05-09 01:24:35 +00:00
|
|
|
#
|
|
|
|
|
# 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.
|
|
|
|
|
|
2019-10-14 13:47:28 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-05-09 01:24:35 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-SoundFile
|
2023-04-03 10:55:34 +00:00
|
|
|
Version: 0.12.1
|
2018-05-09 01:24:35 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: An audio library based on libsndfile, CFFI and NumPy
|
|
|
|
|
License: BSD-3-Clause
|
2021-02-19 23:03:32 +00:00
|
|
|
URL: https://github.com/bastibe/python-soundfile
|
2023-04-03 10:55:34 +00:00
|
|
|
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}
|
2020-03-04 11:08:01 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
- Sort out the header a bit
- Remove test conditional, always run tests
- Mark the package as noarch (as it is)
* one test is failing on i586, but it is bug in libsndfile, disabled for now
ret [ 32767, -32768, -32767, -1, -1, 0, 0, 0, 1, 1, 32766, 32767, 32767]
exp (-32768, -32768, -32767, -1, -1, 0, 0, 0, 1, 1, 32766, 32767, 32767)
https://github.com/bastibe/SoundFile/issues/185
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-SoundFile?expand=0&rev=5
2018-08-17 09:17:34 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2023-04-03 10:55:34 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
- Sort out the header a bit
- Remove test conditional, always run tests
- Mark the package as noarch (as it is)
* one test is failing on i586, but it is bug in libsndfile, disabled for now
ret [ 32767, -32768, -32767, -1, -1, 0, 0, 0, 1, 1, 32766, 32767, 32767]
exp (-32768, -32768, -32767, -1, -1, 0, 0, 0, 1, 1, 32766, 32767, 32767)
https://github.com/bastibe/SoundFile/issues/185
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-SoundFile?expand=0&rev=5
2018-08-17 09:17:34 +00:00
|
|
|
BuildRequires: fdupes
|
2023-04-03 10:55:34 +00:00
|
|
|
BuildRequires: libsndfile-devel
|
- Sort out the header a bit
- Remove test conditional, always run tests
- Mark the package as noarch (as it is)
* one test is failing on i586, but it is bug in libsndfile, disabled for now
ret [ 32767, -32768, -32767, -1, -1, 0, 0, 0, 1, 1, 32766, 32767, 32767]
exp (-32768, -32768, -32767, -1, -1, 0, 0, 0, 1, 1, 32766, 32767, 32767)
https://github.com/bastibe/SoundFile/issues/185
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-SoundFile?expand=0&rev=5
2018-08-17 09:17:34 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2023-04-03 10:55:34 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
Requires: python-cffi >= 1.0
|
|
|
|
|
Requires: %(rpm -q --requires libsndfile-devel | grep -o 'libsndfile[0-9]*')
|
2018-05-09 01:24:35 +00:00
|
|
|
Recommends: python-numpy
|
- Sort out the header a bit
- Remove test conditional, always run tests
- Mark the package as noarch (as it is)
* one test is failing on i586, but it is bug in libsndfile, disabled for now
ret [ 32767, -32768, -32767, -1, -1, 0, 0, 0, 1, 1, 32766, 32767, 32767]
exp (-32768, -32768, -32767, -1, -1, 0, 0, 0, 1, 1, 32766, 32767, 32767)
https://github.com/bastibe/SoundFile/issues/185
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-SoundFile?expand=0&rev=5
2018-08-17 09:17:34 +00:00
|
|
|
Obsoletes: python-PySoundFile < %{version}
|
|
|
|
|
Provides: python-PySoundFile = %{version}
|
2023-04-03 10:55:34 +00:00
|
|
|
Provides: python-soundfile = %{version}
|
2018-05-09 01:24:35 +00:00
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
%description
|
- Sort out the header a bit
- Remove test conditional, always run tests
- Mark the package as noarch (as it is)
* one test is failing on i586, but it is bug in libsndfile, disabled for now
ret [ 32767, -32768, -32767, -1, -1, 0, 0, 0, 1, 1, 32766, 32767, 32767]
exp (-32768, -32768, -32767, -1, -1, 0, 0, 0, 1, 1, 32766, 32767, 32767)
https://github.com/bastibe/SoundFile/issues/185
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-SoundFile?expand=0&rev=5
2018-08-17 09:17:34 +00:00
|
|
|
PySoundFile is an audio library based on libsndfile, CFFI and NumPy.
|
2018-05-09 01:24:35 +00:00
|
|
|
Full documentation is available on http://pysoundfile.readthedocs.org/.
|
|
|
|
|
|
|
|
|
|
PySoundFile can read and write sound files. File reading/writing is
|
2018-05-19 01:07:01 +00:00
|
|
|
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.
|
2018-05-09 01:24:35 +00:00
|
|
|
|
|
|
|
|
%prep
|
2023-04-03 10:55:34 +00:00
|
|
|
%setup -q -n soundfile-%{version}
|
2018-05-09 01:24:35 +00:00
|
|
|
|
|
|
|
|
%build
|
2023-04-03 10:55:34 +00:00
|
|
|
# force a pure wheel through unknown platform
|
|
|
|
|
# (we do not bundle the libs anyway)
|
|
|
|
|
export PYSOUNDFILE_PLATFORM="OBS"
|
|
|
|
|
%pyproject_wheel
|
2018-05-09 01:24:35 +00:00
|
|
|
|
|
|
|
|
%install
|
2023-04-03 10:55:34 +00:00
|
|
|
%pyproject_install
|
2018-05-09 01:24:35 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
|
|
%check
|
2023-04-03 10:55:34 +00:00
|
|
|
%pytest
|
2018-05-09 01:24:35 +00:00
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
|
%doc README.rst
|
|
|
|
|
%license LICENSE
|
2023-04-03 10:55:34 +00:00
|
|
|
%{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
|
2018-05-09 01:24:35 +00:00
|
|
|
|
|
|
|
|
%changelog
|