Blob Blame History Raw
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}

Name:		python-alsaaudio
Version:	0.3
Release:	1%{?dist}
Summary:	Python Alsa Bindings

Group:		Development/Languages
License:	Python
URL:		http://sourceforge.net/projects/pyalsaaudio
Source0:	http://downloads.sourceforge.net/pyalsaaudio/pyalsaaudio-%{version}.tar.gz
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:	python-devel
BuildRequires:	alsa-lib-devel


%description
The Python-AlsaAudio package contains bindings for the ALSA sound API.


%prep
%setup -q -n pyalsaaudio-%{version}


%build
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build


%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT

 
%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc CHANGES LICENSE README TODO
%{python_sitearch}/*


%changelog
* Tue Feb 19 2008 kwizart < kwizart at gmail.com > - 0.3-1
- Update to 0.3

* Sat Feb  9 2008 kwizart < kwizart at gmail.com > - 0.2-3
- Rebuild for gcc43

* Fri Dec  8 2006 Brian Pepple <bpepple@fedoraproject.org> - 0.2-2
- Rebuild against new python.

* Thu Nov  2 2006 Brian Pepple <bpepple@fedoraproject.org> - 0.2-1
- Initial FE spec.