1 | %define ver 0.11.0 |
---|
2 | %define rel 6 |
---|
3 | %define svnrev 28 |
---|
4 | %define utdic 20100601 |
---|
5 | %define enable_utdic_meisi 0 |
---|
6 | %define enable_utdic_jigyosyo 0 |
---|
7 | %define enable_edict_katakanago 0 |
---|
8 | |
---|
9 | Name: mozc |
---|
10 | Summary: Japanese Input Method Editor designed for multi-platform |
---|
11 | Summary(ja): マルチプラットホームで動くように設計された日本語インプットメソッドエディタ |
---|
12 | Version: 0.11.0 |
---|
13 | Release: %{rel}.svn%{svnrev}%{?_dist_release} |
---|
14 | Group: System Environment/Libraries |
---|
15 | License: BSD-like (and EDICT is CC-by-sa 3.0 Unported) |
---|
16 | URL: http://code.google.com/p/mozc/ |
---|
17 | |
---|
18 | # Source tar ball is not released yet. |
---|
19 | # See http://code.google.com/p/mozc/wiki/LinuxBuildInstructions |
---|
20 | Source0: %{name}-r%{svnrev}.tar.bz2 |
---|
21 | |
---|
22 | # Additional dictionaries by UTUMI Hirosi |
---|
23 | Source1: mozcdic-ut-%{utdic}.tar.bz2 |
---|
24 | |
---|
25 | # http://twitpic.com/1ouyrr by AWASHIRO Ikuya |
---|
26 | Source3: ibus-mozc.png |
---|
27 | |
---|
28 | # Vine Lunux |
---|
29 | Source10: README.vine |
---|
30 | |
---|
31 | #Patch0: ibus-mozc-fix-for-x86_64.diff |
---|
32 | Patch1: ibus-mozc-0.11.0-fix-compile-w-i386.patch |
---|
33 | |
---|
34 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
35 | BuildRequires: python, ibus-devel, dbus-devel |
---|
36 | BuildRequires: openssl-devel, zlib-devel, subversion |
---|
37 | BuildRequires: curl-devel |
---|
38 | BuildRequires: protobuf-devel, gtest-devel |
---|
39 | BuildRequires: qt4-devel |
---|
40 | |
---|
41 | Requires: mozc-server = %{version}-%{release} |
---|
42 | Requires: mozc-utils-gui = %{version}-%{release} |
---|
43 | Requires: ibus-mozc = %{version}-%{release} |
---|
44 | |
---|
45 | Packager: kazutaka |
---|
46 | |
---|
47 | %description |
---|
48 | Mozc is a Japanese Input Method Editor (IME) designed for |
---|
49 | multi-platform such as Chromium OS, Windows, Mac and Linux. |
---|
50 | This open-source project originates from Google Japanese Input. |
---|
51 | |
---|
52 | %description -l ja |
---|
53 | Mozc は日本語入力用の IME (Imput Method Editor)です。 |
---|
54 | Chromium OS や Windows、Mac、Linux といったマルチプラット |
---|
55 | フォームで利用できるようにデザインされており、「Google日本語 |
---|
56 | 入力」のオープンソース版です。 |
---|
57 | |
---|
58 | %package server |
---|
59 | Summary: Server part of the Mozc input method |
---|
60 | Summary(ja): Mozc インプットメソッドのサーバ部分 |
---|
61 | Group: Applications/System |
---|
62 | |
---|
63 | %description server |
---|
64 | Server part of the Mozc input method, used by Mozc clients such as |
---|
65 | ibus-mozc. |
---|
66 | |
---|
67 | %description server -l ja |
---|
68 | Mozc インプットメソッドのサーバ部分。ibus-mozcなどのMozcクライアントから |
---|
69 | 使うことができます。 |
---|
70 | |
---|
71 | %package -n ibus-mozc |
---|
72 | Summary: iBus engine module for Mozc |
---|
73 | Summary(ja): Mozc 用 iBus エンジンモジュール |
---|
74 | Group: System Environment/Libraries |
---|
75 | Requires: mozc-server = %{version}-%{release} |
---|
76 | |
---|
77 | %description -n ibus-mozc |
---|
78 | iBus engine module for Mozc. |
---|
79 | |
---|
80 | %description -n ibus-mozc -l ja |
---|
81 | Mozc 用 iBus エンジンモジュール。 |
---|
82 | |
---|
83 | %package utils-gui |
---|
84 | Summary: Mozc GUI utilities |
---|
85 | Summary(ja): Mozc GUI ユーティリティー |
---|
86 | Group: Applications/System |
---|
87 | Requires: qt4 |
---|
88 | Requires: mozc-server = %{version}-%{release} |
---|
89 | |
---|
90 | %description utils-gui |
---|
91 | Mozc GUI uitilities, such as the configuration dialog, user dictionary |
---|
92 | tool and about dialog. |
---|
93 | |
---|
94 | %description utils-gui -l ja |
---|
95 | Mozc GUI ユーティリティー。設定ツールやユーザ辞書ツールなどが含まれます。 |
---|
96 | |
---|
97 | %prep |
---|
98 | %setup -q -n src -a 1 |
---|
99 | #%patch0 -p0 -b .fix-x86_64 |
---|
100 | %patch1 -p1 -b .fix-i386 |
---|
101 | |
---|
102 | # Add some dictionaries |
---|
103 | pushd mozcdic-ut-%{utdic} |
---|
104 | %{__cp} mozcdic-ut-jinmei-*.txt ../data/dictionary/ |
---|
105 | %{__cp} mozcdic-ut-zipcode-*.txt ../data/dictionary/ |
---|
106 | %{__cp} mozcdic-ut-meisi-*.txt ../data/dictionary/ |
---|
107 | %{__cp} mozcdic-ut-jigyosyo-*.txt ../data/dictionary/ |
---|
108 | %{__cp} edict-katakanago/mozcdic-ut-edict-katakanago-*.txt ../data/dictionary/ |
---|
109 | popd |
---|
110 | |
---|
111 | pushd data/dictionary/ |
---|
112 | %{__cat} dictionary1.txt mozcdic-ut-jinmei-*.txt mozcdic-ut-zipcode-*.txt > dictionary1.txt.new |
---|
113 | %if %{enable_utdic_meisi} |
---|
114 | %{__cat} mozcdic-ut-meisi-*.txt >> dictionary1.txt.new |
---|
115 | %endif |
---|
116 | %if %{enable_utdic_jigyosyo} |
---|
117 | %{__cat} mozcdic-ut-jigyosyo-*.txt >> dictionary1.txt.new |
---|
118 | %endif |
---|
119 | %if %{enable_edict_katakanago} |
---|
120 | %{__cat} mozcdic-ut-edict-katakanago-*.txt >> dictionary1.txt.new |
---|
121 | %endif |
---|
122 | %{__mv} dictionary1.txt.new dictionary1.txt |
---|
123 | popd |
---|
124 | |
---|
125 | %build |
---|
126 | %{__python} build_mozc.py gyp |
---|
127 | %{__python} build_mozc.py build_tools -c Release |
---|
128 | %{__python} build_mozc.py build -c Release unix/ibus/ibus.gyp:ibus_mozc server/server.gyp:mozc_server gui/gui.gyp:mozc_tool |
---|
129 | |
---|
130 | |
---|
131 | %install |
---|
132 | %{__rm} -rf %buildroot |
---|
133 | %{__mkdir_p} %buildroot/%{_libdir} |
---|
134 | %{__cp} -p out/Release/ibus_mozc %buildroot/%{_libdir}/ibus-engine-mozc |
---|
135 | %{__mkdir_p} %buildroot/%{_datadir}/ibus/component/ |
---|
136 | %{__sed} 's|/usr/libexec|%{_libdir}|' < unix/ibus/mozc.xml > %buildroot/%{_datadir}/ibus/component/mozc.xml |
---|
137 | |
---|
138 | # mozc-server |
---|
139 | %{__mkdir_p} %buildroot/%{_libdir}/mozc |
---|
140 | %{__cp} -p out/Release/mozc_server %buildroot/%{_libdir}/mozc |
---|
141 | |
---|
142 | # mozc_tool |
---|
143 | %{__cp} -p out/Release/mozc_tool %buildroot/%{_libdir}/mozc |
---|
144 | |
---|
145 | # install icon (temporary) |
---|
146 | %{__mkdir_p} %buildroot/%{_datadir}/ibus-mozc |
---|
147 | %{__cp} -p %{SOURCE3} %buildroot/%{_datadir}/ibus-mozc/product_icon.png |
---|
148 | |
---|
149 | # install document |
---|
150 | %{__chmod} 644 debian/* |
---|
151 | %{__cp} debian/copyright COPYING |
---|
152 | %{__cp} %{SOURCE10} . |
---|
153 | %{__mkdir} utdic |
---|
154 | %{__cp} mozcdic-ut-%{utdic}/{AUTHORS,COPYING,ChangeLog,README} utdic |
---|
155 | %{__mkdir} edict |
---|
156 | %{__cp} mozcdic-ut-%{utdic}/edict-katakanago/README.edict edict |
---|
157 | |
---|
158 | |
---|
159 | %clean |
---|
160 | rm -rf $RPM_BUILD_ROOT |
---|
161 | |
---|
162 | %files |
---|
163 | %defattr(-,root,root) |
---|
164 | %doc COPYING README.vine utdic edict |
---|
165 | |
---|
166 | %files server |
---|
167 | %defattr(-,root,root) |
---|
168 | %doc COPYING README.vine utdic edict |
---|
169 | %dir %{_libdir}/mozc |
---|
170 | %{_libdir}/mozc/mozc_server |
---|
171 | |
---|
172 | %files utils-gui |
---|
173 | %defattr(-,root,root) |
---|
174 | %doc COPYING |
---|
175 | %dir %{_libdir}/mozc |
---|
176 | %{_libdir}/mozc/mozc_tool |
---|
177 | |
---|
178 | %files -n ibus-mozc |
---|
179 | %defattr(-,root,root) |
---|
180 | %doc COPYING |
---|
181 | %{_libdir}/ibus-engine-mozc |
---|
182 | %{_datadir}/ibus/component/mozc.xml |
---|
183 | %dir %{_datadir}/ibus-mozc |
---|
184 | %{_datadir}/ibus-mozc/product_icon.png |
---|
185 | |
---|
186 | %changelog |
---|
187 | * Tue Jun 1 2010 IWAI, Masaharu <iwai@alib.jp> 0.11.0-6.svn28 |
---|
188 | - update mozcdic-ut 20100601 (Source10) |
---|
189 | - include documents for all dictionaries |
---|
190 | - add BuildRequires: qt4-devel |
---|
191 | |
---|
192 | * Tue Jun 1 2010 IWAI, Masaharu <iwai@alib.jp> 0.11.0-5.svn28 |
---|
193 | - rename base name: mozc |
---|
194 | - add new sub packages: |
---|
195 | - mozc-server |
---|
196 | - mozc-utils-gui |
---|
197 | - update source to revision 28 |
---|
198 | - replace icon (Source3) |
---|
199 | - drop mozc-config: upstream implement same tool |
---|
200 | |
---|
201 | * Sun May 23 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 0.11.0-4 |
---|
202 | - update source to revision 23 |
---|
203 | - add BuildRequires protobuf-devel, gtest-devel |
---|
204 | - drop Patch0 (ibus-mozc-fix-for-x86_64.diff) |
---|
205 | - add mozc-config as Source10 and desktop entry as Source11 |
---|
206 | |
---|
207 | * Sat May 15 2010 IWAI, Masaharu <iwai@alib.jp> 0.11.0-3 |
---|
208 | - rebuild with ibus-1.3.3 |
---|
209 | |
---|
210 | * Fri May 14 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 0.11.0-2 |
---|
211 | - add Patch1 to fix compile error on i386 (workaround patch) |
---|
212 | |
---|
213 | * Thu May 13 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 0.11.0-1 |
---|
214 | - initial build for Vine Liux based on custom mandriva package made by UTUMI-san |
---|
215 | |
---|
216 | * Thu May 13 2010 UTUMI Hirosi <utuhiro78@yahoo.co.jp> 0.11.0-2.20110511.1mdv2010.1 |
---|
217 | - add some dictionaries |
---|
218 | |
---|
219 | * Wed May 12 2010 UTUMI Hirosi <utuhiro78@yahoo.co.jp> 0.11.0-1.20110511.1mdv2010.1 |
---|
220 | - first release |
---|
221 | |
---|