%global sum Python bindings for the liblo OSC library Name: pyliblo Version: 0.10.0 Release: 6%{?dist} Summary: %{sum} License: GPLv2+ URL: http://das.nasophon.de/pyliblo/ Source0: http://das.nasophon.de/download/%{name}-%{version}.tar.gz BuildRequires: python2-devel BuildRequires: python3-devel BuildRequires: python2-setuptools BuildRequires: python3-setuptools BuildRequires: Cython BuildRequires: python3-Cython BuildRequires: liblo-devel Provides: %{name} = %{version}-%{release} Obsoletes: %{name} < 0.10.0 %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. %package -n python2-%{name} Summary: %{sum} %{?python_provide:%python_provide python2-%{name}} %description -n python2-%{name} 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. %package -n python3-%{name} Summary: %{sum} %{?python_provide:%python_provide python3-%{name}} %description -n python3-%{name} 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 %autosetup -n %{name}-%{version} find -type f -exec sed -i '1s=^#!/usr/bin/\(python\|env python\)[23]\?=#!%{__python3}=' {} + # Remove shebang and executable bit from example scripts find examples/ -type f -exec sed -i '1s=^#!/usr/bin/\(python\|env python\)[23]\?==' {} + chmod -x examples/* %build %py2_build %py3_build %install %py2_install # delete the Python 2 executable(s) so that the Python 3 # version(s) can take their place afterwards. rm %{buildroot}%{_bindir}/* %py3_install %files -n python2-%{name} %doc NEWS README examples/ %license COPYING %{_mandir}/man*/*.* %{python2_sitearch}/liblo.so %{python2_sitearch}/%{name}*.egg-info %files -n python3-%{name} %doc NEWS README examples/ %license COPYING %{_mandir}/man*/*.* %{_bindir}/*_osc %{python3_sitearch}/liblo*.so %{python3_sitearch}/%{name}*.egg-info %changelog * Sat Feb 11 2017 Fedora Release Engineering - 0.10.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Dec 19 2016 Miro HronĨok - 0.10.0-5 - Rebuild for Python 3.6 * Tue Aug 30 2016 Lumir Balhar - 0.10.0-4 - Fix shebang and command line utils (rhbz#1348532) * Tue Jul 19 2016 Fedora Release Engineering - 0.10.0-3 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Mon Jun 27 2016 Fabian Affolter - 0.10.0-2 - Change shebang (rhbz#1348532) * Sat Apr 30 2016 Fabian Affolter - 0.10.0-1 - py3 support (rhbz#1322496) - Update to new upstream version 0.10.0 * Thu Feb 04 2016 Fedora Release Engineering - 0.9.1-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jun 18 2015 Fedora Release Engineering - 0.9.1-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sun Aug 17 2014 Fedora Release Engineering - 0.9.1-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 0.9.1-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sun Aug 04 2013 Fedora Release Engineering - 0.9.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Wed Jun 26 2013 Fabian Affolter - 0.9.1-6 - Spec file updated * Thu Feb 14 2013 Fedora Release Engineering - 0.9.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Sat Jul 21 2012 Fedora Release Engineering - 0.9.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Sat Jan 14 2012 Fedora Release Engineering - 0.9.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Tue Feb 08 2011 Fedora Release Engineering - 0.9.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Sun Jan 30 2011 Fabian Affolter - 0.9.1-1 - Update to new upstream version 0.9.1 * Sun Nov 21 2010 Fabian Affolter - 0.9.0-2 - Switched to Cython * Sun Nov 21 2010 Fabian Affolter - 0.9.0-1 - Update to new upstream version 0.9.0 * Wed Jul 21 2010 David Malcolm - 0.8.1-3 - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild * Tue Jul 20 2010 Fabian Affolter - 0.8.1-2 - Rebuild for new liblo * Mon Mar 15 2010 Fabian Affolter - 0.8.1-1 - Update to new upstream version 0.8.1 * Mon Sep 14 2009 Fabian Affolter - 0.8.0-1 - Update to new upstream version 0.8.0 * Mon Aug 10 2009 Fabian Affolter - 0.7.2-2 - Improved description - Changed optflags style - Removed comment * Sat Apr 25 2009 Fabian Affolter - 0.7.2-1 - Initial package for Fedora