ibus-mozc-vl.spec 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. Name: ibus-mozc
  2. Summary: IBus engine for Mozc(GoogleIME)
  3. Summary(ja): IBus 用 Mozc(Google日本語入力) エンジン
  4. Version: 0.11.0
  5. Release: 4%{?_dist_release}
  6. Group: System Environment/Libraries
  7. License: BSD-like
  8. URL: http://code.google.com/p/mozc/
  9. # Source tar ball is not released yet.
  10. # See http://code.google.com/p/mozc/wiki/LinuxBuildInstructions
  11. Source0: %{name}-%{version}.tar.bz2
  12. # Additional dictionaries by UTUMI Hirosi
  13. Source1: mozc-jinmei-20100513.7z
  14. Source2: mozc-zipcode-20100513.7z
  15. Source3: ibus-mozc.png
  16. # Setting tool for mozc
  17. # See http://github.com/hidegit/mozc-config
  18. Source10: mozc-config.tar.bz2
  19. Source11: ibus-setup-mozc.desktop
  20. #Patch0: ibus-mozc-fix-for-x86_64.diff
  21. Patch1: ibus-mozc-0.11.0-fix-compile-w-i386.patch
  22. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  23. BuildRequires: python, ibus-devel, dbus-devel
  24. BuildRequires: openssl-devel, zlib-devel, subversion
  25. BuildRequires: curl-devel, p7zip
  26. BuildRequires: protobuf-devel, gtest-devel
  27. Packager: kazutaka
  28. %description
  29. Mozc is a Japanese Input Method Editor (IME) designed for
  30. multi-platform such as Chromium OS, Windows, Mac and Linux.
  31. This open-source project originates from Google Japanese Input.
  32. %description -l ja
  33. Mozc は日本語入力用の IME (Imput Method Editor)です。
  34. Chromium OS や Windows、Mac、Linux といったマルチプラット
  35. フォームで利用できるようにデザインされており、「Google日本語
  36. 入力」のオープンソース版です。
  37. このパッケージには Mozc の IBus 用エンジンが含まれています。
  38. %prep
  39. %setup -q -n src -a 10
  40. #%patch0 -p0 -b .fix-x86_64
  41. %patch1 -p1 -b .fix-i386
  42. # Add some dictionaries
  43. %{__cp} %SOURCE1 data/dictionary/
  44. %{__cp} %SOURCE2 data/dictionary/
  45. pushd data/dictionary/
  46. 7za x mozc-jinmei-*.7z
  47. 7za x mozc-zipcode-*.7z
  48. %{__cat} dictionary1.txt mozc-jinmei-*.txt mozc-zipcode-*.txt > dictionary1.txt.new
  49. %{__mv} dictionary1.txt.new dictionary1.txt
  50. popd
  51. %build
  52. %{__python} build_mozc.py gyp
  53. %{__python} build_mozc.py build_tools -c Release
  54. %{__python} build_mozc.py build -c Release unix/unix.gyp:ibus_mozc
  55. # make mozc-config
  56. pushd mozc-config
  57. %{__make}
  58. popd
  59. %install
  60. %{__rm} -rf %buildroot
  61. %{__mkdir_p} %buildroot/%{_libdir}
  62. %{__cp} -p out/Release/ibus_mozc %buildroot/%{_libdir}/ibus-engine-mozc
  63. %{__mkdir_p} %buildroot/%{_datadir}/ibus/component/
  64. %{__sed} 's|/usr/libexec|%{_libdir}|' < unix/ibus/mozc.xml > %buildroot/%{_datadir}/ibus/component/mozc.xml
  65. # install icon (temporary)
  66. %{__mkdir_p} %buildroot/%{_datadir}/%{name}
  67. %{__cp} -p %{SOURCE3} %buildroot/%{_datadir}/%{name}/product_icon.png
  68. # install document
  69. %{__chmod} 644 debian/*
  70. %{__cp} debian/copyright COPYING
  71. # install mozc-config
  72. pushd mozc-config
  73. %{__make} install prefix=%buildroot/%{_prefix}
  74. popd
  75. # install desktop entry for ibus-setup-mozc
  76. %{__mkdir_p} %buildroot/%{_datadir}/applications
  77. %{__cp} %{SOURCE11} %buildroot/%{_datadir}/applications
  78. # install document for mozc-config
  79. %{__cp} mozc-config/README README.mozc-config
  80. %clean
  81. rm -rf $RPM_BUILD_ROOT
  82. %files
  83. %defattr(-,root,root)
  84. %doc COPYING README.mozc-config
  85. %{_libdir}/ibus-engine-mozc
  86. %{_datadir}/ibus/component/mozc.xml
  87. %{_datadir}/%{name}/product_icon.png
  88. # for mozc-config
  89. %{_bindir}/mozc-config
  90. %{_bindir}/mozc-dict
  91. %{_datadir}/applications/ibus-setup-mozc.desktop
  92. %{_datadir}/ibus-mozc/setup/setup.glade
  93. %{_libexecdir}/ibus-setup-mozc
  94. %{_localedir}/ja/LC_MESSAGES/ibus-mozc.mo
  95. %changelog
  96. * Sun May 23 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 0.11.0-4
  97. - update source to revision 23
  98. - add BuildRequires protobuf-devel, gtest-devel
  99. - drop Patch0 (ibus-mozc-fix-for-x86_64.diff)
  100. - add mozc-config as Source10 and desktop entry as Source11
  101. * Sat May 15 2010 IWAI, Masaharu <iwai@alib.jp> 0.11.0-3
  102. - rebuild with ibus-1.3.3
  103. * Fri May 14 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 0.11.0-2
  104. - add Patch1 to fix compile error on i386 (workaround patch)
  105. * Thu May 13 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 0.11.0-1
  106. - initial build for Vine Liux based on custom mandriva package made by UTUMI-san
  107. * Thu May 13 2010 UTUMI Hirosi <utuhiro78@yahoo.co.jp> 0.11.0-2.20110511.1mdv2010.1
  108. - add some dictionaries
  109. * Wed May 12 2010 UTUMI Hirosi <utuhiro78@yahoo.co.jp> 0.11.0-1.20110511.1mdv2010.1
  110. - first release