mozc-vl.spec 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  1. %define ver 0.11.0
  2. %define rel 8
  3. %define svnrev 28
  4. %define utdic 20100601
  5. %define enable_utdic_jinmei 0
  6. %define enable_utdic_zipcode 0
  7. %define enable_utdic_meisi 0
  8. %define enable_utdic_jigyosyo 0
  9. %define enable_edict_katakanago 0
  10. Name: mozc
  11. Summary: Japanese Input Method Editor designed for multi-platform
  12. Summary(ja): マルチプラットホームで動くように設計された日本語インプットメソッドエディタ
  13. Version: 0.11.0
  14. Release: %{rel}.svn%{svnrev}%{?_dist_release}
  15. Group: System Environment/Libraries
  16. License: BSD-like (and EDICT is CC-by-sa 3.0 Unported)
  17. URL: http://code.google.com/p/mozc/
  18. # Source tar ball is not released yet.
  19. # See http://code.google.com/p/mozc/wiki/LinuxBuildInstructions
  20. Source0: %{name}-%{version}-r%{svnrev}.tar.bz2
  21. # Additional dictionaries by UTUMI Hirosi
  22. Source1: mozcdic-ut-%{utdic}.tar.bz2
  23. # http://twitpic.com/1ouyrr by AWASHIRO Ikuya
  24. Source3: ibus-mozc.png
  25. # http://twitpic.com/1t0zkb by AWASHIRO Ikuya
  26. Source4: ibus-mozc-unknown.png
  27. # Vine Lunux
  28. Source10: README.vine
  29. #Patch0: ibus-mozc-fix-for-x86_64.diff
  30. Patch1: ibus-mozc-0.11.0-fix-compile-w-i386.patch
  31. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  32. BuildRequires: python, ibus-devel, dbus-devel
  33. BuildRequires: openssl-devel, zlib-devel
  34. BuildRequires: curl-devel
  35. BuildRequires: protobuf-devel, gtest-devel
  36. BuildRequires: qt4-devel
  37. BuildRequires: gyp
  38. Requires: mozc-server = %{version}-%{release}
  39. Requires: mozc-utils-gui = %{version}-%{release}
  40. Requires: ibus-mozc = %{version}-%{release}
  41. Packager: kazutaka
  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. %description -l ja
  47. Mozc は日本語入力用の IME (Imput Method Editor)です。
  48. Chromium OS や Windows、Mac、Linux といったマルチプラット
  49. フォームで利用できるようにデザインされており、「Google日本語
  50. 入力」のオープンソース版です。
  51. %package server
  52. Summary: Server part of the Mozc input method
  53. Summary(ja): Mozc インプットメソッドのサーバ部分
  54. Group: Applications/System
  55. %description server
  56. Server part of the Mozc input method, used by Mozc clients such as
  57. ibus-mozc.
  58. %description server -l ja
  59. Mozc インプットメソッドのサーバ部分。ibus-mozcなどのMozcクライアントから
  60. 使うことができます。
  61. %package -n ibus-mozc
  62. Summary: iBus engine module for Mozc
  63. Summary(ja): Mozc 用 iBus エンジンモジュール
  64. Group: System Environment/Libraries
  65. Requires: mozc-server = %{version}-%{release}
  66. %description -n ibus-mozc
  67. iBus engine module for Mozc.
  68. %description -n ibus-mozc -l ja
  69. Mozc 用 iBus エンジンモジュール。
  70. %package utils-gui
  71. Summary: Mozc GUI utilities
  72. Summary(ja): Mozc GUI ユーティリティー
  73. Group: Applications/System
  74. Requires: qt4
  75. Requires: mozc-server = %{version}-%{release}
  76. %description utils-gui
  77. Mozc GUI uitilities, such as the configuration dialog, user dictionary
  78. tool and about dialog.
  79. %description utils-gui -l ja
  80. Mozc GUI ユーティリティー。設定ツールやユーザ辞書ツールなどが含まれます。
  81. %prep
  82. %setup -q -n %{name}-%{version}-r%{svnrev} -a 1
  83. #%patch0 -p0 -b .fix-x86_64
  84. %patch1 -p1 -b .fix-i386
  85. # Add some dictionaries
  86. pushd mozcdic-ut-%{utdic}
  87. %{__cp} mozcdic-ut-jinmei-*.txt ../data/dictionary/
  88. %{__cp} mozcdic-ut-zipcode-*.txt ../data/dictionary/
  89. %{__cp} mozcdic-ut-meisi-*.txt ../data/dictionary/
  90. %{__cp} mozcdic-ut-jigyosyo-*.txt ../data/dictionary/
  91. %{__cp} edict-katakanago/mozcdic-ut-edict-katakanago-*.txt ../data/dictionary/
  92. popd
  93. pushd data/dictionary/
  94. %{__cp} dictionary1.txt dictionary1.txt.new
  95. %if %{enable_utdic_jinmei}
  96. %{__cat} mozcdic-ut-jinmei-*.txt >> dictionary1.txt.new
  97. %endif
  98. %if %{enable_utdic_zipcode}
  99. %{__cat} mozcdic-ut-zipcode-*.txt >> dictionary1.txt.new
  100. %endif
  101. %if %{enable_utdic_meisi}
  102. %{__cat} mozcdic-ut-meisi-*.txt >> dictionary1.txt.new
  103. %endif
  104. %if %{enable_utdic_jigyosyo}
  105. %{__cat} mozcdic-ut-jigyosyo-*.txt >> dictionary1.txt.new
  106. %endif
  107. %if %{enable_edict_katakanago}
  108. %{__cat} mozcdic-ut-edict-katakanago-*.txt >> dictionary1.txt.new
  109. %endif
  110. %{__mv} dictionary1.txt.new dictionary1.txt
  111. popd
  112. %build
  113. %{__python} build_mozc.py gyp --gypdir=%{_bindir}
  114. %{__python} build_mozc.py build_tools -c Release
  115. %{__python} build_mozc.py build -c Release unix/ibus/ibus.gyp:ibus_mozc server/server.gyp:mozc_server gui/gui.gyp:mozc_tool
  116. %install
  117. %{__rm} -rf %{buildroot}
  118. %{__mkdir_p} %{buildroot}%{_libdir}/mozc
  119. # ibus-mozc
  120. %{__cp} -p out/Release/ibus_mozc %{buildroot}%{_libdir}/ibus-engine-mozc
  121. %{__mkdir_p} %{buildroot}%{_datadir}/ibus/component/
  122. %{__sed} 's|/usr/libexec|%{_libdir}|' < unix/ibus/mozc.xml > %{buildroot}%{_datadir}/ibus/component/mozc.xml
  123. # mozc-server
  124. %{__cp} -p out/Release/mozc_server %{buildroot}%{_libdir}/mozc
  125. # mozc_tool
  126. %{__cp} -p out/Release/mozc_tool %{buildroot}%{_libdir}/mozc
  127. # install icon (temporary)
  128. %{__mkdir_p} %{buildroot}%{_datadir}/ibus-mozc/setup
  129. %{__cp} -p %{SOURCE3} %{buildroot}%{_datadir}/ibus-mozc/product_icon.png
  130. %{__cp} -p %{SOURCE4} %{buildroot}%{_datadir}/ibus-mozc/unknown.ico
  131. # install document
  132. %{__chmod} 644 debian/*
  133. %{__cp} debian/copyright COPYING
  134. %{__cp} %{SOURCE10} .
  135. %{__mkdir} utdic
  136. %{__cp} mozcdic-ut-%{utdic}/{AUTHORS,COPYING,ChangeLog,README} utdic
  137. %{__mkdir} edict
  138. %{__cp} mozcdic-ut-%{utdic}/edict-katakanago/README.edict edict
  139. %clean
  140. rm -rf $RPM_BUILD_ROOT
  141. %files
  142. %defattr(-,root,root)
  143. %doc COPYING README.vine utdic edict
  144. %files server
  145. %defattr(-,root,root)
  146. %doc COPYING README.vine utdic edict
  147. %dir %{_libdir}/mozc
  148. %{_libdir}/mozc/mozc_server
  149. %files utils-gui
  150. %defattr(-,root,root)
  151. %doc COPYING
  152. %dir %{_libdir}/mozc
  153. %{_libdir}/mozc/mozc_tool
  154. %files -n ibus-mozc
  155. %defattr(-,root,root)
  156. %doc COPYING
  157. %{_libdir}/ibus-engine-mozc
  158. %{_datadir}/ibus/component/mozc.xml
  159. %dir %{_datadir}/ibus-mozc
  160. %dir %{_datadir}/ibus-mozc/setup
  161. %{_datadir}/ibus-mozc/product_icon.png
  162. %{_datadir}/ibus-mozc/unknown.ico
  163. %changelog
  164. * Fri Jun 4 2010 IWAI, Masaharu <iwai@alib.jp> 0.11.0-8.svn28
  165. - disable all mozcdic-ut dictionary (disable jinmei and zipcode)
  166. - update README.vine
  167. - add BuildRequires: gyp
  168. - drop BuildRequires: subversion
  169. * Wed Jun 2 2010 IWAI, Masaharu <iwai@alib.jp> 0.11.0-7.svn28
  170. - add mozc_tool's icon (Source4)
  171. - rename Source0: fixed created directory name "src"
  172. * Tue Jun 1 2010 IWAI, Masaharu <iwai@alib.jp> 0.11.0-6.svn28
  173. - update mozcdic-ut 20100601 (Source10)
  174. - include documents for all dictionaries
  175. - add BuildRequires: qt4-devel
  176. * Tue Jun 1 2010 IWAI, Masaharu <iwai@alib.jp> 0.11.0-5.svn28
  177. - rename base name: mozc
  178. - add new sub packages:
  179. - mozc-server
  180. - mozc-utils-gui
  181. - update source to revision 28
  182. - replace icon (Source3)
  183. - drop mozc-config: upstream implement same tool
  184. * Sun May 23 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 0.11.0-4
  185. - update source to revision 23
  186. - add BuildRequires protobuf-devel, gtest-devel
  187. - drop Patch0 (ibus-mozc-fix-for-x86_64.diff)
  188. - add mozc-config as Source10 and desktop entry as Source11
  189. * Sat May 15 2010 IWAI, Masaharu <iwai@alib.jp> 0.11.0-3
  190. - rebuild with ibus-1.3.3
  191. * Fri May 14 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 0.11.0-2
  192. - add Patch1 to fix compile error on i386 (workaround patch)
  193. * Thu May 13 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 0.11.0-1
  194. - initial build for Vine Liux based on custom mandriva package made by UTUMI-san
  195. * Thu May 13 2010 UTUMI Hirosi <utuhiro78@yahoo.co.jp> 0.11.0-2.20110511.1mdv2010.1
  196. - add some dictionaries
  197. * Wed May 12 2010 UTUMI Hirosi <utuhiro78@yahoo.co.jp> 0.11.0-1.20110511.1mdv2010.1
  198. - first release