commit e07dc15417867e610aaf13aba05d9520506bf13e
Author: Daiki Ueno <ueno(a)unixuser.org>
Date: Mon Mar 7 15:13:46 2011 +0900
Update to 1.3.2-1.
.gitignore | 1 +
ibus-m17n-HEAD.patch | 1486 --------------------------------------
ibus-m17n-ibus-1.4.patch | 343 ---------
ibus-m17n-iok.patch | 59 +-
ibus-m17n-surrounding-text.patch | 29 +-
ibus-m17n.spec | 37 +-
sources | 2 +-
7 files changed, 62 insertions(+), 1895 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 973301d..f71607a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
ibus-m17n-1.3.0.tar.gz
/ibus-m17n-1.3.0.tar.gz
/ibus-m17n-1.3.1.tar.gz
+/ibus-m17n-1.3.2.tar.gz
diff --git a/ibus-m17n-iok.patch b/ibus-m17n-iok.patch
index b777368..df6ef43 100644
--- a/ibus-m17n-iok.patch
+++ b/ibus-m17n-iok.patch
@@ -1,25 +1,25 @@
-From 5eea6bfe70ba1815bda1ba22a28c584f9d5f6a64 Mon Sep 17 00:00:00 2001
+From c27a0917c26624f1741efeebe20cd5cfb8647a67 Mon Sep 17 00:00:00 2001
From: Daiki Ueno <ueno(a)unixuser.org>
-Date: Wed, 8 Dec 2010 18:06:11 +0900
-Subject: [PATCH] Apply iok patch from fedora.
+Date: Mon, 7 Mar 2011 14:57:32 +0900
+Subject: [PATCH] Apply iok patch from Fedora.
---
- src/engine.c | 43 +++++++++++++++++++++++++++++++++++++++++++
- 1 files changed, 43 insertions(+), 0 deletions(-)
+ src/engine.c | 46 ++++++++++++++++++++++++++++++++++++++++++++++
+ 1 files changed, 46 insertions(+), 0 deletions(-)
diff --git a/src/engine.c b/src/engine.c
-index f8e7fe5..3143428 100644
+index 62359c1..362d347 100644
--- a/src/engine.c
+++ b/src/engine.c
-@@ -35,6 +35,7 @@ struct _IBusM17NEngine {
- IBusProperty *status_prop;
+@@ -37,6 +37,7 @@ struct _IBusM17NEngine {
IBusProperty *setup_prop;
+ #endif /* HAVE_SETUP */
IBusPropList *prop_list;
+ IBusProperty *show_iok_prop;
};
struct _IBusM17NEngineClass {
-@@ -46,6 +47,7 @@ struct _IBusM17NEngineClass {
+@@ -48,6 +49,7 @@ struct _IBusM17NEngineClass {
guint preedit_background;
gint preedit_underline;
gint lookup_table_orientation;
@@ -27,7 +27,7 @@ index f8e7fe5..3143428 100644
MInputMethod *im;
};
-@@ -309,6 +311,9 @@ ibus_m17n_engine_class_init (IBusM17NEngineClass *klass)
+@@ -316,6 +318,9 @@ ibus_m17n_engine_class_init (IBusM17NEngineClass *klass)
}
engine_name = g_strdup_printf ("m17n:%s:%s", lang, name);
klass->config_section = g_strdup_printf ("engine/M17N/%s/%s", lang,
name);
@@ -37,17 +37,17 @@ index f8e7fe5..3143428 100644
g_free (lang);
g_free (name);
-@@ -411,6 +416,7 @@ ibus_m17n_engine_init (IBusM17NEngine *m17n)
+@@ -420,6 +425,7 @@ ibus_m17n_engine_init (IBusM17NEngine *m17n)
{
IBusText* label;
IBusText* tooltip;
+ IBusM17NEngineClass *klass = (IBusM17NEngineClass *) G_OBJECT_GET_CLASS (m17n);
- m17n->status_prop = ibus_property_new ("status",
- PROP_TYPE_NORMAL,
-@@ -436,10 +442,26 @@ ibus_m17n_engine_init (IBusM17NEngine *m17n)
- NULL);
- g_object_ref_sink (m17n->setup_prop);
+ m17n->prop_list = ibus_prop_list_new ();
+ g_object_ref_sink (m17n->prop_list);
+@@ -452,6 +458,23 @@ ibus_m17n_engine_init (IBusM17NEngine *m17n)
+ ibus_prop_list_append (m17n->prop_list, m17n->setup_prop);
+ #endif /* HAVE_SETUP */
+ label = ibus_text_new_from_string ("iok");
+ m17n->show_iok_prop = ibus_property_new ("iok",
@@ -64,17 +64,14 @@ index f8e7fe5..3143428 100644
+ if (klass->use_iok)
+ ibus_property_set_visible (m17n->show_iok_prop, TRUE);
+
- m17n->prop_list = ibus_prop_list_new ();
- g_object_ref_sink (m17n->prop_list);
- ibus_prop_list_append (m17n->prop_list, m17n->status_prop);
- ibus_prop_list_append (m17n->prop_list, m17n->setup_prop);
+ ibus_prop_list_append (m17n->prop_list, m17n->show_iok_prop);
-
++
m17n->table = ibus_lookup_table_new (9, 0, TRUE, TRUE);
g_object_ref_sink (m17n->table);
-@@ -524,6 +546,11 @@ ibus_m17n_engine_destroy (IBusM17NEngine *m17n)
- m17n->setup_prop = NULL;
+ m17n->context = NULL;
+@@ -537,6 +560,11 @@ ibus_m17n_engine_destroy (IBusM17NEngine *m17n)
}
+ #endif /* HAVE_SETUP */
+ if (m17n->show_iok_prop) {
+ g_object_unref (m17n->show_iok_prop);
@@ -84,11 +81,11 @@ index f8e7fe5..3143428 100644
if (m17n->table) {
g_object_unref (m17n->table);
m17n->table = NULL;
-@@ -827,6 +854,22 @@ ibus_m17n_engine_property_activate (IBusEngine *engine,
- LIBEXECDIR, engine_name);
- g_spawn_command_line_async (setup, NULL);
- g_free (setup);
-+ } else if (g_strcmp0 (prop_name, "iok") == 0) {
+@@ -844,6 +872,24 @@ ibus_m17n_engine_property_activate (IBusEngine *engine,
+ }
+ #endif /* HAVE_SETUP */
+
++ if (g_strcmp0 (prop_name, "iok") == 0) {
+ const gchar *engine_name;
+ gchar *lang = NULL, *name = NULL;
+
@@ -104,9 +101,11 @@ index f8e7fe5..3143428 100644
+ }
+ g_free (lang);
+ g_free (name);
- }
++ }
++
parent_class->property_activate (engine, prop_name, prop_state);
}
+
--
-1.7.3.4
+1.7.4
diff --git a/ibus-m17n-surrounding-text.patch b/ibus-m17n-surrounding-text.patch
index ee22a90..37c90c5 100644
--- a/ibus-m17n-surrounding-text.patch
+++ b/ibus-m17n-surrounding-text.patch
@@ -1,24 +1,22 @@
-From e4f14d6d0755dc315c850eaef6f46fd1596b2da7 Mon Sep 17 00:00:00 2001
+From 589f9dc5998dc5ea620d1e6fa1a64045574b1dc1 Mon Sep 17 00:00:00 2001
From: Daiki Ueno <ueno(a)unixuser.org>
-Date: Wed, 15 Sep 2010 12:21:35 +0900
+Date: Mon, 7 Mar 2011 15:06:38 +0900
Subject: [PATCH] Support surrounding-text commands.
---
- src/engine.c | 51 ++++++++++++++++++++++++++++++++++++++++++++++++---
+ src/engine.c | 49 +++++++++++++++++++++++++++++++++++++++++++++++--
src/m17nutil.c | 8 ++++++++
- 2 files changed, 56 insertions(+), 3 deletions(-)
+ 2 files changed, 55 insertions(+), 2 deletions(-)
diff --git a/src/engine.c b/src/engine.c
-index 5fbe46f..e5dad3e 100644
+index 62359c1..ebe7ccc 100644
--- a/src/engine.c
+++ b/src/engine.c
-@@ -966,8 +966,53 @@ ibus_m17n_engine_callback (MInputContext *context,
+@@ -986,8 +986,53 @@ ibus_m17n_engine_callback (MInputContext *context,
}
else if (command == Minput_reset) {
}
- else if (command == Minput_get_surrounding_text) {
-- }
-- else if (command == Minput_delete_surrounding_text) {
+ else if (command == Minput_get_surrounding_text &&
+ (((IBusEngine *) m17n)->client_capabilities &
+ IBUS_CAP_SURROUNDING_TEXT) != 0) {
@@ -54,7 +52,8 @@ index 5fbe46f..e5dad3e 100644
+ m17n_object_unref (mt);
+ mplist_set (m17n->context->plist, Mtext, surround);
+ m17n_object_unref (surround);
-+ }
+ }
+- else if (command == Minput_delete_surrounding_text) {
+ else if (command == Minput_delete_surrounding_text &&
+ (((IBusEngine *) m17n)->client_capabilities &
+ IBUS_CAP_SURROUNDING_TEXT) != 0) {
@@ -70,10 +69,10 @@ index 5fbe46f..e5dad3e 100644
}
}
diff --git a/src/m17nutil.c b/src/m17nutil.c
-index 8fac1fe..3865931 100644
+index 1150cc4..db99686 100644
--- a/src/m17nutil.c
+++ b/src/m17nutil.c
-@@ -96,6 +96,13 @@ ibus_m17n_parse_color (const gchar *hex)
+@@ -91,6 +91,13 @@ ibus_m17n_parse_color (const gchar *hex)
return color;
}
@@ -87,14 +86,14 @@ index 8fac1fe..3865931 100644
static IBusEngineDesc *
ibus_m17n_engine_new (MSymbol lang,
MSymbol name,
-@@ -127,6 +134,7 @@ ibus_m17n_engine_new (MSymbol lang,
+@@ -122,6 +129,7 @@ ibus_m17n_engine_new (MSymbol lang,
"icon", engine_icon ?
engine_icon : "",
"layout", "us",
"rank", config->rank,
+ "requires", DEFAULT_REQUIRES,
NULL);
-
- g_free (engine_name);
+ #else
+ engine = ibus_engine_desc_new (engine_name,
--
-1.7.3.4
+1.7.4
diff --git a/ibus-m17n.spec b/ibus-m17n.spec
index bf63657..8bc6c95 100644
--- a/ibus-m17n.spec
+++ b/ibus-m17n.spec
@@ -1,26 +1,26 @@
%define require_ibus_version 1.3.0
Name: ibus-m17n
-Version: 1.3.1
-Release: 18%{?dist}
+Version: 1.3.2
+Release: 1%{?dist}
Summary: The M17N engine for IBus platform
License: GPLv2+
Group: System Environment/Libraries
URL:
http://code.google.com/p/ibus/
Source0:
http://ibus.googlecode.com/files/%{name}-%{version}.tar.gz
-Patch0: ibus-m17n-HEAD.patch
-Patch1: ibus-m17n-ibus-1.4.patch
-Patch2: ibus-m17n-iok.patch
-Patch3: ibus-m17n-surrounding-text.patch
+Patch0: ibus-m17n-iok.patch
+Patch1: ibus-m17n-surrounding-text.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-BuildRequires: gettext-devel
-BuildRequires: libtool
-BuildRequires: pkgconfig
+# The following BR is for autogen and not necessary when packging
+# released tarballs.
+# BuildRequires: gettext-devel
+# BuildRequires: libtool
+# BuildRequires: pkgconfig
+# BuildRequires: gnome-common
BuildRequires: m17n-lib-devel
BuildRequires: gtk3-devel
-BuildRequires: gnome-common
BuildRequires: ibus-devel >= %{require_ibus_version}
Requires: ibus >= %{require_ibus_version}
@@ -33,18 +33,12 @@ the input table maps from m17n-db.
%prep
%setup -q
-%patch0 -p1 -b .HEAD
-%patch1 -p1 -b .ibus-1.4
-%patch2 -p1 -b .iok
-%patch3 -p1 -b .surrounding-text
-NOCONFIGURE=1 ./autogen.sh
+%patch0 -p1 -b .iok
+%patch1 -p1 -b .surrounding-text
+# NOCONFIGURE=1 ./autogen.sh
%build
-GTK2_CFLAGS=`pkg-config gtk+-3.0 --cflags`
-export GTK2_CFLAGS
-GTK2_LIBS=`pkg-config gtk+-3.0 --libs`
-export GTK2_LIBS
-%configure --disable-static
+%configure --disable-static --with-gtk=3.0
# make -C po update-gmo
make %{?_smp_mflags}
@@ -66,6 +60,9 @@ rm -rf $RPM_BUILD_ROOT
%{_datadir}/ibus/component/*
%changelog
+* Mon Mar 7 2011 Daiki Ueno <dueno(a)redhat.com> - 1.3.2-1
+- New upstream release.
+
* Fri Feb 11 2011 Matthias Clasen <mclasen(a)redhat.com> - 1.3.1-18
- Rebuild against newer gtk
diff --git a/sources b/sources
index 3bc4b4a..c0a12ba 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-38ff41207518812945c60084deba0080 ibus-m17n-1.3.1.tar.gz
+4c406147318f94e5e805c408c4be075e ibus-m17n-1.3.2.tar.gz