[libpinyin] update to 0.5.92
Peng Wu
pwu at fedoraproject.org
Tue Mar 27 08:06:36 UTC 2012
commit 72730cc5371387bdb12060da60161f4152fe31a9
Author: Peng Wu <alexepico at gmail.com>
Date: Tue Mar 27 16:06:25 2012 +0800
update to 0.5.92
.gitignore | 1 +
libpinyin-0.6.x-head.patch | 35 -----------------------------------
libpinyin.spec | 10 ++++++++--
sources | 2 +-
4 files changed, 10 insertions(+), 38 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 75c6720..31b745d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,3 +7,4 @@
/libpinyin-0.4.93.tar.gz
/libpinyin-0.5.0.tar.gz
/libpinyin-0.5.91.tar.gz
+/libpinyin-0.5.92.tar.gz
diff --git a/libpinyin-0.6.x-head.patch b/libpinyin-0.6.x-head.patch
index de80a78..e69de29 100644
--- a/libpinyin-0.6.x-head.patch
+++ b/libpinyin-0.6.x-head.patch
@@ -1,35 +0,0 @@
-From ad094960b7844a026e65c4d2aafb674783694a08 Mon Sep 17 00:00:00 2001
-From: Peng Wu <alexepico at gmail.com>
-Date: Mon, 13 Feb 2012 13:26:12 +0800
-Subject: [PATCH] improves full pinyin parser
-
----
- src/storage/pinyin_parser2.cpp | 5 ++++-
- 1 files changed, 4 insertions(+), 1 deletions(-)
-
-diff --git a/src/storage/pinyin_parser2.cpp b/src/storage/pinyin_parser2.cpp
-index 80a525b..defc9fe 100644
---- a/src/storage/pinyin_parser2.cpp
-+++ b/src/storage/pinyin_parser2.cpp
-@@ -345,7 +345,9 @@ int FullPinyinParser2::parse (pinyin_option_t options, ChewingKeyVector & keys,
- #endif
-
- /* dynamic programming here. */
-- for (size_t m = i; m < next_sep; ++m) {
-+ /* for (size_t m = i; m < next_sep; ++m) */
-+ {
-+ size_t m = i;
- curstep = &g_array_index(m_parse_steps, parse_value_t, m);
- size_t try_len = std_lite::min
- (m + max_full_pinyin_length, next_sep);
-@@ -379,6 +381,7 @@ int FullPinyinParser2::parse (pinyin_option_t options, ChewingKeyVector & keys,
- if (value.m_parsed_len == nextstep->m_parsed_len &&
- value.m_num_keys < nextstep->m_num_keys)
- *nextstep = value;
-+
- if (value.m_parsed_len == nextstep->m_parsed_len &&
- value.m_num_keys == nextstep->m_num_keys) {
-
---
-1.7.7.6
-
diff --git a/libpinyin.spec b/libpinyin.spec
index bebe4a9..1e7e750 100644
--- a/libpinyin.spec
+++ b/libpinyin.spec
@@ -1,6 +1,6 @@
Name: libpinyin
-Version: 0.5.91
-Release: 3%{?dist}
+Version: 0.5.92
+Release: 1%{?dist}
Summary: Library to deal with pinyin
License: GPLv2+
@@ -51,6 +51,9 @@ The %{name}-tools package contains tools.
%configure --disable-static
make %{?_smp_mflags}
+%check
+make check
+
%install
make install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
@@ -84,6 +87,9 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
%{_mandir}/man1/*.1.*
%changelog
+* Tue Mar 27 2012 Peng Wu <pwu at redhat.com> - 0.5.92-1
+- Update to 0.5.92
+
* Wed Feb 15 2012 Peng Wu <pwu at redhat.com> - 0.5.91-3
- Provides ibus-pinyin-db
diff --git a/sources b/sources
index c5d260c..6804627 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-050e3e1012aaf5c3fb37bb1529e2fae5 libpinyin-0.5.91.tar.gz
+ba1f924aa8ab976e14bd3fb13f6abafb libpinyin-0.5.92.tar.gz
More information about the scm-commits
mailing list