forked from pool/python-SoundCard
84 lines
3.0 KiB
RPMSpec
84 lines
3.0 KiB
RPMSpec
|
|
#
|
||
|
|
# 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.0
|
||
|
|
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
|
||
|
|
Source10: https://raw.githubusercontent.com/bastibe/SoundCard/%{version}/README.md
|
||
|
|
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
|
||
|
|
the wonderful 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.
|
||
|
|
|
||
|
|
SoundCard is still very early in its development. All major building
|
||
|
|
blocks are in place, but I fully expect there to be bugs and possibly
|
||
|
|
crashes. If you find a bug, please open an Issue, and I will try to
|
||
|
|
fix it. Or open a Pull Request, and I will try to include your fix
|
||
|
|
into SoundCard.
|
||
|
|
|
||
|
|
However, please be aware that this is a hobby project of mine that
|
||
|
|
I am developing for free, and in my spare time. While I try to be as
|
||
|
|
accomodating as possible, I can not guarantee a timely response to
|
||
|
|
issues. Publishing Open Source Software on Github does not imply an
|
||
|
|
obligation to fix your problem right now. Please be civil.
|
||
|
|
|
||
|
|
%prep
|
||
|
|
%setup -T -c -n %{name}-%{version}
|
||
|
|
cp %{SOURCE10} .
|
||
|
|
|
||
|
|
%build
|
||
|
|
# Not Needed
|
||
|
|
|
||
|
|
%install
|
||
|
|
%python_expand pip%{$python_bin_suffix} install --root=%{buildroot} %{SOURCE0}
|
||
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||
|
|
|
||
|
|
%files %{python_files}
|
||
|
|
%license README.md
|
||
|
|
%{python_sitelib}/SoundCard-%{version}.dist-info
|
||
|
|
%{python_sitelib}/soundcard/
|
||
|
|
|
||
|
|
%changelog
|