Hello community, here is the log from the commit of package python-PyAudio for openSUSE:Factory checked in at 2017-08-29 11:46:58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-PyAudio (Old) and /work/SRC/openSUSE:Factory/.python-PyAudio.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-PyAudio" Tue Aug 29 11:46:58 2017 rev:2 rq:519239 version:0.2.11 Changes: -------- --- /work/SRC/openSUSE:Factory/python-PyAudio/python-PyAudio.changes 2015-10-20 00:04:05.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python-PyAudio.new/python-PyAudio.changes 2017-08-29 11:48:10.249730698 +0200 @@ -1,0 +2,18 @@ +Mon Aug 28 20:43:35 UTC 2017 - [email protected] + +- Update to 0.2.11 + * Fix use-after-free memory issue in callback handler. + * Fix docstring for get_output_latency(). +- Update to 0.2.10 + * Release the GIL during PortAudio I/O calls to avoid potential deadlock. + * Add a few automated unit tests. +- Update to PyAudio 0.2.9 + * Fix overflow error handling logic for pa_read_stream. + * Fix IOError arguments. + * Python library surfaces issues with importing low-level C module. + * Code formatting update. + * Updates to examples for Python 3 compatibility. +- Implement single-spec version +- Fix source URL + +------------------------------------------------------------------- Old: ---- pyaudio-0.2.8.tar.gz New: ---- PyAudio-0.2.11.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-PyAudio.spec ++++++ --- /var/tmp/diff_new_pack.UB51uE/_old 2017-08-29 11:48:11.757518178 +0200 +++ /var/tmp/diff_new_pack.UB51uE/_new 2017-08-29 11:48:11.773515924 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-PyAudio # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,54 +16,61 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_with test Name: python-PyAudio -Version: 0.2.8 +Version: 0.2.11 Release: 0 Summary: Python Bindings for PortAudio v19 License: MIT Group: Development/Libraries/Python Url: http://people.csail.mit.edu/hubert/pyaudio/ -Source0: http://people.csail.mit.edu/hubert/pyaudio/packages/pyaudio-%{version}.tar.gz +Source: https://files.pythonhosted.org/packages/source/P/PyAudio/PyAudio-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: portaudio-devel -BuildRequires: python-devel -BuildRequires: python-setuptools -BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: python-rpm-macros +%if %{with test} +BuildRequires: alsa +BuildRequires: %{python_module nose} +BuildRequires: %{python_module numpy} +%endif + +%python_subpackages %description PyAudio provides Python bindings for PortAudio v19, the cross-platform audio I/O library. With PyAudio, you can easily use Python to play and record audio streams on a variety of platforms (e.g., GNU/Linux, Microsoft Windows, and Mac OS X). -%package docs -Summary: Documentation for %{name} -Group: Development/Libraries/Python - -%description docs -Documentation and help files for %{name} - %prep %setup -q -n PyAudio-%{version} %build -python setup.py build +export CFLAGS="%{optflags} -fno-strict-aliasing" +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitearch} -%fdupes -s %{buildroot}/%{_prefix} -rm -r docs/.doctrees -rm -r docs/.buildinfo +%if %{with test} +%check +pushd tests +%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitearch} +$python -B -m nose ./*.py +} +popd +%endif -%files +%files %{python_files} %defattr(-,root,root) %doc CHANGELOG README -%{python_sitearch}/_portaudio.so +%doc examples/ +%{python_sitearch}/_portaudio*.so %{python_sitearch}/pyaudio.py* +%pycache_only %{python_sitearch}/__pycache__/pyaudio*.py* %{python_sitearch}/PyAudio-%{version}-py*.egg-info -%files docs -%defattr(-,root,root) -%doc docs - %changelog
