mozc-vl.spec 8.7 KB

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