File pyalsa.spec of Package pyalsa

#
# spec file for package pyalsa (Version 1.0.22)
#
# Copyright (c) 2010 SUSE LINUX Products 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/
#

# norootforbuild


Name:           pyalsa
BuildRequires:  alsa-devel licenses python-devel
Version:        1.0.22
Release:        1
License:        LGPLv2.1+ ; GPLv2
Group:          Development/Libraries/Python
Summary:        Python ALSA binding
Source:         pyalsa-%{version}.tar.bz2
Requires:       licenses
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%{py_requires}

%description
This package provides the Python binding to ALSA.

%prep
%setup -q
ln -s %{_datadir}/doc/licenses/GPL-2.0.txt COPYING
ln -s %{_datadir}/doc/licenses/LGPL-2.1.txt COPYING.LIB

%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