2018-05-08 13:09:16 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-sounddevice
|
|
|
|
#
|
2024-01-03 10:23:41 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2018-05-08 13:09:16 +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.
|
|
|
|
|
2018-12-04 14:05:03 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-05-08 13:09:16 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2023-12-29 09:44:47 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2018-05-08 13:09:16 +00:00
|
|
|
Name: python-sounddevice
|
2024-10-23 20:08:00 +00:00
|
|
|
Version: 0.5.1
|
2018-05-08 13:09:16 +00:00
|
|
|
Release: 0
|
2019-06-03 08:00:09 +00:00
|
|
|
Summary: Module to play and record sound with Python
|
2018-05-08 13:09:16 +00:00
|
|
|
License: MIT
|
2020-03-13 08:38:58 +00:00
|
|
|
URL: https://python-sounddevice.readthedocs.io/
|
2018-05-08 13:09:16 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/s/sounddevice/sounddevice-%{version}.tar.gz
|
|
|
|
BuildRequires: %{python_module cffi >= 1.0}
|
2019-05-21 08:16:20 +00:00
|
|
|
BuildRequires: %{python_module numpy}
|
2023-12-29 09:44:47 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2024-01-03 10:23:41 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2023-12-29 09:44:47 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2018-10-31 02:03:10 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: portaudio
|
2018-05-08 13:09:16 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
Requires: portaudio
|
|
|
|
Requires: python-cffi >= 1.0
|
|
|
|
Recommends: python-numpy
|
|
|
|
BuildArch: noarch
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
2019-06-03 08:00:09 +00:00
|
|
|
This Python module provides bindings for the PortAudio library and a few
|
2018-05-08 13:09:16 +00:00
|
|
|
convenience functions to play and record NumPy arrays containing audio signals.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n sounddevice-%{version}
|
|
|
|
|
|
|
|
%build
|
2019-05-21 08:16:20 +00:00
|
|
|
chmod 644 examples/*
|
2023-12-29 09:44:47 +00:00
|
|
|
%pyproject_wheel
|
2018-05-08 13:09:16 +00:00
|
|
|
|
|
|
|
%install
|
2023-12-29 09:44:47 +00:00
|
|
|
%pyproject_install
|
2020-03-13 08:38:58 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2018-05-08 13:09:16 +00:00
|
|
|
|
|
|
|
%files %{python_files}
|
2019-05-21 08:16:20 +00:00
|
|
|
%doc NEWS.rst README.rst examples
|
2018-05-08 13:09:16 +00:00
|
|
|
%license LICENSE
|
2023-12-29 09:44:47 +00:00
|
|
|
%{python_sitelib}/{_sounddevice.py,sounddevice.py}
|
|
|
|
%pycache_only %{python_sitelib}/__pycache__/{sounddevice,_sounddevice}*
|
|
|
|
|
|
|
|
%{python_sitelib}/sounddevice-%{version}.dist-info
|
2018-05-08 13:09:16 +00:00
|
|
|
|
2019-05-21 08:16:20 +00:00
|
|
|
%check
|
|
|
|
# no upstream tests, examples needs devices
|
|
|
|
|
2018-05-08 13:09:16 +00:00
|
|
|
%changelog
|