mozc-vl.spec 10.0 KB

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