From d2e7d429f7a4797021680b3f74a49912db74e42f Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Wed, 4 Jul 2012 13:35:37 +0800 Subject: [PATCH] update to 1.4.1 --- .gitignore | 1 + ibus-libpinyin-1.4.x-head.patch | 0 ibus-libpinyin-for-0.6.0.patch | 23 ----------------------- ibus-libpinyin.spec | 9 ++++++--- sources | 2 +- 5 files changed, 8 insertions(+), 27 deletions(-) create mode 100644 ibus-libpinyin-1.4.x-head.patch delete mode 100644 ibus-libpinyin-for-0.6.0.patch diff --git a/.gitignore b/.gitignore index 5a45cdc..f60357a 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /ibus-libpinyin-1.4.0.tar.gz +/ibus-libpinyin-1.4.1.tar.gz diff --git a/ibus-libpinyin-1.4.x-head.patch b/ibus-libpinyin-1.4.x-head.patch new file mode 100644 index 0000000..e69de29 diff --git a/ibus-libpinyin-for-0.6.0.patch b/ibus-libpinyin-for-0.6.0.patch deleted file mode 100644 index 00c26c6..0000000 --- a/ibus-libpinyin-for-0.6.0.patch +++ /dev/null @@ -1,23 +0,0 @@ -commit 3717bfcf2b5334c4d5800cb2239ab33410e7c26a -Author: Peng Wu -Date: Tue Apr 17 12:45:47 2012 +0800 - - update pinyin_choose_candidate - -diff --git a/src/PYPPhoneticEditor.cc b/src/PYPPhoneticEditor.cc -index 4bd68fc..fe047fa 100644 ---- a/src/PYPPhoneticEditor.cc -+++ b/src/PYPPhoneticEditor.cc -@@ -379,11 +379,10 @@ LibPinyinPhoneticEditor::selectCandidate (guint i) - return TRUE; - } - -- guint8 len = pinyin_choose_candidate (m_instance, lookup_cursor, *token); -+ lookup_cursor = pinyin_choose_candidate (m_instance, lookup_cursor, *token); - pinyin_guess_sentence (m_instance); - - PinyinKeyPosVector & pinyin_poses = m_instance->m_pinyin_key_rests; -- lookup_cursor += len; - if (lookup_cursor == pinyin_poses->len) { - commit(); - return TRUE; diff --git a/ibus-libpinyin.spec b/ibus-libpinyin.spec index 2dfcb52..2060dd8 100644 --- a/ibus-libpinyin.spec +++ b/ibus-libpinyin.spec @@ -1,12 +1,12 @@ Name: ibus-libpinyin -Version: 1.4.0 +Version: 1.4.1 Release: 1%{?dist} Summary: Intelligent Pinyin engine based on libpinyin for IBus License: GPLv2+ Group: System Environment/Libraries URL: https://github.com/libpinyin/ibus-libpinyin Source0: https://github.com/downloads/libpinyin/ibus-libpinyin/%{name}-%{version}.tar.gz -Patch0: ibus-libpinyin-for-0.6.0.patch +Patch0: ibus-libpinyin-1.4.x-head.patch BuildRequires: gettext-devel BuildRequires: intltool @@ -30,7 +30,7 @@ input method based on libpinyin for IBus. %prep %setup -q -%patch0 -p1 -R -b .6.0 +%patch0 -p1 -b .head %build %configure --disable-static \ @@ -64,5 +64,8 @@ rm -rf $RPM_BUILD_ROOT %{_datadir}/ibus/component/* %changelog +* Wed Jul 04 2012 Peng Wu - 1.4.1-1 +- Update to 1.4.1 + * Fri Jun 01 2012 Peng Wu - 1.4.0-1 - The first version. diff --git a/sources b/sources index 2e1f1ad..c50cb26 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -d77f029dac6657480a2b99fddbe9a014 ibus-libpinyin-1.4.0.tar.gz +89347f0a255edcc83abf51a63d0e7bb9 ibus-libpinyin-1.4.1.tar.gz