From 8650525e6923fffb74bfff54b2316b25a4e9a168da91be709233076e6240f856 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristian=20Rodr=C3=ADguez?= Date: Wed, 24 Aug 2011 23:07:29 +0000 Subject: [PATCH] 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 --- python-pybluez-linux3-fix.patch | 13 +++++++++++++ python-pybluez.changes | 5 +++++ python-pybluez.spec | 2 ++ 3 files changed, 20 insertions(+) create mode 100644 python-pybluez-linux3-fix.patch diff --git a/python-pybluez-linux3-fix.patch b/python-pybluez-linux3-fix.patch new file mode 100644 index 0000000..9738edc --- /dev/null +++ b/python-pybluez-linux3-fix.patch @@ -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~ diff --git a/python-pybluez.changes b/python-pybluez.changes index b6a6c00..046f81a 100644 --- a/python-pybluez.changes +++ b/python-pybluez.changes @@ -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 diff --git a/python-pybluez.spec b/python-pybluez.spec index 6f59b71..3692123 100644 --- a/python-pybluez.spec +++ b/python-pybluez.spec @@ -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