[1217] | 1 | %define ver 0.11.383.102 |
---|
[1244] | 2 | %define rel 3 |
---|
[1130] | 3 | %define utdic 20100601 |
---|
[1140] | 4 | %define enable_utdic_jinmei 0 |
---|
| 5 | %define enable_utdic_zipcode 0 |
---|
[1130] | 6 | %define enable_utdic_meisi 0 |
---|
| 7 | %define enable_utdic_jigyosyo 0 |
---|
| 8 | %define enable_edict_katakanago 0 |
---|
[1128] | 9 | |
---|
[1230] | 10 | %define scim_dir %(pkg-config --variable=moduledir scim) |
---|
| 11 | |
---|
[1128] | 12 | Name: mozc |
---|
| 13 | Summary: Japanese Input Method Editor designed for multi-platform |
---|
| 14 | Summary(ja): マルチプラットホームで動くように設計された日本語インプットメソッドエディタ |
---|
[1217] | 15 | Version: %{ver} |
---|
| 16 | Release: %{rel}%{?_dist_release} |
---|
[1012] | 17 | Group: System Environment/Libraries |
---|
[1130] | 18 | License: BSD-like (and EDICT is CC-by-sa 3.0 Unported) |
---|
[1012] | 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 |
---|
[1217] | 23 | Source0: %{name}-%{version}.tar.bz2 |
---|
[1012] | 24 | |
---|
| 25 | # Additional dictionaries by UTUMI Hirosi |
---|
[1130] | 26 | Source1: mozcdic-ut-%{utdic}.tar.bz2 |
---|
| 27 | |
---|
[1230] | 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 |
---|
[1074] | 38 | |
---|
[1130] | 39 | # Vine Lunux |
---|
| 40 | Source10: README.vine |
---|
| 41 | |
---|
[1074] | 42 | #Patch0: ibus-mozc-fix-for-x86_64.diff |
---|
[1012] | 43 | Patch1: ibus-mozc-0.11.0-fix-compile-w-i386.patch |
---|
[1244] | 44 | # based openSUSE by kazukado |
---|
| 45 | Patch2: mozc-0.11.383.102-x86_64_libdir.patch |
---|
[1012] | 46 | |
---|
| 47 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
[1074] | 48 | BuildRequires: python, ibus-devel, dbus-devel |
---|
[1140] | 49 | BuildRequires: openssl-devel, zlib-devel |
---|
[1130] | 50 | BuildRequires: curl-devel |
---|
[1074] | 51 | BuildRequires: protobuf-devel, gtest-devel |
---|
[1130] | 52 | BuildRequires: qt4-devel |
---|
[1140] | 53 | BuildRequires: gyp |
---|
[1230] | 54 | # for scim-mozc |
---|
| 55 | BuildRequires: pkgconfig |
---|
| 56 | BuildRequires: gtk2-devel |
---|
| 57 | BuildRequires: scim-devel |
---|
[1012] | 58 | |
---|
[1128] | 59 | Requires: mozc-server = %{version}-%{release} |
---|
| 60 | Requires: mozc-utils-gui = %{version}-%{release} |
---|
| 61 | Requires: ibus-mozc = %{version}-%{release} |
---|
| 62 | |
---|
[1012] | 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 | |
---|
[1128] | 76 | %package server |
---|
| 77 | Summary: Server part of the Mozc input method |
---|
| 78 | Summary(ja): Mozc インプットメソッドのサーバ部分 |
---|
| 79 | Group: Applications/System |
---|
[1012] | 80 | |
---|
[1128] | 81 | %description server |
---|
| 82 | Server part of the Mozc input method, used by Mozc clients such as |
---|
| 83 | ibus-mozc. |
---|
[1012] | 84 | |
---|
[1128] | 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 | |
---|
[1230] | 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 | |
---|
[1128] | 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 | |
---|
[1012] | 128 | %prep |
---|
[1217] | 129 | %setup -q -a 1 |
---|
[1074] | 130 | #%patch0 -p0 -b .fix-x86_64 |
---|
[1012] | 131 | %patch1 -p1 -b .fix-i386 |
---|
[1244] | 132 | %ifarch x86_64 |
---|
| 133 | %patch2 -p1 |
---|
| 134 | %endif |
---|
[1012] | 135 | |
---|
[1177] | 136 | # update execute files path |
---|
| 137 | %{__sed} -i -e"s|/usr/lib/mozc|%{_libexecdir}|g" base/util.cc |
---|
| 138 | |
---|
[1012] | 139 | # Add some dictionaries |
---|
[1130] | 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 | |
---|
[1074] | 148 | pushd data/dictionary/ |
---|
[1140] | 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 |
---|
[1130] | 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 |
---|
[1074] | 165 | %{__mv} dictionary1.txt.new dictionary1.txt |
---|
| 166 | popd |
---|
[1012] | 167 | |
---|
| 168 | %build |
---|
[1140] | 169 | %{__python} build_mozc.py gyp --gypdir=%{_bindir} |
---|
[1074] | 170 | %{__python} build_mozc.py build_tools -c Release |
---|
[1230] | 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 |
---|
[1012] | 174 | |
---|
| 175 | %install |
---|
[1140] | 176 | %{__rm} -rf %{buildroot} |
---|
[1177] | 177 | %{__mkdir_p} %{buildroot}%{_libdir} |
---|
| 178 | %{__mkdir_p} %{buildroot}%{_libexecdir} |
---|
[1012] | 179 | |
---|
[1140] | 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 | |
---|
[1230] | 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 | |
---|
[1128] | 192 | # mozc-server |
---|
[1177] | 193 | %{__cp} -p out/Release/mozc_server %{buildroot}%{_libexecdir} |
---|
[1128] | 194 | |
---|
| 195 | # mozc_tool |
---|
[1177] | 196 | %{__cp} -p out/Release/mozc_tool %{buildroot}%{_libexecdir} |
---|
[1128] | 197 | |
---|
[1012] | 198 | # install icon (temporary) |
---|
[1140] | 199 | %{__mkdir_p} %{buildroot}%{_datadir}/ibus-mozc/setup |
---|
[1135] | 200 | %{__cp} -p %{SOURCE3} %{buildroot}%{_datadir}/ibus-mozc/product_icon.png |
---|
| 201 | %{__cp} -p %{SOURCE4} %{buildroot}%{_datadir}/ibus-mozc/unknown.ico |
---|
[1230] | 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 |
---|
[1012] | 207 | |
---|
| 208 | # install document |
---|
[1074] | 209 | %{__chmod} 644 debian/* |
---|
| 210 | %{__cp} debian/copyright COPYING |
---|
[1130] | 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 |
---|
[1012] | 216 | |
---|
[1074] | 217 | |
---|
[1012] | 218 | %clean |
---|
| 219 | rm -rf $RPM_BUILD_ROOT |
---|
| 220 | |
---|
| 221 | %files |
---|
| 222 | %defattr(-,root,root) |
---|
[1130] | 223 | %doc COPYING README.vine utdic edict |
---|
[1128] | 224 | |
---|
| 225 | %files server |
---|
| 226 | %defattr(-,root,root) |
---|
[1130] | 227 | %doc COPYING README.vine utdic edict |
---|
[1177] | 228 | %{_libexecdir}/mozc_server |
---|
[1128] | 229 | |
---|
| 230 | %files utils-gui |
---|
| 231 | %defattr(-,root,root) |
---|
| 232 | %doc COPYING |
---|
[1177] | 233 | %{_libexecdir}/mozc_tool |
---|
[1128] | 234 | |
---|
| 235 | %files -n ibus-mozc |
---|
| 236 | %defattr(-,root,root) |
---|
| 237 | %doc COPYING |
---|
[1012] | 238 | %{_libdir}/ibus-engine-mozc |
---|
| 239 | %{_datadir}/ibus/component/mozc.xml |
---|
[1128] | 240 | %dir %{_datadir}/ibus-mozc |
---|
[1140] | 241 | %dir %{_datadir}/ibus-mozc/setup |
---|
[1128] | 242 | %{_datadir}/ibus-mozc/product_icon.png |
---|
[1135] | 243 | %{_datadir}/ibus-mozc/unknown.ico |
---|
[1230] | 244 | %{_datadir}/scim/icons/scim-mozc-dictionary.png |
---|
| 245 | %{_datadir}/scim/icons/scim-mozc-property.png |
---|
[1012] | 246 | |
---|
[1230] | 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 | |
---|
[1012] | 255 | %changelog |
---|
[1244] | 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 | |
---|
[1230] | 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 | |
---|
[1217] | 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 | |
---|
[1177] | 267 | * Wed Jun 9 2010 IWAI, Masaharu <iwai@alib.jp> 0.11.0-9.svn28 |
---|
| 268 | - update execute files path: <BTS:VineLinux:998> |
---|
| 269 | |
---|
[1140] | 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 | |
---|
[1135] | 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 | |
---|
[1130] | 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 | |
---|
[1128] | 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 | |
---|
[1074] | 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 | |
---|
[1055] | 300 | * Sat May 15 2010 IWAI, Masaharu <iwai@alib.jp> 0.11.0-3 |
---|
| 301 | - rebuild with ibus-1.3.3 |
---|
| 302 | |
---|
[1012] | 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 | |
---|