[2190] | 1 | %define ver 0.13.523.102 |
---|
[1599] | 2 | %define rel 1 |
---|
[1128] | 3 | |
---|
[1230] | 4 | %define scim_dir %(pkg-config --variable=moduledir scim) |
---|
[2063] | 5 | %define mozc_el mozc-el |
---|
[1230] | 6 | |
---|
[1128] | 7 | Name: mozc |
---|
| 8 | Summary: Japanese Input Method Editor designed for multi-platform |
---|
| 9 | Summary(ja): マルチプラットホームで動くように設計された日本語インプットメソッドエディタ |
---|
[1217] | 10 | Version: %{ver} |
---|
| 11 | Release: %{rel}%{?_dist_release} |
---|
[1012] | 12 | Group: System Environment/Libraries |
---|
[1130] | 13 | License: BSD-like (and EDICT is CC-by-sa 3.0 Unported) |
---|
[1012] | 14 | URL: http://code.google.com/p/mozc/ |
---|
| 15 | |
---|
[1313] | 16 | Source0: http://mozc.googlecode.com/files/%{name}-%{version}.tar.bz2 |
---|
| 17 | ## svn debian/copyright |
---|
[2063] | 18 | Source1: mozc-copyright |
---|
| 19 | # for mozc-el |
---|
| 20 | Source2: %{name}-install.sh |
---|
| 21 | Source3: %{name}-remove.sh |
---|
| 22 | Source4: vine-default-%{name}.el |
---|
| 23 | Source5: %{name}-init.el |
---|
[1012] | 24 | |
---|
[2063] | 25 | |
---|
[1130] | 26 | # Vine Lunux |
---|
| 27 | Source10: README.vine |
---|
| 28 | |
---|
[1012] | 29 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
[1074] | 30 | BuildRequires: python, ibus-devel, dbus-devel |
---|
[1140] | 31 | BuildRequires: openssl-devel, zlib-devel |
---|
[1130] | 32 | BuildRequires: curl-devel |
---|
[1074] | 33 | BuildRequires: protobuf-devel, gtest-devel |
---|
[1130] | 34 | BuildRequires: qt4-devel |
---|
[1140] | 35 | BuildRequires: gyp |
---|
[1230] | 36 | # for scim-mozc |
---|
| 37 | BuildRequires: pkgconfig |
---|
| 38 | BuildRequires: gtk2-devel |
---|
| 39 | BuildRequires: scim-devel |
---|
[1012] | 40 | |
---|
[1128] | 41 | Requires: mozc-server = %{version}-%{release} |
---|
| 42 | Requires: mozc-utils-gui = %{version}-%{release} |
---|
| 43 | Requires: ibus-mozc = %{version}-%{release} |
---|
| 44 | |
---|
[1012] | 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 | |
---|
[1128] | 58 | %package server |
---|
| 59 | Summary: Server part of the Mozc input method |
---|
| 60 | Summary(ja): Mozc インプットメソッドのサーバ部分 |
---|
| 61 | Group: Applications/System |
---|
[1012] | 62 | |
---|
[1128] | 63 | %description server |
---|
| 64 | Server part of the Mozc input method, used by Mozc clients such as |
---|
| 65 | ibus-mozc. |
---|
[1012] | 66 | |
---|
[1128] | 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 | |
---|
[1230] | 83 | %package -n scim-mozc |
---|
| 84 | Summary: SCIM IMEngine module for Mozc |
---|
| 85 | Summary(ja): Mozc 用 SCIM IMEngine モジュール |
---|
| 86 | Group: System Environment/Libraries |
---|
| 87 | Requires: mozc-server = %{version}-%{release} |
---|
| 88 | Requires: scim gtk2 |
---|
| 89 | |
---|
| 90 | %description -n scim-mozc |
---|
| 91 | SCIM IMEngine module for Mozc. |
---|
| 92 | |
---|
| 93 | %description -n scim-mozc -l ja |
---|
| 94 | Mozc 用 SCIM IMエンジンモジュール |
---|
| 95 | |
---|
[1128] | 96 | %package utils-gui |
---|
| 97 | Summary: Mozc GUI utilities |
---|
| 98 | Summary(ja): Mozc GUI ユーティリティー |
---|
| 99 | Group: Applications/System |
---|
| 100 | Requires: qt4 |
---|
| 101 | Requires: mozc-server = %{version}-%{release} |
---|
| 102 | |
---|
| 103 | %description utils-gui |
---|
| 104 | Mozc GUI uitilities, such as the configuration dialog, user dictionary |
---|
| 105 | tool and about dialog. |
---|
| 106 | |
---|
| 107 | %description utils-gui -l ja |
---|
| 108 | Mozc GUI ユーティリティー。設定ツールやユーザ辞書ツールなどが含まれます。 |
---|
| 109 | |
---|
[2063] | 110 | %package -n %{mozc_el} |
---|
| 111 | Summary: Emacs Lisp frontend for Mozc |
---|
| 112 | Summary(ja): Mozc 用 Emacs Lisp フロントエンド |
---|
| 113 | Group: Applications/Editors/Emacs |
---|
| 114 | BuildRequires: emacs |
---|
| 115 | Requires(post,preun): emacsen, emacsen-common >= 0.1 |
---|
| 116 | Requires: mozc-server = %{version}-%{release} |
---|
| 117 | |
---|
| 118 | %description -n %{mozc_el} |
---|
| 119 | Emacs Lisp frontend for Mozc |
---|
| 120 | |
---|
| 121 | %description -n %{mozc_el} -l ja |
---|
| 122 | Mozc のための Emacs-lisp フロントエンド |
---|
| 123 | |
---|
[1012] | 124 | %prep |
---|
[1300] | 125 | %setup -q |
---|
[1313] | 126 | %{__cp} -p %{SOURCE1} COPYING |
---|
[1012] | 127 | |
---|
[1177] | 128 | # update execute files path |
---|
| 129 | %{__sed} -i -e"s|/usr/lib/mozc|%{_libexecdir}|g" base/util.cc |
---|
| 130 | |
---|
[1130] | 131 | |
---|
[1012] | 132 | %build |
---|
[1140] | 133 | %{__python} build_mozc.py gyp --gypdir=%{_bindir} |
---|
[1074] | 134 | %{__python} build_mozc.py build_tools -c Release |
---|
[1230] | 135 | %{__python} build_mozc.py build -c Release unix/ibus/ibus.gyp:ibus_mozc \ |
---|
| 136 | unix/scim/scim.gyp:scim_mozc unix/scim/scim.gyp:scim_mozc_setup \ |
---|
[2063] | 137 | unix/emacs/emacs.gyp:mozc_emacs_helper server/server.gyp:mozc_server \ |
---|
| 138 | gui/gui.gyp:mozc_tool |
---|
[1012] | 139 | |
---|
| 140 | %install |
---|
[1140] | 141 | %{__rm} -rf %{buildroot} |
---|
[1177] | 142 | %{__mkdir_p} %{buildroot}%{_libdir} |
---|
| 143 | %{__mkdir_p} %{buildroot}%{_libexecdir} |
---|
[1012] | 144 | |
---|
[1300] | 145 | %define output_dir out_linux/Release |
---|
| 146 | |
---|
[1140] | 147 | # ibus-mozc |
---|
[1300] | 148 | %{__cp} -p %{output_dir}/ibus_mozc %{buildroot}%{_libdir}/ibus-engine-mozc |
---|
[1140] | 149 | %{__mkdir_p} %{buildroot}%{_datadir}/ibus/component/ |
---|
[1300] | 150 | %{__sed} 's|/usr/libexec|%{_libdir}|' < %{output_dir}/obj/gen/unix/ibus/mozc.xml > %{buildroot}%{_datadir}/ibus/component/mozc.xml |
---|
[1599] | 151 | ## install icons |
---|
| 152 | %{__mkdir_p} %{buildroot}%{_datadir}/ibus-mozc/setup |
---|
| 153 | %{__cp} -p data/images/unix/ime_product_icon_opensource-32.png %{buildroot}%{_datadir}/ibus-mozc/product_icon.png |
---|
| 154 | %{__cp} -p data/images/unix/ui-tool.png %{buildroot}%{_datadir}/ibus-mozc/tool.png |
---|
| 155 | %{__cp} -p data/images/unix/ui-properties.png %{buildroot}%{_datadir}/ibus-mozc/properties.png |
---|
| 156 | %{__cp} -p data/images/unix/ui-dictionary.png %{buildroot}%{_datadir}/ibus-mozc/dictionary.png |
---|
| 157 | %{__cp} -p data/images/unix/ui-direct.png %{buildroot}%{_datadir}/ibus-mozc/direct.png |
---|
| 158 | %{__cp} -p data/images/unix/ui-hiragana.png %{buildroot}%{_datadir}/ibus-mozc/hiragana.png |
---|
| 159 | %{__cp} -p data/images/unix/ui-katakana_half.png %{buildroot}%{_datadir}/ibus-mozc/katakana_half.png |
---|
| 160 | %{__cp} -p data/images/unix/ui-katakana_full.png %{buildroot}%{_datadir}/ibus-mozc/katakana_full.png |
---|
| 161 | %{__cp} -p data/images/unix/ui-alpha_half.png %{buildroot}%{_datadir}/ibus-mozc/alpha_half.png |
---|
| 162 | %{__cp} -p data/images/unix/ui-alpha_full.png %{buildroot}%{_datadir}/ibus-mozc/alpha_full.png |
---|
[1140] | 163 | |
---|
[1599] | 164 | |
---|
[1230] | 165 | # scim-mozc |
---|
| 166 | %{__mkdir_p} %{buildroot}%{scim_dir}/{IMEngine,SetupUI} |
---|
[1300] | 167 | %{__cp} -p %{output_dir}/lib.target/libscim_mozc.so \ |
---|
[1230] | 168 | %{buildroot}%{scim_dir}/IMEngine/mozc.so |
---|
[1300] | 169 | %{__cp} -p %{output_dir}/lib.target/libscim_mozc_setup.so \ |
---|
[1230] | 170 | %{buildroot}%{scim_dir}/SetupUI/mozc-setup.so |
---|
[1599] | 171 | ## install icons |
---|
| 172 | %{__mkdir_p} %{buildroot}%{_datadir}/scim/icons |
---|
| 173 | %{__cp} -p data/images/unix/ime_product_icon_opensource-32.png %{buildroot}%{_datadir}/scim/icons/scim-mozc.png |
---|
| 174 | %{__cp} -p data/images/unix/ui-tool.png %{buildroot}%{_datadir}/scim/icons/scim-mozc-tool.png |
---|
| 175 | %{__cp} -p data/images/unix/ui-properties.png %{buildroot}%{_datadir}/scim/icons/scim-mozc-properties.png |
---|
| 176 | %{__cp} -p data/images/unix/ui-dictionary.png %{buildroot}%{_datadir}/scim/icons/scim-mozc-dictionary.png |
---|
| 177 | %{__cp} -p data/images/unix/ui-direct.png %{buildroot}%{_datadir}/scim/icons/scim-mozc-direct.png |
---|
| 178 | %{__cp} -p data/images/unix/ui-hiragana.png %{buildroot}%{_datadir}/scim/icons/scim-mozc-hiragana.png |
---|
| 179 | %{__cp} -p data/images/unix/ui-katakana_half.png %{buildroot}%{_datadir}/scim/icons/scim-mozc-katakana_half.png |
---|
| 180 | %{__cp} -p data/images/unix/ui-katakana_full.png %{buildroot}%{_datadir}/scim/icons/scim-mozc-katakana_full.png |
---|
| 181 | %{__cp} -p data/images/unix/ui-alpha_half.png %{buildroot}%{_datadir}/scim/icons/scim-mozc-alpha_half.png |
---|
| 182 | %{__cp} -p data/images/unix/ui-alpha_full.png %{buildroot}%{_datadir}/scim/icons/scim-mozc-alpha_full.png |
---|
[1230] | 183 | |
---|
[1599] | 184 | |
---|
[1128] | 185 | # mozc-server |
---|
[1300] | 186 | %{__cp} -p %{output_dir}/mozc_server %{buildroot}%{_libexecdir} |
---|
[1128] | 187 | |
---|
| 188 | # mozc_tool |
---|
[1300] | 189 | %{__cp} -p %{output_dir}/mozc_tool %{buildroot}%{_libexecdir} |
---|
[1128] | 190 | |
---|
[2063] | 191 | # mozc-el |
---|
| 192 | %{__cp} -p %{output_dir}/mozc_emacs_helper %{buildroot}%{_libexecdir} |
---|
| 193 | mkdir -p %{buildroot}%{_datadir}/emacs/site-lisp/%{name}/packages |
---|
| 194 | mkdir -p %{buildroot}%{emacsen_pkgdir}/install |
---|
| 195 | mkdir -p %{buildroot}%{emacsen_pkgdir}/remove |
---|
| 196 | cp -p unix/emacs/mozc.el %{SOURCE4} %{SOURCE5} %{buildroot}%{_datadir}/emacs/site-lisp/%{name} |
---|
| 197 | # |
---|
| 198 | # install script (bytecompile el and install elc , remove) |
---|
| 199 | # |
---|
| 200 | %_installemacsenscript %{name} %{SOURCE2} |
---|
[1012] | 201 | |
---|
[2063] | 202 | %_removeemacsenscript %{name} %{SOURCE3} |
---|
| 203 | |
---|
[1012] | 204 | # install document |
---|
[1130] | 205 | %{__cp} %{SOURCE10} . |
---|
[1012] | 206 | |
---|
| 207 | %clean |
---|
| 208 | rm -rf $RPM_BUILD_ROOT |
---|
| 209 | |
---|
[2063] | 210 | |
---|
| 211 | %post -n %{mozc_el} |
---|
| 212 | # |
---|
| 213 | # bytecompile and install |
---|
| 214 | # |
---|
| 215 | if [ "$1" = 2 ]; then |
---|
| 216 | |
---|
| 217 | %_emacsenPackageRemove %{name} |
---|
| 218 | |
---|
| 219 | fi |
---|
| 220 | |
---|
| 221 | %_addemacsenlist %{name} |
---|
| 222 | |
---|
| 223 | %_emacsenPackageInstall %{name} |
---|
| 224 | |
---|
| 225 | |
---|
| 226 | %preun -n %{mozc_el} |
---|
| 227 | if [ "$1" = 0 ]; then |
---|
| 228 | |
---|
| 229 | %_emacsenPackageRemove %{name} |
---|
| 230 | |
---|
| 231 | %_removeemacsenlist %{name} |
---|
| 232 | |
---|
| 233 | fi |
---|
| 234 | |
---|
[1012] | 235 | %files |
---|
| 236 | %defattr(-,root,root) |
---|
[1300] | 237 | %doc COPYING README.vine |
---|
[1128] | 238 | |
---|
| 239 | %files server |
---|
| 240 | %defattr(-,root,root) |
---|
[1300] | 241 | %doc COPYING README.vine |
---|
[1177] | 242 | %{_libexecdir}/mozc_server |
---|
[1128] | 243 | |
---|
| 244 | %files utils-gui |
---|
| 245 | %defattr(-,root,root) |
---|
| 246 | %doc COPYING |
---|
[1177] | 247 | %{_libexecdir}/mozc_tool |
---|
[1128] | 248 | |
---|
| 249 | %files -n ibus-mozc |
---|
| 250 | %defattr(-,root,root) |
---|
| 251 | %doc COPYING |
---|
[1012] | 252 | %{_libdir}/ibus-engine-mozc |
---|
| 253 | %{_datadir}/ibus/component/mozc.xml |
---|
[1128] | 254 | %dir %{_datadir}/ibus-mozc |
---|
[1140] | 255 | %dir %{_datadir}/ibus-mozc/setup |
---|
[1599] | 256 | %{_datadir}/ibus-mozc/*.png |
---|
[1012] | 257 | |
---|
[1230] | 258 | %files -n scim-mozc |
---|
| 259 | %defattr(-,root,root) |
---|
| 260 | %doc COPYING |
---|
| 261 | %{scim_dir}/SetupUI/mozc-setup.so |
---|
| 262 | %{scim_dir}/IMEngine/mozc.so |
---|
[1599] | 263 | %{_datadir}/scim/icons/*.png |
---|
[1230] | 264 | |
---|
[2063] | 265 | %files -n %{mozc_el} |
---|
| 266 | %defattr(-,root,root) |
---|
| 267 | %doc COPYING |
---|
| 268 | %{_libexecdir}/mozc_emacs_helper |
---|
| 269 | %{_datadir}/emacs/site-lisp/%{name} |
---|
| 270 | %{emacsen_pkgdir}/install/%{name} |
---|
| 271 | %{emacsen_pkgdir}/remove/%{name} |
---|
| 272 | |
---|
| 273 | |
---|
[1012] | 274 | %changelog |
---|
[2190] | 275 | * Sat Nov 6 2010 IWAI, Masaharu <iwai@alib.jp> 0.13.523.102-1 |
---|
| 276 | - new upstream release |
---|
| 277 | - drop unnecessary fixed compile error for Vine5 patch (Patch1) |
---|
| 278 | |
---|
[2063] | 279 | * Mon Oct 11 2010 IWAI, Masaharu <iwai@alib.jp> 0.13.499.102-1 |
---|
| 280 | - new upstream release |
---|
| 281 | - new elisp sub-package: mozc-el: upstream released |
---|
| 282 | |
---|
[1796] | 283 | * Fri Sep 10 2010 IWAI, Masaharu <iwai@alib.jp> 0.13.464.102-1 |
---|
| 284 | - new upstream release |
---|
| 285 | |
---|
[1599] | 286 | * Sun Aug 15 2010 IWAI, Masaharu <iwai@alib.jp> 0.12.434.102-1 |
---|
| 287 | - new upstream release |
---|
| 288 | - replace icons: using official icons |
---|
| 289 | - drop AWASHIRO Ikuya's icons (Source3,4,5,6) |
---|
| 290 | |
---|
[1313] | 291 | * Mon Jul 12 2010 IWAI, Masaharu <iwai@alib.jp> 0.12.402.102-2 |
---|
| 292 | - drop obsolete x86_64 libdir patch (Patch2) |
---|
| 293 | - replace source tarball: using upstream tarball |
---|
| 294 | - add mozc-copyright (Source1) from SVN debian/copyright |
---|
| 295 | |
---|
[1300] | 296 | * Fri Jul 2 2010 IWAI, Masaharu <iwai@alib.jp> 0.12.402.102-1 |
---|
| 297 | - new upstream release |
---|
| 298 | - drop mozcdic-ut dictionary |
---|
| 299 | - update README.vine (Source10) |
---|
| 300 | - defined output_dir macro for %%install section |
---|
| 301 | |
---|
[1244] | 302 | * Thu Jun 24 2010 IWAI, Masaharu <iwai@alib.jp> 0.11.383.102-3 |
---|
| 303 | - add x86_64 libdir patch (Patch2): based openSUSE by kazukado |
---|
| 304 | |
---|
[1230] | 305 | * Mon Jun 21 2010 IWAI, Masaharu <iwai@alib.jp> 0.11.383.102-2 |
---|
| 306 | - create new package scim-mozc |
---|
| 307 | - add icons (Source5, Source6) |
---|
| 308 | - update icons (Source3, Source4) |
---|
| 309 | |
---|
[1217] | 310 | * Fri Jun 18 2010 IWAI, Masaharu <iwai@alib.jp> 0.11.383.102-1 |
---|
| 311 | - update to 0.11.383.102 (svn rev.30) |
---|
| 312 | |
---|
[1177] | 313 | * Wed Jun 9 2010 IWAI, Masaharu <iwai@alib.jp> 0.11.0-9.svn28 |
---|
| 314 | - update execute files path: <BTS:VineLinux:998> |
---|
| 315 | |
---|
[1140] | 316 | * Fri Jun 4 2010 IWAI, Masaharu <iwai@alib.jp> 0.11.0-8.svn28 |
---|
| 317 | - disable all mozcdic-ut dictionary (disable jinmei and zipcode) |
---|
| 318 | - update README.vine |
---|
| 319 | - add BuildRequires: gyp |
---|
| 320 | - drop BuildRequires: subversion |
---|
| 321 | |
---|
[1135] | 322 | * Wed Jun 2 2010 IWAI, Masaharu <iwai@alib.jp> 0.11.0-7.svn28 |
---|
| 323 | - add mozc_tool's icon (Source4) |
---|
| 324 | - rename Source0: fixed created directory name "src" |
---|
| 325 | |
---|
[1130] | 326 | * Tue Jun 1 2010 IWAI, Masaharu <iwai@alib.jp> 0.11.0-6.svn28 |
---|
| 327 | - update mozcdic-ut 20100601 (Source10) |
---|
| 328 | - include documents for all dictionaries |
---|
| 329 | - add BuildRequires: qt4-devel |
---|
| 330 | |
---|
[1128] | 331 | * Tue Jun 1 2010 IWAI, Masaharu <iwai@alib.jp> 0.11.0-5.svn28 |
---|
| 332 | - rename base name: mozc |
---|
| 333 | - add new sub packages: |
---|
| 334 | - mozc-server |
---|
| 335 | - mozc-utils-gui |
---|
| 336 | - update source to revision 28 |
---|
| 337 | - replace icon (Source3) |
---|
| 338 | - drop mozc-config: upstream implement same tool |
---|
| 339 | |
---|
[1074] | 340 | * Sun May 23 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 0.11.0-4 |
---|
| 341 | - update source to revision 23 |
---|
| 342 | - add BuildRequires protobuf-devel, gtest-devel |
---|
| 343 | - drop Patch0 (ibus-mozc-fix-for-x86_64.diff) |
---|
| 344 | - add mozc-config as Source10 and desktop entry as Source11 |
---|
| 345 | |
---|
[1055] | 346 | * Sat May 15 2010 IWAI, Masaharu <iwai@alib.jp> 0.11.0-3 |
---|
| 347 | - rebuild with ibus-1.3.3 |
---|
| 348 | |
---|
[1012] | 349 | * Fri May 14 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 0.11.0-2 |
---|
| 350 | - add Patch1 to fix compile error on i386 (workaround patch) |
---|
| 351 | |
---|
| 352 | * Thu May 13 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 0.11.0-1 |
---|
| 353 | - initial build for Vine Liux based on custom mandriva package made by UTUMI-san |
---|
| 354 | |
---|
| 355 | * Thu May 13 2010 UTUMI Hirosi <utuhiro78@yahoo.co.jp> 0.11.0-2.20110511.1mdv2010.1 |
---|
| 356 | - add some dictionaries |
---|
| 357 | |
---|
| 358 | * Wed May 12 2010 UTUMI Hirosi <utuhiro78@yahoo.co.jp> 0.11.0-1.20110511.1mdv2010.1 |
---|
| 359 | - first release |
---|
| 360 | |
---|