From a474ea3a40702f3a5f9d2776f8823fe74500bc417c608266ff56607afe3cfa4f Mon Sep 17 00:00:00 2001 From: Todd R Date: Tue, 8 May 2018 13:09:16 +0000 Subject: [PATCH] Accepting request 605333 from devel:languages:python:misc Python sound playback that supports numpy arrays OBS-URL: https://build.opensuse.org/request/show/605333 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sounddevice?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++++ .gitignore | 1 + python-sounddevice.changes | 15 ++++++++++ python-sounddevice.spec | 59 ++++++++++++++++++++++++++++++++++++++ sounddevice-0.3.11.tar.gz | 3 ++ 5 files changed, 101 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-sounddevice.changes create mode 100644 python-sounddevice.spec create mode 100644 sounddevice-0.3.11.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-sounddevice.changes b/python-sounddevice.changes new file mode 100644 index 0000000..edaca19 --- /dev/null +++ b/python-sounddevice.changes @@ -0,0 +1,15 @@ +------------------------------------------------------------------- +Tue May 8 03:22:08 UTC 2018 - toddrme2178@gmail.com + +- Update to 0.3.11 (2018-05-07): + * Support for the DLL from ``conda-forge`` +- Update to 0.3.10 (2017-12-22): + * Change the way how the PortAudio library is located +- Update to 0.3.9 (2017-10-25): + * Add `sounddevice.Stream.closed` + * Switch CFFI usage to "out-of-line ABI" mode + +------------------------------------------------------------------- +Tue Aug 8 20:40:25 UTC 2017 - toddrme2178@gmail.com + +- Initial version diff --git a/python-sounddevice.spec b/python-sounddevice.spec new file mode 100644 index 0000000..bf8836e --- /dev/null +++ b/python-sounddevice.spec @@ -0,0 +1,59 @@ +# +# spec file for package python-sounddevice +# +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# +# 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 http://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-sounddevice +Version: 0.3.11 +Release: 0 +Summary: Play and Record Sound with Python +License: MIT +Group: Development/Languages/Python +Url: http://python-sounddevice.readthedocs.io/ +Source: https://files.pythonhosted.org/packages/source/s/sounddevice/sounddevice-%{version}.tar.gz +BuildRequires: %{python_module cffi >= 1.0} +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: python-rpm-macros +Requires: portaudio +Requires: python-cffi >= 1.0 +Recommends: python-numpy +BuildArch: noarch + +%python_subpackages + +%description +This Python_ module provides bindings for the PortAudio library and a few +convenience functions to play and record NumPy arrays containing audio signals. + + +%prep +%setup -q -n sounddevice-%{version} + +%build +%python_build + +%install +%python_install + +%files %{python_files} +%defattr(-,root,root,-) +%doc NEWS.rst README.rst +%license LICENSE +%{python_sitelib}/* + +%changelog diff --git a/sounddevice-0.3.11.tar.gz b/sounddevice-0.3.11.tar.gz new file mode 100644 index 0000000..b9161a6 --- /dev/null +++ b/sounddevice-0.3.11.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e1f9e4eb72cf85ee7c4aff62558c7d179e8aceca258ad5217bcf9e43d75bcc5d +size 46563