]>
Commit | Line | Data |
---|---|---|
48709482 JR |
1 | # |
2 | # Conditional build: | |
2bd6712e | 3 | %bcond_with bridge_hotkey # enable the engine hotkeys |
48709482 JR |
4 | # |
5 | Summary: The Anthy engine for IBus input platform | |
6 | Name: ibus-anthy | |
7 | Version: 1.2.6 | |
39e4c4b1 | 8 | Release: 1 |
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 | |
2bd6712e | 17 | BuildRequires: ibus |
48709482 JR |
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 | |
2bd6712e | 37 | %patch1 -p1 |
48709482 JR |
38 | |
39 | %build | |
48709482 JR |
40 | %{__autoconf} |
41 | %configure \ | |
2bd6712e | 42 | %{?with_bridge_hotkey:--with-hotkeys} |
48709482 JR |
43 | |
44 | %{__make} | |
45 | ||
46 | %install | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | %{__make} install \ | |
49 | DESTDIR=$RPM_BUILD_ROOT | |
50 | ||
51 | %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/*.la | |
52 | ||
53 | %find_lang %{name} | |
54 | ||
55 | %clean | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
58 | %files -f %{name}.lang | |
59 | %defattr(644,root,root,755) | |
60 | %doc AUTHORS README | |
61 | %{py_sitedir}/anthy.py* | |
62 | %attr(755,root,root) %{py_sitedir}/_anthy.so | |
6533c828 | 63 | %attr(755,root,root) %{_libexecdir}/ibus-*-anthy |
48709482 JR |
64 | %{_datadir}/ibus-anthy |
65 | %{_datadir}/ibus/component/* |