File python-ao.spec of Package python-ao

#
# spec file for package python-ao (Version 0.82)
#
# Copyright (c) 2009 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:        348
Source0:        pyao-%{version}.tar.bz2
Patch0:         pyao-0.82-ssize.patch
License:        GPL v2 or later
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
* 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