ibus-mozc-vl.spec 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. Name: ibus-mozc
  2. Summary: IBus engine for Mozc(GoogleIME)
  3. Summary(ja): IBus 用 Mozc(Google日本語入力) エンジン
  4. Version: 0.11.0
  5. Release: 2%{?_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. Patch0: ibus-mozc-fix-for-x86_64.diff
  17. Patch1: ibus-mozc-0.11.0-fix-compile-w-i386.patch
  18. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  19. BuildRequires: python
  20. BuildRequires: ibus-devel
  21. BuildRequires: dbus-devel
  22. BuildRequires: openssl-devel
  23. BuildRequires: zlib-devel
  24. BuildRequires: subversion
  25. BuildRequires: curl-devel
  26. BuildRequires: p7zip
  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
  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. cd 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. cd -
  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. %install
  56. rm -rf %buildroot
  57. mkdir -p %buildroot/%_libdir
  58. cp -p out/Release/ibus_mozc %buildroot/%_libdir/ibus-engine-mozc
  59. mkdir -p %buildroot/%_datadir/ibus/component/
  60. sed 's|/usr/libexec|%_libdir|' < unix/ibus/mozc.xml > %buildroot/%_datadir/ibus/component/mozc.xml
  61. # install icon (temporary)
  62. mkdir -p %buildroot/%{_datadir}/%{name}
  63. cp -p %{SOURCE3} %buildroot/%{_datadir}/%{name}/product_icon.png
  64. # install document
  65. chmod 644 debian/*
  66. cp debian/copyright COPYING
  67. %clean
  68. rm -rf $RPM_BUILD_ROOT
  69. %files
  70. %defattr(-,root,root)
  71. %doc COPYING
  72. %{_libdir}/ibus-engine-mozc
  73. %{_datadir}/ibus/component/mozc.xml
  74. %{_datadir}/%{name}/product_icon.png
  75. %changelog
  76. * Fri May 14 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 0.11.0-2
  77. - add Patch1 to fix compile error on i386 (workaround patch)
  78. * Thu May 13 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 0.11.0-1
  79. - initial build for Vine Liux based on custom mandriva package made by UTUMI-san
  80. * Thu May 13 2010 UTUMI Hirosi <utuhiro78@yahoo.co.jp> 0.11.0-2.20110511.1mdv2010.1
  81. - add some dictionaries
  82. * Wed May 12 2010 UTUMI Hirosi <utuhiro78@yahoo.co.jp> 0.11.0-1.20110511.1mdv2010.1
  83. - first release