15
0

- Switch to source release

- Update to 0.3.0:
  * Various docu updates
  * Support python 3.5

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-SoundCard?expand=0&rev=9
This commit is contained in:
Tomáš Chvátal
2019-03-28 14:15:29 +00:00
committed by Git OBS Bridge
parent bd01622550
commit 5ececbf33e
5 changed files with 54 additions and 16 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-SoundCard
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 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
@@ -19,25 +19,24 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-SoundCard
Version: 0.2.2
Version: 0.3.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
URL: https://github.com/bastibe/SoundCard
Source0: https://files.pythonhosted.org/packages/source/S/SoundCard/SoundCard-%{version}.tar.gz
Source1: https://raw.githubusercontent.com/bastibe/SoundCard/master/LICENSE
Source100: python-SoundCard-rpmlintrc
BuildRequires: %{python_module cffi}
BuildRequires: %{python_module numpy}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: pulseaudio
Requires: python-cffi
Requires: python-numpy
BuildArch: noarch
%python_subpackages
%description
@@ -51,18 +50,19 @@ across platforms, naming schemes and block sizes can vary between
devices and platforms.
%prep
%setup -T -c
%setup -q -n SoundCard-%{version}
cp %{SOURCE1} .
%build
# Not Needed
%python_build
%install
%python_expand pip%{$python_bin_suffix} install --root=%{buildroot} %{SOURCE0}
%python_install
%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/
%license LICENSE
%doc README.rst
%{python_sitelib}/*
%changelog