]>
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 | |
a27946f1 | 6 | Summary(pl.UTF-8): Silnik Anthy dla platformy wprowadzania znaków IBus |
48709482 | 7 | Name: ibus-anthy |
a27946f1 | 8 | Version: 1.2.7 |
39e4c4b1 | 9 | Release: 1 |
48709482 JR |
10 | License: GPL v2+ |
11 | Group: Libraries | |
a27946f1 | 12 | #Source0Download: http://code.google.com/p/ibus/downloads/list |
48709482 | 13 | Source0: http://ibus.googlecode.com/files/%{name}-%{version}.tar.gz |
a27946f1 | 14 | # Source0-md5: 091a13ff950171981768463993ffb683 |
48709482 JR |
15 | URL: http://code.google.com/p/ibus/ |
16 | BuildRequires: anthy-devel | |
a27946f1 JB |
17 | BuildRequires: autoconf >= 2.50 |
18 | BuildRequires: gettext-devel >= 0.16.1 | |
19 | BuildRequires: ibus-devel >= 1.4.0 | |
20 | BuildRequires: intltool >= 0.35.0 | |
21 | BuildRequires: libstdc++-devel | |
48709482 | 22 | BuildRequires: pkgconfig |
a27946f1 JB |
23 | BuildRequires: python-devel >= 1:2.5 |
24 | BuildRequires: rpmbuild(macros) >= 1.219 | |
25 | BuildRequires: sed >= 4.0 | |
48709482 JR |
26 | BuildRequires: swig-python |
27 | Requires: anthy | |
a27946f1 | 28 | Requires: ibus >= 1.4.0 |
48709482 | 29 | Requires: kasumi |
a27946f1 | 30 | Requires: python-ibus >= 1.4.0 |
01fc7768 | 31 | Requires: python-pygtk-gtk >= 2:2.15.2 |
48709482 JR |
32 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
33 | ||
bda702e9 JR |
34 | %define _libexecdir %{_libdir}/ibus |
35 | ||
48709482 JR |
36 | %description |
37 | The Anthy engine for IBus platform. It provides Japanese input method | |
38 | from libanthy. | |
39 | ||
a27946f1 JB |
40 | %description -l pl.UTF-8 |
41 | Silnik Anthy dla platformy IBus. Udostępnia metodę wprowadzania znaków | |
42 | japońskich poprzez libanthy. | |
43 | ||
48709482 JR |
44 | %prep |
45 | %setup -q | |
a27946f1 JB |
46 | |
47 | # ibus 1.4.x has symbol attr in EngineDesc; hardcode it so python-ibus | |
48 | # is not BRed here | |
49 | %{__sed} -i -e 's,\$SYMBOL_TEST,exit(0),' configure.ac | |
48709482 JR |
50 | |
51 | %build | |
48709482 JR |
52 | %{__autoconf} |
53 | %configure \ | |
2bd6712e | 54 | %{?with_bridge_hotkey:--with-hotkeys} |
48709482 JR |
55 | |
56 | %{__make} | |
57 | ||
58 | %install | |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | %{__make} install \ | |
61 | DESTDIR=$RPM_BUILD_ROOT | |
62 | ||
63 | %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/*.la | |
64 | ||
a27946f1 JB |
65 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} |
66 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} | |
67 | %py_postclean | |
68 | ||
48709482 JR |
69 | %find_lang %{name} |
70 | ||
71 | %clean | |
72 | rm -rf $RPM_BUILD_ROOT | |
73 | ||
74 | %files -f %{name}.lang | |
75 | %defattr(644,root,root,755) | |
a27946f1 JB |
76 | %doc AUTHORS ChangeLog README |
77 | %{py_sitedir}/anthy.py[co] | |
48709482 | 78 | %attr(755,root,root) %{py_sitedir}/_anthy.so |
a27946f1 JB |
79 | %attr(755,root,root) %{_libexecdir}/ibus-engine-anthy |
80 | %attr(755,root,root) %{_libexecdir}/ibus-setup-anthy | |
48709482 | 81 | %{_datadir}/ibus-anthy |
a27946f1 | 82 | %{_datadir}/ibus/component/anthy.xml |