[mozc] Add zipcode dictionary.

Akira TAGOH tagoh at fedoraproject.org
Tue Nov 29 06:37:20 UTC 2011


commit 53d46a3456226d48ca9221fe8cbf7550423dce01
Author: Akira TAGOH <tagoh at redhat.com>
Date:   Tue Nov 29 15:37:16 2011 +0900

    Add zipcode dictionary.

 .gitignore |    2 ++
 mozc.spec  |   13 +++++++++++--
 sources    |    2 ++
 3 files changed, 15 insertions(+), 2 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index daf83d7..cf346e9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -14,3 +14,5 @@ clog
 /mozc-1.2.809.102.tar.bz2
 /mozc-1.2.831.102.tar.bz2
 /mozc-1.2.855.102.tar.bz2
+/ken_all.zip
+/jigyosyo.zip
diff --git a/mozc.spec b/mozc.spec
index bd6b5dc..adab650 100644
--- a/mozc.spec
+++ b/mozc.spec
@@ -2,7 +2,7 @@
 
 Name:		mozc
 Version:	1.2.855.102
-Release:	1%{?dist}
+Release:	2%{?dist}
 Summary:	Open-sourced Google Japanese Input
 
 Group:		System Environment/Libraries
@@ -19,6 +19,9 @@ URL:		http://code.google.com/p/mozc
 #   also data/installer/credits_en.html
 Source0:	http://mozc.googlecode.com/files/mozc-%{version}.tar.bz2
 Source1:	mozc-init.el
+# Public Domain
+Source2:	http://www.post.japanpost.jp/zipcode/dl/kogaki/zip/ken_all.zip
+Source3:	http://www.post.japanpost.jp/zipcode/dl/jigyosyo/zip/jigyosyo.zip
 Patch0:		mozc-build-verbosely.patch
 Patch1:		mozc-fix-model-path-for-zinnia.patch
 Patch2:		mozc-no-Werror.patch
@@ -130,11 +133,14 @@ do not need to install this package to run mozc. Install the xemacs-mozc package
 to use mozc with XEmacs.
 
 %prep
-%setup -q
+%setup -q -a 2 -a 3
 %patch0 -p1 -b .0-build-verbosely
 %patch1 -p1 -b .1-fix-zinnia
 %patch2 -p1 -b .2-no-Werror
 %patch3 -p1 -b .3-new-ibus
+(cd data/dictionary;
+python ../../dictionary/gen_zip_code_seed.py --zip_code=../../KEN_ALL.CSV --jigyosyo=../../JIGYOSYO.CSV >> dictionary09.txt;
+)
 
 
 %build
@@ -251,6 +257,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_xemacs_sitelispdir}/%{pkg}/*.el
 
 %changelog
+* Tue Nov 29 2011 Akira TAGOH <tagoh at redhat.com> - 1.2.855.102-2
+- Add zipcode dictionary.
+
 * Tue Nov 15 2011 Akira TAGOH <tagoh at redhat.com> - 1.2.855.102-1
 - New upstream release.
 
diff --git a/sources b/sources
index b1e9325..8bd0af9 100644
--- a/sources
+++ b/sources
@@ -1 +1,3 @@
 486e1457c9aec5c9bf7ba9bd9c664165  mozc-1.2.855.102.tar.bz2
+01718a15c23583428e0d49960dede590  ken_all.zip
+83af25221498d2e001bb1af9af7cd346  jigyosyo.zip


More information about the scm-commits mailing list