1 | %define ver 0.11.383.102 |
---|
2 | %define rel 3 |
---|
3 | %define utdic 20100601 |
---|
4 | %define enable_utdic_jinmei 0 |
---|
5 | %define enable_utdic_zipcode 0 |
---|
6 | %define enable_utdic_meisi 0 |
---|
7 | %define enable_utdic_jigyosyo 0 |
---|
8 | %define enable_edict_katakanago 0 |
---|
9 | |
---|
10 | %define scim_dir %(pkg-config --variable=moduledir scim) |
---|
11 | |
---|
12 | Name: mozc |
---|
13 | Summary: Japanese Input Method Editor designed for multi-platform |
---|
14 | Summary(ja): マルチプラットホームで動くように設計された日本語インプットメソッドエディタ |
---|
15 | Version: %{ver} |
---|
16 | Release: %{rel}%{?_dist_release} |
---|
17 | Group: System Environment/Libraries |
---|
18 | License: BSD-like (and EDICT is CC-by-sa 3.0 Unported) |
---|
19 | URL: http://code.google.com/p/mozc/ |
---|
20 | |
---|
21 | # Source tar ball is not released yet. |
---|
22 | # See http://code.google.com/p/mozc/wiki/LinuxBuildInstructions |
---|
23 | Source0: %{name}-%{version}.tar.bz2 |
---|
24 | |
---|
25 | # Additional dictionaries by UTUMI Hirosi |
---|
26 | Source1: mozcdic-ut-%{utdic}.tar.bz2 |
---|
27 | |
---|
28 | ## Mozc icons by AWASHIRO Ikuya |
---|
29 | ## http://blog.goo.ne.jp/ikunya/e/2ac954b762a5eec3cc767f2502971f14 |
---|
30 | # http://twitpic.com/1ybqpd |
---|
31 | Source3: ikuya-mozc.png |
---|
32 | # http://twitpic.com/1yc148 |
---|
33 | Source4: ikuya-mozc-tool.png |
---|
34 | # http://twitpic.com/1ybr8g |
---|
35 | Source5: ikuya-mozc-dictionary.png |
---|
36 | # http://twitpic.com/1ybreb |
---|
37 | Source6: ikuya-mozc-property.png |
---|
38 | |
---|
39 | # Vine Lunux |
---|
40 | Source10: README.vine |
---|
41 | |
---|
42 | #Patch0: ibus-mozc-fix-for-x86_64.diff |
---|
43 | Patch1: ibus-mozc-0.11.0-fix-compile-w-i386.patch |
---|
44 | # based openSUSE by kazukado |
---|
45 | Patch2: mozc-0.11.383.102-x86_64_libdir.patch |
---|
46 | |
---|
47 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
48 | BuildRequires: python, ibus-devel, dbus-devel |
---|
49 | BuildRequires: openssl-devel, zlib-devel |
---|
50 | BuildRequires: curl-devel |
---|
51 | BuildRequires: protobuf-devel, gtest-devel |
---|
52 | BuildRequires: qt4-devel |
---|
53 | BuildRequires: gyp |
---|
54 | # for scim-mozc |
---|
55 | BuildRequires: pkgconfig |
---|
56 | BuildRequires: gtk2-devel |
---|
57 | BuildRequires: scim-devel |
---|
58 | |
---|
59 | Requires: mozc-server = %{version}-%{release} |
---|
60 | Requires: mozc-utils-gui = %{version}-%{release} |
---|
61 | Requires: ibus-mozc = %{version}-%{release} |
---|
62 | |
---|
63 | Packager: kazutaka |
---|
64 | |
---|
65 | %description |
---|
66 | Mozc is a Japanese Input Method Editor (IME) designed for |
---|
67 | multi-platform such as Chromium OS, Windows, Mac and Linux. |
---|
68 | This open-source project originates from Google Japanese Input. |
---|
69 | |
---|
70 | %description -l ja |
---|
71 | Mozc は日本語入力用の IME (Imput Method Editor)です。 |
---|
72 | Chromium OS や Windows、Mac、Linux といったマルチプラット |
---|
73 | フォームで利用できるようにデザインされており、「Google日本語 |
---|
74 | 入力」のオープンソース版です。 |
---|
75 | |
---|
76 | %package server |
---|
77 | Summary: Server part of the Mozc input method |
---|
78 | Summary(ja): Mozc インプットメソッドのサーバ部分 |
---|
79 | Group: Applications/System |
---|
80 | |
---|
81 | %description server |
---|
82 | Server part of the Mozc input method, used by Mozc clients such as |
---|
83 | ibus-mozc. |
---|
84 | |
---|
85 | %description server -l ja |
---|
86 | Mozc インプットメソッドのサーバ部分。ibus-mozcなどのMozcクライアントから |
---|
87 | 使うことができます。 |
---|
88 | |
---|
89 | %package -n ibus-mozc |
---|
90 | Summary: iBus engine module for Mozc |
---|
91 | Summary(ja): Mozc 用 iBus エンジンモジュール |
---|
92 | Group: System Environment/Libraries |
---|
93 | Requires: mozc-server = %{version}-%{release} |
---|
94 | |
---|
95 | %description -n ibus-mozc |
---|
96 | iBus engine module for Mozc. |
---|
97 | |
---|
98 | %description -n ibus-mozc -l ja |
---|
99 | Mozc 用 iBus エンジンモジュール。 |
---|
100 | |
---|
101 | %package -n scim-mozc |
---|
102 | Summary: SCIM IMEngine module for Mozc |
---|
103 | Summary(ja): Mozc 用 SCIM IMEngine モジュール |
---|
104 | Group: System Environment/Libraries |
---|
105 | Requires: mozc-server = %{version}-%{release} |
---|
106 | Requires: scim gtk2 |
---|
107 | |
---|
108 | %description -n scim-mozc |
---|
109 | SCIM IMEngine module for Mozc. |
---|
110 | |
---|
111 | %description -n scim-mozc -l ja |
---|
112 | Mozc 用 SCIM IMエンジンモジュール |
---|
113 | |
---|
114 | %package utils-gui |
---|
115 | Summary: Mozc GUI utilities |
---|
116 | Summary(ja): Mozc GUI ユーティリティー |
---|
117 | Group: Applications/System |
---|
118 | Requires: qt4 |
---|
119 | Requires: mozc-server = %{version}-%{release} |
---|
120 | |
---|
121 | %description utils-gui |
---|
122 | Mozc GUI uitilities, such as the configuration dialog, user dictionary |
---|
123 | tool and about dialog. |
---|
124 | |
---|
125 | %description utils-gui -l ja |
---|
126 | Mozc GUI ユーティリティー。設定ツールやユーザ辞書ツールなどが含まれます。 |
---|
127 | |
---|
128 | %prep |
---|
129 | %setup -q -a 1 |
---|
130 | #%patch0 -p0 -b .fix-x86_64 |
---|
131 | %patch1 -p1 -b .fix-i386 |
---|
132 | %ifarch x86_64 |
---|
133 | %patch2 -p1 |
---|
134 | %endif |
---|
135 | |
---|
136 | # update execute files path |
---|
137 | %{__sed} -i -e"s|/usr/lib/mozc|%{_libexecdir}|g" base/util.cc |
---|
138 | |
---|
139 | # Add some dictionaries |
---|
140 | pushd mozcdic-ut-%{utdic} |
---|
141 | %{__cp} mozcdic-ut-jinmei-*.txt ../data/dictionary/ |
---|
142 | %{__cp} mozcdic-ut-zipcode-*.txt ../data/dictionary/ |
---|
143 | %{__cp} mozcdic-ut-meisi-*.txt ../data/dictionary/ |
---|
144 | %{__cp} mozcdic-ut-jigyosyo-*.txt ../data/dictionary/ |
---|
145 | %{__cp} edict-katakanago/mozcdic-ut-edict-katakanago-*.txt ../data/dictionary/ |
---|
146 | popd |
---|
147 | |
---|
148 | pushd data/dictionary/ |
---|
149 | %{__cp} dictionary1.txt dictionary1.txt.new |
---|
150 | %if %{enable_utdic_jinmei} |
---|
151 | %{__cat} mozcdic-ut-jinmei-*.txt >> dictionary1.txt.new |
---|
152 | %endif |
---|
153 | %if %{enable_utdic_zipcode} |
---|
154 | %{__cat} mozcdic-ut-zipcode-*.txt >> dictionary1.txt.new |
---|
155 | %endif |
---|
156 | %if %{enable_utdic_meisi} |
---|
157 | %{__cat} mozcdic-ut-meisi-*.txt >> dictionary1.txt.new |
---|
158 | %endif |
---|
159 | %if %{enable_utdic_jigyosyo} |
---|
160 | %{__cat} mozcdic-ut-jigyosyo-*.txt >> dictionary1.txt.new |
---|
161 | %endif |
---|
162 | %if %{enable_edict_katakanago} |
---|
163 | %{__cat} mozcdic-ut-edict-katakanago-*.txt >> dictionary1.txt.new |
---|
164 | %endif |
---|
165 | %{__mv} dictionary1.txt.new dictionary1.txt |
---|
166 | popd |
---|
167 | |
---|
168 | %build |
---|
169 | %{__python} build_mozc.py gyp --gypdir=%{_bindir} |
---|
170 | %{__python} build_mozc.py build_tools -c Release |
---|
171 | %{__python} build_mozc.py build -c Release unix/ibus/ibus.gyp:ibus_mozc \ |
---|
172 | unix/scim/scim.gyp:scim_mozc unix/scim/scim.gyp:scim_mozc_setup \ |
---|
173 | server/server.gyp:mozc_server gui/gui.gyp:mozc_tool |
---|
174 | |
---|
175 | %install |
---|
176 | %{__rm} -rf %{buildroot} |
---|
177 | %{__mkdir_p} %{buildroot}%{_libdir} |
---|
178 | %{__mkdir_p} %{buildroot}%{_libexecdir} |
---|
179 | |
---|
180 | # ibus-mozc |
---|
181 | %{__cp} -p out/Release/ibus_mozc %{buildroot}%{_libdir}/ibus-engine-mozc |
---|
182 | %{__mkdir_p} %{buildroot}%{_datadir}/ibus/component/ |
---|
183 | %{__sed} 's|/usr/libexec|%{_libdir}|' < unix/ibus/mozc.xml > %{buildroot}%{_datadir}/ibus/component/mozc.xml |
---|
184 | |
---|
185 | # scim-mozc |
---|
186 | %{__mkdir_p} %{buildroot}%{scim_dir}/{IMEngine,SetupUI} |
---|
187 | %{__cp} -p out/Release/lib.target/libscim_mozc.so \ |
---|
188 | %{buildroot}%{scim_dir}/IMEngine/mozc.so |
---|
189 | %{__cp} -p out/Release/lib.target/libscim_mozc_setup.so \ |
---|
190 | %{buildroot}%{scim_dir}/SetupUI/mozc-setup.so |
---|
191 | |
---|
192 | # mozc-server |
---|
193 | %{__cp} -p out/Release/mozc_server %{buildroot}%{_libexecdir} |
---|
194 | |
---|
195 | # mozc_tool |
---|
196 | %{__cp} -p out/Release/mozc_tool %{buildroot}%{_libexecdir} |
---|
197 | |
---|
198 | # install icon (temporary) |
---|
199 | %{__mkdir_p} %{buildroot}%{_datadir}/ibus-mozc/setup |
---|
200 | %{__cp} -p %{SOURCE3} %{buildroot}%{_datadir}/ibus-mozc/product_icon.png |
---|
201 | %{__cp} -p %{SOURCE4} %{buildroot}%{_datadir}/ibus-mozc/unknown.ico |
---|
202 | %{__mkdir_p} %{buildroot}%{_datadir}/scim/icons |
---|
203 | %{__cp} -p %{SOURCE3} %{buildroot}%{_datadir}/scim/icons/scim-mozc.png |
---|
204 | %{__cp} -p %{SOURCE4} %{buildroot}%{_datadir}/scim/icons/scim-mozc-tool.png |
---|
205 | %{__cp} -p %{SOURCE5} %{buildroot}%{_datadir}/scim/icons/scim-mozc-dictionary.png |
---|
206 | %{__cp} -p %{SOURCE6} %{buildroot}%{_datadir}/scim/icons/scim-mozc-property.png |
---|
207 | |
---|
208 | # install document |
---|
209 | %{__chmod} 644 debian/* |
---|
210 | %{__cp} debian/copyright COPYING |
---|
211 | %{__cp} %{SOURCE10} . |
---|
212 | %{__mkdir} utdic |
---|
213 | %{__cp} mozcdic-ut-%{utdic}/{AUTHORS,COPYING,ChangeLog,README} utdic |
---|
214 | %{__mkdir} edict |
---|
215 | %{__cp} mozcdic-ut-%{utdic}/edict-katakanago/README.edict edict |
---|
216 | |
---|
217 | |
---|
218 | %clean |
---|
219 | rm -rf $RPM_BUILD_ROOT |
---|
220 | |
---|
221 | %files |
---|
222 | %defattr(-,root,root) |
---|
223 | %doc COPYING README.vine utdic edict |
---|
224 | |
---|
225 | %files server |
---|
226 | %defattr(-,root,root) |
---|
227 | %doc COPYING README.vine utdic edict |
---|
228 | %{_libexecdir}/mozc_server |
---|
229 | |
---|
230 | %files utils-gui |
---|
231 | %defattr(-,root,root) |
---|
232 | %doc COPYING |
---|
233 | %{_libexecdir}/mozc_tool |
---|
234 | |
---|
235 | %files -n ibus-mozc |
---|
236 | %defattr(-,root,root) |
---|
237 | %doc COPYING |
---|
238 | %{_libdir}/ibus-engine-mozc |
---|
239 | %{_datadir}/ibus/component/mozc.xml |
---|
240 | %dir %{_datadir}/ibus-mozc |
---|
241 | %dir %{_datadir}/ibus-mozc/setup |
---|
242 | %{_datadir}/ibus-mozc/product_icon.png |
---|
243 | %{_datadir}/ibus-mozc/unknown.ico |
---|
244 | %{_datadir}/scim/icons/scim-mozc-dictionary.png |
---|
245 | %{_datadir}/scim/icons/scim-mozc-property.png |
---|
246 | |
---|
247 | %files -n scim-mozc |
---|
248 | %defattr(-,root,root) |
---|
249 | %doc COPYING |
---|
250 | %{scim_dir}/SetupUI/mozc-setup.so |
---|
251 | %{scim_dir}/IMEngine/mozc.so |
---|
252 | %{_datadir}/scim/icons/scim-mozc.png |
---|
253 | %{_datadir}/scim/icons/scim-mozc-tool.png |
---|
254 | |
---|
255 | %changelog |
---|
256 | * Thu Jun 24 2010 IWAI, Masaharu <iwai@alib.jp> 0.11.383.102-3 |
---|
257 | - add x86_64 libdir patch (Patch2): based openSUSE by kazukado |
---|
258 | |
---|
259 | * Mon Jun 21 2010 IWAI, Masaharu <iwai@alib.jp> 0.11.383.102-2 |
---|
260 | - create new package scim-mozc |
---|
261 | - add icons (Source5, Source6) |
---|
262 | - update icons (Source3, Source4) |
---|
263 | |
---|
264 | * Fri Jun 18 2010 IWAI, Masaharu <iwai@alib.jp> 0.11.383.102-1 |
---|
265 | - update to 0.11.383.102 (svn rev.30) |
---|
266 | |
---|
267 | * Wed Jun 9 2010 IWAI, Masaharu <iwai@alib.jp> 0.11.0-9.svn28 |
---|
268 | - update execute files path: <BTS:VineLinux:998> |
---|
269 | |
---|
270 | * Fri Jun 4 2010 IWAI, Masaharu <iwai@alib.jp> 0.11.0-8.svn28 |
---|
271 | - disable all mozcdic-ut dictionary (disable jinmei and zipcode) |
---|
272 | - update README.vine |
---|
273 | - add BuildRequires: gyp |
---|
274 | - drop BuildRequires: subversion |
---|
275 | |
---|
276 | * Wed Jun 2 2010 IWAI, Masaharu <iwai@alib.jp> 0.11.0-7.svn28 |
---|
277 | - add mozc_tool's icon (Source4) |
---|
278 | - rename Source0: fixed created directory name "src" |
---|
279 | |
---|
280 | * Tue Jun 1 2010 IWAI, Masaharu <iwai@alib.jp> 0.11.0-6.svn28 |
---|
281 | - update mozcdic-ut 20100601 (Source10) |
---|
282 | - include documents for all dictionaries |
---|
283 | - add BuildRequires: qt4-devel |
---|
284 | |
---|
285 | * Tue Jun 1 2010 IWAI, Masaharu <iwai@alib.jp> 0.11.0-5.svn28 |
---|
286 | - rename base name: mozc |
---|
287 | - add new sub packages: |
---|
288 | - mozc-server |
---|
289 | - mozc-utils-gui |
---|
290 | - update source to revision 28 |
---|
291 | - replace icon (Source3) |
---|
292 | - drop mozc-config: upstream implement same tool |
---|
293 | |
---|
294 | * Sun May 23 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 0.11.0-4 |
---|
295 | - update source to revision 23 |
---|
296 | - add BuildRequires protobuf-devel, gtest-devel |
---|
297 | - drop Patch0 (ibus-mozc-fix-for-x86_64.diff) |
---|
298 | - add mozc-config as Source10 and desktop entry as Source11 |
---|
299 | |
---|
300 | * Sat May 15 2010 IWAI, Masaharu <iwai@alib.jp> 0.11.0-3 |
---|
301 | - rebuild with ibus-1.3.3 |
---|
302 | |
---|
303 | * Fri May 14 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 0.11.0-2 |
---|
304 | - add Patch1 to fix compile error on i386 (workaround patch) |
---|
305 | |
---|
306 | * Thu May 13 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 0.11.0-1 |
---|
307 | - initial build for Vine Liux based on custom mandriva package made by UTUMI-san |
---|
308 | |
---|
309 | * Thu May 13 2010 UTUMI Hirosi <utuhiro78@yahoo.co.jp> 0.11.0-2.20110511.1mdv2010.1 |
---|
310 | - add some dictionaries |
---|
311 | |
---|
312 | * Wed May 12 2010 UTUMI Hirosi <utuhiro78@yahoo.co.jp> 0.11.0-1.20110511.1mdv2010.1 |
---|
313 | - first release |
---|
314 | |
---|