File pyalsa.spec of Package pyalsa

#
# spec file for package pyalsa
#
# Copyright (c) 2015 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 http://bugs.opensuse.org/
#


Name:           pyalsa
BuildRequires:  alsa-devel
BuildRequires:  python-devel
Version:        1.0.29
Release:        0
Summary:        Python ALSA binding
License:        LGPL-2.1+ and GPL-2.0
Group:          Development/Libraries/Python
Source:         pyalsa-%{version}.tar.bz2
Source1:        COPYING
Source2:        COPYING.LIB
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%{py_requires}

%description
This package provides the Python binding to ALSA.

%prep
%setup -q
cp %{S:1} %{S:2} .

%build
export CFLAGS="%{optflags} -fno-strict-aliasing"
%{__python} setup.py build

%install
%{__python} setup.py install \
    --root=%{buildroot} \
    --prefix=%{_prefix} \
    --record-rpm=INSTALLED_FILES

%clean
rm -rf %{buildroot}

%files -f INSTALLED_FILES
%defattr(-,root,root)
%doc COPYING*
# %doc doc/*

%changelog
openSUSE Build Service is sponsored by