2018-05-08 13:09:16 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-sounddevice
|
|
|
|
#
|
2022-10-07 19:06:31 +00:00
|
|
|
# Copyright (c) 2022 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
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2020-07-29 10:40:20 +00:00
|
|
|
%define skip_python2 1
|
2021-04-19 01:41:36 +00:00
|
|
|
%define skip_python36 1
|
2018-05-08 13:09:16 +00:00
|
|
|
Name: python-sounddevice
|
2022-10-07 19:06:31 +00:00
|
|
|
Version: 0.4.5
|
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}
|
2018-05-08 13:09:16 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
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/*
|
2018-05-08 13:09:16 +00:00
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%python_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
|
|
|
|
%{python_sitelib}/*
|
|
|
|
|
2019-05-21 08:16:20 +00:00
|
|
|
%check
|
|
|
|
# no upstream tests, examples needs devices
|
|
|
|
|
2018-05-08 13:09:16 +00:00
|
|
|
%changelog
|