%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
Name: pyliblo
Version: 0.7.2
Release: 2%{?dist}
Summary: Python bindings for the liblo OSC library
Group: Applications/Publishing
License: GPLv2+
URL: http://das.nasophon.de/pyliblo/
Source0: http://das.nasophon.de/download/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: python-devel
BuildRequires: python-setuptools-devel
BuildRequires: Pyrex
BuildRequires: liblo-devel
%description
pyliblo is a Python wrapper for the liblo Open Sound Control library.
It supports almost the complete functionality of liblo, allowing you
to send and receive OSC messages using a nice and simple Python API.
Also included are the command line utilities send_osc and dump_osc.
%prep
%setup -q
rm src/liblo.c
%build
CFLAGS="%{optflags}" %{__python} setup.py build --with-pyrex
%install
rm -rf %{buildroot}
python setup.py install -O1 --skip-build --root=%{buildroot}
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc COPYING NEWS README doc/*.html
%{_mandir}/man*/*.*
%{_bindir}/*_osc
%{python_sitearch}/liblo.so
%{python_sitearch}/%{name}*.egg-info
%changelog
* Mon Aug 10 2009 Fabian Affolter <fabian@bernewireless.net> - 0.7.2-2
- Improved description
- Changed optflags style
- Removed comment
* Sat Apr 25 2009 Fabian Affolter <fabian@bernewireless.net> - 0.7.2-1
- Initial package for Fedora