forked from pool/python-pybluez
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:
committed by
Git OBS Bridge
parent
dfa82e2187
commit
8650525e69
13
python-pybluez-linux3-fix.patch
Normal file
13
python-pybluez-linux3-fix.patch
Normal 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~
|
@@ -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
|
Tue Apr 20 14:41:32 CEST 2010 - cstender@suse.de
|
||||||
|
|
||||||
|
@@ -24,6 +24,7 @@ Summary: A Python Bluetooth wrapper
|
|||||||
Version: 0.18
|
Version: 0.18
|
||||||
Release: 1
|
Release: 1
|
||||||
Source: PyBluez-%{version}.tar.gz
|
Source: PyBluez-%{version}.tar.gz
|
||||||
|
Patch1: python-pybluez-linux3-fix.patch
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Group: Development/Libraries/Python
|
Group: Development/Libraries/Python
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
@@ -46,6 +47,7 @@ Authors:
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -n PyBluez-%{version} -q
|
%setup -n PyBluez-%{version} -q
|
||||||
|
%patch1 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" python setup.py build
|
CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" python setup.py build
|
||||||
|
Reference in New Issue
Block a user