File python-ao.spec of Package python-ao

#
# spec file for package python-ao (Version 0.82)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# 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:        145
Source0:        pyao-%{version}.tar.bz2
Patch0:         pyao-0.82-ssize.patch
License:        GNU General Public License (GPL) - all versions
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.



Authors:
--------
    Andrew Chatham <andrew.chatham@duke.edu>

%prep
%setup -n pyao-%{version}
%patch0

%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 -n python-ao
* Thu Oct 19 2006 - jmatejek@suse.cz
- fixed 64bit bug resulting from python's PEP353
* Tue Feb 28 2006 - jmatejek@suse.cz
- updated to reflect python changes due to #149809
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Oct 30 2003 - mcihar@suse.cz
- initial packaging
openSUSE Build Service is sponsored by