Fabian Affolter 2738981
%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
Fabian Affolter 2738981
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
Fabian Affolter 2738981
%endif
83905dc
83905dc
Name:           pyliblo
Fabian Affolter 32e933d
Version:        0.9.1
9989ad1
Release:        4%{?dist}
83905dc
Summary:        Python bindings for the liblo OSC library
83905dc
83905dc
Group:          Applications/Publishing
83905dc
License:        GPLv2+
83905dc
URL:            http://das.nasophon.de/pyliblo/
83905dc
Source0:        http://das.nasophon.de/download/%{name}-%{version}.tar.gz
83905dc
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
83905dc
83905dc
BuildRequires:  python-devel
893b931
BuildRequires:  python-setuptools
83905dc
BuildRequires:  liblo-devel
Fabian Affolter 4906ca0
BuildRequires:  Cython
83905dc
83905dc
83905dc
%description
83905dc
pyliblo is a Python wrapper for the liblo Open Sound Control library.
83905dc
It supports almost the complete functionality of liblo, allowing you
83905dc
to send and receive OSC messages using a nice and simple Python API.
83905dc
83905dc
Also included are the command line utilities send_osc and dump_osc. 
83905dc
83905dc
83905dc
%prep
83905dc
%setup -q
83905dc
rm src/liblo.c
83905dc
54a52d2
83905dc
%build
Fabian Affolter 4906ca0
CFLAGS="%{optflags}" %{__python} setup.py build --with-cython
83905dc
83905dc
83905dc
%install
83905dc
rm -rf %{buildroot}
893b931
%{__python} setup.py install -O1 --skip-build --root=%{buildroot}
83905dc
83905dc
83905dc
%clean
83905dc
rm -rf %{buildroot}
83905dc
83905dc
83905dc
%files
83905dc
%defattr(-,root,root,-)
83905dc
%doc COPYING NEWS README doc/*.html
83905dc
%{_mandir}/man*/*.*
83905dc
%{_bindir}/*_osc
83905dc
%{python_sitearch}/liblo.so
83905dc
%{python_sitearch}/%{name}*.egg-info
83905dc
83905dc
83905dc
%changelog
9989ad1
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.1-4
9989ad1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
9989ad1
8667bb2
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.1-3
8667bb2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
8667bb2
0ee4874
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.1-2
0ee4874
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
0ee4874
Fabian Affolter 32e933d
* Sun Jan 30 2011 Fabian Affolter <fabian@bernewireless.net> - 0.9.1-1
Fabian Affolter 32e933d
- Update to new upstream version 0.9.1
Fabian Affolter 32e933d
Fabian Affolter 4906ca0
* Sun Nov 21 2010 Fabian Affolter <fabian@bernewireless.net> - 0.9.0-2
Fabian Affolter 4906ca0
- Switched to Cython
Fabian Affolter 4906ca0
Fabian Affolter 2738981
* Sun Nov 21 2010 Fabian Affolter <fabian@bernewireless.net> - 0.9.0-1
Fabian Affolter 2738981
- Update to new upstream version 0.9.0
Fabian Affolter 2738981
b5697b6
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.8.1-3
b5697b6
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
b5697b6
54a52d2
* Tue Jul 20 2010 Fabian Affolter <fabian@bernewireless.net> - 0.8.1-2
54a52d2
- Rebuild for new liblo
54a52d2
893b931
* Mon Mar 15 2010 Fabian Affolter <fabian@bernewireless.net> - 0.8.1-1
893b931
- Update to new upstream version 0.8.1
893b931
0d34533
* Mon Sep 14 2009 Fabian Affolter <fabian@bernewireless.net> - 0.8.0-1
0d34533
- Update to new upstream version 0.8.0
0d34533
83905dc
* Mon Aug 10 2009 Fabian Affolter <fabian@bernewireless.net> - 0.7.2-2
83905dc
- Improved description
83905dc
- Changed optflags style
83905dc
- Removed comment
83905dc
83905dc
* Sat Apr 25 2009 Fabian Affolter <fabian@bernewireless.net> - 0.7.2-1
83905dc
- Initial package for Fedora