%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} Name: pybluez Version: 0.16 Release: 2%{?dist} Summary: Python API for the BlueZ bluetooth stack Group: Development/Languages License: GPLv2 URL: http://code.google.com/p/pybluez/ Source0: http://pybluez.googlecode.com/files/PyBluez-%{version}.tar.gz Patch0: pybluez-0.16-btmodule.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: python-devel bluez-libs-devel %description PyBluez is an effort to create python wrappers around system Bluetooth resources to allow Python developers to easily and quickly create Bluetooth applications. %prep %setup -q -n PyBluez-%{version} %patch0 -p1 -b .btmodule %build CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build %install rm -rf $RPM_BUILD_ROOT # This file shouldn't be executable - it's going into %doc chmod a-x examples/bluezchat/bluezchat.py %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc README CHANGELOG COPYING examples %{python_sitearch}/* %changelog * Wed Oct 08 2009 Paulo Roma - 0.16-2 - Applied btmodule patch. * Tue Jul 28 2009 Will Woods - 0.16-1 - New (bugfix) release from upstream * Sun Jul 26 2009 Fedora Release Engineering - 0.15-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Thu Feb 26 2009 Fedora Release Engineering - 0.15-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Sat Nov 29 2008 Ignacio Vazquez-Abrams - 0.15-3 - Rebuild for Python 2.6 * Thu Sep 11 2008 - Bastien Nocera - 0.15-2 - Rebuild * Wed Jun 4 2008 Will Woods - 0.15-1 - New upstream version * Wed Feb 20 2008 Fedora Release Engineering - 0.9.1-4 - Autorebuild for GCC 4.3 * Fri Dec 29 2006 - Will Woods - 0.9.1-3 - Clean up spec file some more after further comments in bug #218678 * Fri Dec 15 2006 - Will Woods - 0.9.1-2 - Clean up spec file according to comments in bug #218678 * Wed Dec 6 2006 - Will Woods - 0.9.1-1 - Initial packaging attempt.