File python-alsa.spec of Package python-alsa
#
# spec file for package python-alsa
#
# Copyright (c) 2024 SUSE LLC
#
# 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-%{**}}
Name: python-alsa
Version: 1.2.12
Release: 0
Summary: Python ALSA binding
License: GPL-2.0-only AND LGPL-2.1-or-later
Group: Development/Libraries/Python
URL: https://www.alsa-project.org
Source: %{url}/files/pub/pyalsa/pyalsa-%{version}.tar.bz2
Source1: %{url}/files/pub/pyalsa/pyalsa-%{version}.tar.bz2.sig
Source2: COPYING
Source3: COPYING.LIB
Source4: %{name}.keyring
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: alsa-devel
BuildRequires: python-rpm-macros
Provides: pyalsa = %{version}
Obsoletes: pyalsa < %{version}
%python_subpackages
%description
This package provides the Python binding to ALSA.
%prep
%setup -q -n pyalsa-%{version}
cp %{SOURCE2} %{SOURCE3} .
%build
export CFLAGS="%{optflags} -fno-strict-aliasing"
%python_build
%install
%python_install
%files %{python_files}
%license COPYING COPYING.LIB
%{python_sitearch}/*
%changelog