File python-SoundCard.spec of Package python-SoundCard
#
# spec file for package python-SoundCard
#
# Copyright (c) 2018 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 https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-SoundCard
Version: 0.2.2
Release: 0
Summary: Python package to play and record audio
License: BSD-3-Clause
Group: Development/Languages/Python
Url: https://github.com/bastibe/SoundCard
Source0: https://files.pythonhosted.org/packages/py3/S/SoundCard/SoundCard-%{version}-py3-none-any.whl
Source100: python-SoundCard-rpmlintrc
BuildRequires: %{python_module cffi}
BuildRequires: %{python_module numpy}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pip}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: pulseaudio
Requires: python-cffi
Requires: python-numpy
BuildArch: noarch
%python_subpackages
%description
SoundCard is a library for playing and recording audio without
resorting to a CPython extension. Instead, it is implemented using
CFFI and the native audio libraries of Linux, Windows and macOS.
SoundCard is cross-platform, and supports Linux/pulseaudio,
Mac/coreaudio, and Windows/WASAPI. While the interface is identical
across platforms, naming schemes and block sizes can vary between
devices and platforms.
%prep
%setup -T -c
%build
# Not Needed
%install
%python_expand pip%{$python_bin_suffix} install --root=%{buildroot} %{SOURCE0}
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %{python_files}
%license %{python_sitelib}/SoundCard-%{version}.dist-info/LICENSE
%{python_sitelib}/SoundCard-%{version}.dist-info
%{python_sitelib}/soundcard/
%changelog