File python-ao.spec of Package python-ao
#
# spec file for package python-ao (Version 0.82)
#
# 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: python-ao
BuildRequires: libao-devel python-devel
%define pyver %(python -c 'import sys; print sys.version[:3]')
Summary: A Python Wrapper Module for the Audio Output Library
Version: 0.82
Release: 355
Source0: pyao-%{version}.tar.bz2
Patch0: pyao-0.82-libao4.patch
License: GPL-2.0+
Group: Development/Libraries/Python
Url: http://ekyo.nerim.net/software/pyogg/index.html
Requires: python >= %pyver, python < %{pyver}.99
AutoReqProv: on
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This module makes the libao (libao (Audio Output)) functions available
in python (Python). With this module you can write Python applications
that use the cross platform audio output library.
%prep
%setup -n pyao-%{version}
%patch0 -p1
%build
export CFLAGS="$RPM_OPT_FLAGS"
python config_unix.py --prefix /usr
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES
%clean
rm -rf $RPM_BUILD_ROOT
%files -f INSTALLED_FILES
%defattr(-,root,root)
%doc AUTHORS COPYING README ChangeLog
%changelog