[ibus-xkbc] update python deps to 2.7

Peng Wu pwu at fedoraproject.org
Wed Aug 18 03:17:28 UTC 2010


commit 0cf060d4b000da11058399d18ef9a3f1d4656307
Author: Peng Wu <alexepico at gmail.com>
Date:   Wed Aug 18 11:21:36 2010 +0800

    update python deps to 2.7

 ibus-xkbc-fixes-python-version.patch |   36 ++++++++++++++++++++++++++++++++++
 ibus-xkbc.spec                       |    7 +++++-
 2 files changed, 42 insertions(+), 1 deletions(-)
---
diff --git a/ibus-xkbc-fixes-python-version.patch b/ibus-xkbc-fixes-python-version.patch
new file mode 100644
index 0000000..39a951d
--- /dev/null
+++ b/ibus-xkbc-fixes-python-version.patch
@@ -0,0 +1,36 @@
+Index: ibus-xkbc-1.3.3.20100804/engine/ibus-engine-xkbc.in
+===================================================================
+--- ibus-xkbc-1.3.3.20100804.orig/engine/ibus-engine-xkbc.in
++++ ibus-xkbc-1.3.3.20100804/engine/ibus-engine-xkbc.in
+@@ -19,9 +19,9 @@
+ # along with this program; if not, write to the Free Software
+ # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ #
+-export PYTHONPATH=@prefix@/lib/python2.6/site-packages:$PYTHONPATH
++export PYTHONPATH=@prefix@/lib/python2.7/site-packages:$PYTHONPATH
+ export LIBEXECDIR=@libexecdir@
+ export XKBC_SETUPDIR=@prefix@/share/ibus-xkbc/setup
+ export XKBC_DATAFILE=@prefix@/share/ibus-xkbc/data/xkbc.dat
+ export XKB_DATA_DIR=@prefix@/X11/share/X11/xkb
+-exec python2.6 @prefix@/share/ibus-xkbc/engine/main.py $@
++exec python2.7 @prefix@/share/ibus-xkbc/engine/main.py $@
+Index: ibus-xkbc-1.3.3.20100804/python-config.py
+===================================================================
+--- ibus-xkbc-1.3.3.20100804.orig/python-config.py
++++ ibus-xkbc-1.3.3.20100804/python-config.py
+@@ -1,4 +1,4 @@
+-#!/usr/bin/python2.6
++#!/usr/bin/python2.7
+ 
+ import sys
+ import os
+Index: ibus-xkbc-1.3.3.20100804/setup/ibus-setup-xkbc.in
+===================================================================
+--- ibus-xkbc-1.3.3.20100804.orig/setup/ibus-setup-xkbc.in
++++ ibus-xkbc-1.3.3.20100804/setup/ibus-setup-xkbc.in
+@@ -21,4 +21,4 @@
+ export XKBC_LIBDIR=@prefix@/share/ibus-xkbc/setup/xkbc
+ export XKB_DATA_DIR=@prefix@/X11/share/X11/xkb
+ export XKBC_DATAFILE=@prefix@/share/ibus-xkbc/data/xkbc.dat
+-exec python2.6 @prefix@/share/ibus-xkbc/setup/main.py $@
++exec python2.7 @prefix@/share/ibus-xkbc/setup/main.py $@
diff --git a/ibus-xkbc.spec b/ibus-xkbc.spec
index 266fd12..bc2d414 100644
--- a/ibus-xkbc.spec
+++ b/ibus-xkbc.spec
@@ -2,12 +2,13 @@
 
 Name:       ibus-xkbc
 Version:    1.3.3.20100804
-Release:    1%{?dist}
+Release:    2%{?dist}
 Summary:    The XKBC engine for IBus input platform
 License:    GPLv2
 Group:      System Environment/Libraries
 URL:        http://github.com/sun-im/ibus-xkbc/
 Source0:    http://cloud.github.com/downloads/sun-im/ibus-xkbc/%{name}-%{version}.tar.gz
+Patch0:     ibus-xkbc-fixes-python-version.patch
 
 BuildArch: noarch
 BuildRoot:  %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -27,6 +28,7 @@ It provides keyboard layout emulation input method.
 
 %prep
 %setup -q
+%patch0 -p1 -b .python
 
 %build
 sh autogen.sh
@@ -51,6 +53,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_datadir}/ibus/component/*
 
 %changelog
+* Wed Aug 18 2010  Peng Wu <pwu at redhat.com> - 1.3.3.20100804-2
+- Update python deps to 2.7.
+
 * Thu Aug 12 2010  Peng Wu <pwu at redhat.com> - 1.3.3.20100804-1
 - Update to version 1.3.3.20100804.
 


More information about the scm-commits mailing list