diff --git a/PyAudio-0.2.11.tar.gz b/PyAudio-0.2.11.tar.gz new file mode 100644 index 0000000..b9f70e1 --- /dev/null +++ b/PyAudio-0.2.11.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:93bfde30e0b64e63a46f2fd77e85c41fd51182a4a3413d9edfaf9ffaa26efb74 +size 37428 diff --git a/pyaudio-0.2.8.tar.gz b/pyaudio-0.2.8.tar.gz deleted file mode 100644 index 726d1bf..0000000 --- a/pyaudio-0.2.8.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4f85367cf79657616684487037957ac38582ecc5389b89420fe61d901b719551 -size 235900 diff --git a/python-PyAudio.changes b/python-PyAudio.changes index a29ee6b..acfe533 100644 --- a/python-PyAudio.changes +++ b/python-PyAudio.changes @@ -1,3 +1,21 @@ +------------------------------------------------------------------- +Mon Aug 28 20:43:35 UTC 2017 - toddrme2178@gmail.com + +- 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 + ------------------------------------------------------------------- Mon Jul 14 15:30:37 UTC 2014 - toddrme2178@gmail.com diff --git a/python-PyAudio.spec b/python-PyAudio.spec index 3b8a5bd..79c4f9c 100644 --- a/python-PyAudio.spec +++ b/python-PyAudio.spec @@ -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: http://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