packages: ibus-xkbc/ibus-xkbc-scripts.patch (NEW), ibus-xkbc/ibus-xkbc.spec...

baggins baggins at pld-linux.org
Fri Jul 22 12:48:01 CEST 2011


Author: baggins                      Date: Fri Jul 22 10:48:01 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- initial revision

---- Files affected:
packages/ibus-xkbc:
   ibus-xkbc-scripts.patch (NONE -> 1.1)  (NEW), ibus-xkbc.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/ibus-xkbc/ibus-xkbc-scripts.patch
diff -u /dev/null packages/ibus-xkbc/ibus-xkbc-scripts.patch:1.1
--- /dev/null	Fri Jul 22 12:48:01 2011
+++ packages/ibus-xkbc/ibus-xkbc-scripts.patch	Fri Jul 22 12:47:56 2011
@@ -0,0 +1,60 @@
+--- ibus-xkbc-1.3.3.20100922.orig/engine/ibus-engine-xkbc.in
++++ ibus-xkbc-1.3.3.20100922/engine/ibus-engine-xkbc.in
+@@ -1,4 +1,4 @@
+-#!/bin/bash
++#!/bin/sh
+ # vim:set noet ts=4:
+ #
+ # ibus-xkbc - The Input Bus Keyboard Layout emulaton engine.
+@@ -19,10 +19,10 @@
+ # 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=@libdir@/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
+ export XKBC_LOCALE_DIR=@prefix@/share/locale
+-exec python2.6 @prefix@/share/ibus-xkbc/engine/main.py $@
++exec python @prefix@/share/ibus-xkbc/engine/main.py $@
+--- ibus-xkbc-1.3.3.20100922.orig/python-config.py
++++ ibus-xkbc-1.3.3.20100922/python-config.py
+@@ -1,4 +1,4 @@
+-#!/usr/bin/python2.6
++#!/usr/bin/python
+ 
+ import sys
+ import os
+--- ibus-xkbc-1.3.3.20100922.orig/setup/ibus-setup-xkbc.in
++++ ibus-xkbc-1.3.3.20100922/setup/ibus-setup-xkbc.in
+@@ -1,4 +1,4 @@
+-#!/bin/bash
++#!/bin/sh
+ # vim:set noet ts=4:
+ #
+ # ibus-xkbc - The Input Bus Keyboard Layout emulaton engine.
+@@ -22,4 +22,4 @@ export XKBC_LIBDIR=@prefix@/share/ibus-x
+ export XKB_DATA_DIR=@prefix@/X11/share/X11/xkb
+ export XKBC_DATAFILE=@prefix@/share/ibus-xkbc/data/xkbc.dat
+ export XKBC_LOCALE_DIR=@prefix@/share/locale
+-exec python2.6 @prefix@/share/ibus-xkbc/setup/main.py $@
++exec python @prefix@/share/ibus-xkbc/setup/main.py $@
+--- ibus-xkbc-1.3.3.20100922/vkb/ibus-keyboard.in~	2010-09-22 07:03:38.000000000 +0200
++++ ibus-xkbc-1.3.3.20100922/vkb/ibus-keyboard.in	2011-07-22 12:43:34.913945466 +0200
+@@ -1,4 +1,4 @@
+-#!/bin/bash
++#!/bin/sh
+ # vim:set noet ts=4:
+ #
+ # ibus-xkbc - The Input Bus Keyboard Layout emulaton engine.
+@@ -18,7 +18,7 @@
+ # You should have received a copy of the GNU General Public License
+ # along with this program; if not, write to the Free Software
+ # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+-export LIBEXECDIR=@prefix@/lib/ibus
++export LIBEXECDIR=@libexecdir@
+ export XKB_DATA_DIR=@prefix@/share/X11/xkb
+ export XKBC_SETUPDIR=@prefix@/share/ibus-xkbc/setup
+ export XKBC_LIBDIR=@prefix@/share/ibus-xkbc/setup/xkbc

================================================================
Index: packages/ibus-xkbc/ibus-xkbc.spec
diff -u /dev/null packages/ibus-xkbc/ibus-xkbc.spec:1.1
--- /dev/null	Fri Jul 22 12:48:01 2011
+++ packages/ibus-xkbc/ibus-xkbc.spec	Fri Jul 22 12:47:56 2011
@@ -0,0 +1,68 @@
+# $Revision$, $Date$
+Summary:	The XKBC engine for IBus input platform
+Name:		ibus-xkbc
+Version:	1.3.3.20100922
+Release:	0.1
+License:	GPL v2
+Group:		Libraries
+Source0:	http://cloud.github.com/downloads/sun-im/ibus-xkbc/%{name}-%{version}.tar.gz
+# Source0-md5:	96ad4c25356e07223a862b5067c9422c
+Patch0:		%{name}-scripts.patch
+URL:		http://github.com/sun-im/ibus-xkbc/
+BuildRequires:	gettext-autopoint
+BuildRequires:	gettext-devel
+BuildRequires:	glib2-devel
+BuildRequires:	libtool
+BuildRequires:	pkgconfig
+BuildRequires:	python-devel
+BuildRequires:	rarian-compat
+Requires:	ibus >= 1.3.0
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define		_libexecdir	%{_libdir}/ibus
+
+%description
+The XKBC engine for IBus platform. It provides keyboard layout
+emulation input method.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+%{__glib_gettextize}
+%{__libtoolize}
+%{__aclocal} -I m4
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%find_lang %{name} --with-gnome --with-omf
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files -f %{name}.lang
+%defattr(644,root,root,755)
+%doc AUTHORS COPYING README
+%attr(755,root,root) %{_bindir}/ibus-keyboard
+%attr(755,root,root) %{_libexecdir}/*
+%{_datadir}/ibus-xkbc
+%{_datadir}/ibus/component/*
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2011/07/22 10:47:56  baggins
+- initial revision
+
================================================================


More information about the pld-cvs-commit mailing list