]>
Commit | Line | Data |
---|---|---|
48709482 JR |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without bridge_hotkey # disable the engine symbol & hotkeys | |
4 | # | |
5 | Summary: The Anthy engine for IBus input platform | |
6 | Name: ibus-anthy | |
7 | Version: 1.2.6 | |
bda702e9 | 8 | Release: 0.2 |
48709482 JR |
9 | License: GPL v2+ |
10 | Group: Libraries | |
11 | Source0: http://ibus.googlecode.com/files/%{name}-%{version}.tar.gz | |
12 | # Source0-md5: 894c7311f4d5c96b1fdb8b3795446ead | |
13 | Patch1: %{name}-xx-icon-symbol.patch | |
14 | URL: http://code.google.com/p/ibus/ | |
15 | BuildRequires: anthy-devel | |
16 | BuildRequires: gettext-devel | |
17 | %{?with_bridge_hotkey:BuildRequires: ibus} | |
18 | BuildRequires: intltool | |
19 | BuildRequires: libtool | |
20 | BuildRequires: pkgconfig | |
21 | BuildRequires: python-devel | |
22 | BuildRequires: swig-python | |
23 | Requires: anthy | |
24 | Requires: ibus >= 1.3.0 | |
25 | Requires: kasumi | |
26 | Requires: python-pygtk-gtk >= 2.15.2 | |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
28 | ||
bda702e9 JR |
29 | %define _libexecdir %{_libdir}/ibus |
30 | ||
48709482 JR |
31 | %description |
32 | The Anthy engine for IBus platform. It provides Japanese input method | |
33 | from libanthy. | |
34 | ||
35 | %prep | |
36 | %setup -q | |
20ea8d2d | 37 | %{?with_bridge_hotkey:%patch1 -p1} |
48709482 JR |
38 | |
39 | %build | |
40 | %if %{with bridge_hotkey} | |
41 | %{__autoconf} | |
42 | %configure \ | |
43 | --with-hotkeys | |
44 | %else | |
45 | %configure | |
46 | %endif | |
47 | ||
48 | %{__make} | |
49 | ||
50 | %install | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | %{__make} install \ | |
53 | DESTDIR=$RPM_BUILD_ROOT | |
54 | ||
55 | %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/*.la | |
56 | ||
57 | %find_lang %{name} | |
58 | ||
59 | %clean | |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | ||
62 | %files -f %{name}.lang | |
63 | %defattr(644,root,root,755) | |
64 | %doc AUTHORS README | |
65 | %{py_sitedir}/anthy.py* | |
66 | %attr(755,root,root) %{py_sitedir}/_anthy.so | |
bda702e9 | 67 | %{_libexecdir}/ibus-*-anthy |
48709482 JR |
68 | %{_datadir}/ibus-anthy |
69 | %{_datadir}/ibus/component/* |