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 | |
---|
10 | # Source tar ball is not released yet. |
---|
11 | # See http://code.google.com/p/mozc/wiki/LinuxBuildInstructions |
---|
12 | Source0: %{name}-%{version}.tar.bz2 |
---|
13 | |
---|
14 | # Additional dictionaries by UTUMI Hirosi |
---|
15 | Source1: mozc-jinmei-20100513.7z |
---|
16 | Source2: mozc-zipcode-20100513.7z |
---|
17 | Source3: ibus-mozc.png |
---|
18 | Patch0: ibus-mozc-fix-for-x86_64.diff |
---|
19 | Patch1: ibus-mozc-0.11.0-fix-compile-w-i386.patch |
---|
20 | |
---|
21 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
22 | BuildRequires: python |
---|
23 | BuildRequires: ibus-devel |
---|
24 | BuildRequires: dbus-devel |
---|
25 | BuildRequires: openssl-devel |
---|
26 | BuildRequires: zlib-devel |
---|
27 | BuildRequires: subversion |
---|
28 | BuildRequires: curl-devel |
---|
29 | BuildRequires: p7zip |
---|
30 | |
---|
31 | Packager: kazutaka |
---|
32 | |
---|
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 | |
---|
38 | %description -l ja |
---|
39 | Mozc は日本語入力用の IME (Imput Method Editor)です。 |
---|
40 | Chromium OS や Windows、Mac、Linux といったマルチプラット |
---|
41 | フォームで利用できるようにデザインされており、「Google日本語 |
---|
42 | 入力」のオープンソース版です。 |
---|
43 | |
---|
44 | このパッケージには Mozc の IBus 用エンジンが含まれています。 |
---|
45 | |
---|
46 | |
---|
47 | %prep |
---|
48 | %setup -q -n src |
---|
49 | %patch0 -p0 -b .fix-x86_64 |
---|
50 | %patch1 -p1 -b .fix-i386 |
---|
51 | |
---|
52 | # Add some dictionaries |
---|
53 | cp %SOURCE1 data/dictionary/ |
---|
54 | cp %SOURCE2 data/dictionary/ |
---|
55 | cd data/dictionary/ |
---|
56 | 7za x mozc-jinmei-*.7z |
---|
57 | 7za x mozc-zipcode-*.7z |
---|
58 | cat dictionary1.txt mozc-jinmei-*.txt mozc-zipcode-*.txt > dictionary1.txt.new |
---|
59 | mv dictionary1.txt.new dictionary1.txt |
---|
60 | cd - |
---|
61 | |
---|
62 | %build |
---|
63 | %__python build_mozc.py gyp |
---|
64 | %__python build_mozc.py build_tools -c Release |
---|
65 | %__python build_mozc.py build -c Release unix/unix.gyp:ibus_mozc |
---|
66 | |
---|
67 | %install |
---|
68 | rm -rf %buildroot |
---|
69 | mkdir -p %buildroot/%_libdir |
---|
70 | cp -p out/Release/ibus_mozc %buildroot/%_libdir/ibus-engine-mozc |
---|
71 | mkdir -p %buildroot/%_datadir/ibus/component/ |
---|
72 | sed 's|/usr/libexec|%_libdir|' < unix/ibus/mozc.xml > %buildroot/%_datadir/ibus/component/mozc.xml |
---|
73 | |
---|
74 | # install icon (temporary) |
---|
75 | mkdir -p %buildroot/%{_datadir}/%{name} |
---|
76 | cp -p %{SOURCE3} %buildroot/%{_datadir}/%{name}/product_icon.png |
---|
77 | |
---|
78 | # install document |
---|
79 | chmod 644 debian/* |
---|
80 | cp debian/copyright COPYING |
---|
81 | |
---|
82 | %clean |
---|
83 | rm -rf $RPM_BUILD_ROOT |
---|
84 | |
---|
85 | %files |
---|
86 | %defattr(-,root,root) |
---|
87 | %doc COPYING |
---|
88 | %{_libdir}/ibus-engine-mozc |
---|
89 | %{_datadir}/ibus/component/mozc.xml |
---|
90 | %{_datadir}/%{name}/product_icon.png |
---|
91 | |
---|
92 | %changelog |
---|
93 | * Fri May 14 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 0.11.0-2 |
---|
94 | - add Patch1 to fix compile error on i386 (workaround patch) |
---|
95 | |
---|
96 | * Thu May 13 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 0.11.0-1 |
---|
97 | - initial build for Vine Liux based on custom mandriva package made by UTUMI-san |
---|
98 | |
---|
99 | * Thu May 13 2010 UTUMI Hirosi <utuhiro78@yahoo.co.jp> 0.11.0-2.20110511.1mdv2010.1 |
---|
100 | - add some dictionaries |
---|
101 | |
---|
102 | * Wed May 12 2010 UTUMI Hirosi <utuhiro78@yahoo.co.jp> 0.11.0-1.20110511.1mdv2010.1 |
---|
103 | - first release |
---|
104 | |
---|