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