forked from pool/python-SoundFile
- 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
This commit is contained in:
committed by
Git OBS Bridge
parent
42e8f3afd5
commit
5951263d0f
@@ -1,3 +1,14 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 17 09:02:13 UTC 2018 - tchvatal@suse.com
|
||||
|
||||
- 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
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri May 18 20:51:12 UTC 2018 - jengelh@inai.de
|
||||
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%bcond_without test
|
||||
%define oldpython python
|
||||
Name: python-SoundFile
|
||||
Version: 0.10.2
|
||||
@@ -25,37 +24,28 @@ Release: 0
|
||||
Summary: An audio library based on libsndfile, CFFI and NumPy
|
||||
License: BSD-3-Clause
|
||||
Group: Development/Languages/Python
|
||||
Url: https://github.com/bastibe/PySoundFile
|
||||
URL: https://github.com/bastibe/PySoundFile
|
||||
Source: https://files.pythonhosted.org/packages/source/S/SoundFile/SoundFile-%{version}.tar.gz
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
%if %{with test}
|
||||
BuildRequires: %{python_module cffi >= 0.6}
|
||||
BuildRequires: %{python_module numpy}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: libsndfile1
|
||||
%endif
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: libsndfile1
|
||||
Requires: python-cffi >= 0.6
|
||||
Recommends: python-numpy
|
||||
Obsoletes: python-PySoundFile < %{version}
|
||||
Provides: python-PySoundFile = %{version}
|
||||
%ifpython2
|
||||
Obsoletes: %{oldpython}-PySoundFile < %{version}
|
||||
Provides: %{oldpython}-PySoundFile = %{version}
|
||||
%endif
|
||||
%ifpython3
|
||||
# Change to < in next release after 0.9.0.post1
|
||||
Obsoletes: python3-PySoundFile <= %{version}
|
||||
Provides: python3-PySoundFile = %{version}
|
||||
%endif
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
ExclusiveArch: x86_64 aarch64 ppc64le
|
||||
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
PySoundFile is an audio library based on libsndfile, CFFI and NumPy.
|
||||
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
|
||||
@@ -73,13 +63,10 @@ represents audio data as NumPy arrays.
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%if %{with test}
|
||||
%check
|
||||
%python_exec setup.py test
|
||||
%endif
|
||||
%python_exec setup.py test --pytest-args="-knot\ read_int_data_from_float_file"
|
||||
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%doc README.rst
|
||||
%license LICENSE
|
||||
%{python_sitelib}/*
|
||||
|
||||
Reference in New Issue
Block a user