14
0

Accepting request 79704 from home:Gankov:branches:devel:languages:python

on linux 3 library not work, because no detect linux. Application wammu no works without it patch.

OBS-URL: https://build.opensuse.org/request/show/79704
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pybluez?expand=0&rev=9
This commit is contained in:
Cristian Rodríguez
2011-08-24 23:07:29 +00:00
committed by Git OBS Bridge
parent dfa82e2187
commit 8650525e69
3 changed files with 20 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
diff -u -r PyBluez-0.18.orig/bluetooth/__init__.py PyBluez-0.18/bluetooth/__init__.py
--- PyBluez-0.18.orig/bluetooth/__init__.py 2009-11-24 11:39:49.000000000 +0300
+++ PyBluez-0.18/bluetooth/__init__.py 2011-08-22 23:00:31.000000000 +0400
@@ -30,7 +30,7 @@
_dbg("Widcomm not ready. falling back to MS stack")
from msbt import *
-elif sys.platform == "linux2":
+elif sys.platform == "linux2" or sys.platform == "linux3":
from bluez import *
elif sys.platform == "darwin":
from osx import *
Только в PyBluez-0.18/bluetooth: __init__.py~

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Aug 24 20:28:10 UTC 2011 - gankov@opensuse.org
- fix detection on linux3
-------------------------------------------------------------------
Tue Apr 20 14:41:32 CEST 2010 - cstender@suse.de

View File

@@ -24,6 +24,7 @@ Summary: A Python Bluetooth wrapper
Version: 0.18
Release: 1
Source: PyBluez-%{version}.tar.gz
Patch1: python-pybluez-linux3-fix.patch
License: GPLv2+
Group: Development/Libraries/Python
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@@ -46,6 +47,7 @@ Authors:
%prep
%setup -n PyBluez-%{version} -q
%patch1 -p1
%build
CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" python setup.py build