]>
Commit | Line | Data |
---|---|---|
48709482 JR |
1 | # |
2 | # Conditional build: | |
1fc23000 | 3 | %bcond_without bridge_hotkey # disable 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 |
0355600f | 8 | Version: 1.4.99.20121006 |
315358f9 | 9 | Release: 4 |
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 |
0355600f | 14 | # Source0-md5: 518aa503ce40054e0027f2a79c9df640 |
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 | |
0355600f | 19 | BuildRequires: ibus-devel >= 1.4.99 |
a27946f1 JB |
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 | 26 | BuildRequires: swig-python |
3b43c264 | 27 | Requires(post,postun): /sbin/ldconfig |
315358f9 | 28 | Requires(post,postun): GConf2 |
48709482 | 29 | Requires: anthy |
0355600f | 30 | Requires: ibus >= 1.4.99 |
48709482 | 31 | Requires: kasumi |
0355600f | 32 | Requires: python-ibus >= 1.4.99 |
01fc7768 | 33 | Requires: python-pygtk-gtk >= 2:2.15.2 |
48709482 JR |
34 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
35 | ||
bda702e9 JR |
36 | %define _libexecdir %{_libdir}/ibus |
37 | ||
48709482 JR |
38 | %description |
39 | The Anthy engine for IBus platform. It provides Japanese input method | |
40 | from libanthy. | |
41 | ||
a27946f1 JB |
42 | %description -l pl.UTF-8 |
43 | Silnik Anthy dla platformy IBus. Udostępnia metodę wprowadzania znaków | |
44 | japońskich poprzez libanthy. | |
45 | ||
0355600f JR |
46 | %package devel |
47 | Summary: Development tools for ibus | |
48 | Group: Development/Libraries | |
49 | Requires: %{name} = %{version}-%{release} | |
50 | Requires: anthy-devel | |
51 | Requires: glib2-devel | |
52 | ||
53 | %description devel | |
54 | The ibus-anthy-devel package contains .so file and .gir files for | |
55 | developers. | |
56 | ||
48709482 JR |
57 | %prep |
58 | %setup -q | |
a27946f1 | 59 | |
0355600f JR |
60 | # ibus 1.4.x has symbol attr in EngineDesc; |
61 | # ibus 1.4.99 (1.5) has symbol attr in IBus.Property | |
62 | # hardcode it so python-ibus is not BRed here | |
a27946f1 | 63 | %{__sed} -i -e 's,\$SYMBOL_TEST,exit(0),' configure.ac |
48709482 JR |
64 | |
65 | %build | |
48709482 JR |
66 | %{__autoconf} |
67 | %configure \ | |
0355600f | 68 | --with-layout='default' \ |
2bd6712e | 69 | %{?with_bridge_hotkey:--with-hotkeys} |
48709482 JR |
70 | |
71 | %{__make} | |
72 | ||
73 | %install | |
74 | rm -rf $RPM_BUILD_ROOT | |
75 | %{__make} install \ | |
76 | DESTDIR=$RPM_BUILD_ROOT | |
77 | ||
0355600f | 78 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la |
a27946f1 | 79 | |
48709482 JR |
80 | %find_lang %{name} |
81 | ||
82 | %clean | |
83 | rm -rf $RPM_BUILD_ROOT | |
84 | ||
0355600f JR |
85 | %post |
86 | /sbin/ldconfig | |
87 | %update_icon_cache hicolor | |
88 | ||
89 | %postun | |
90 | /sbin/ldconfig | |
91 | %update_icon_cache hicolor | |
92 | ||
48709482 JR |
93 | %files -f %{name}.lang |
94 | %defattr(644,root,root,755) | |
a27946f1 | 95 | %doc AUTHORS ChangeLog README |
a27946f1 JB |
96 | %attr(755,root,root) %{_libexecdir}/ibus-engine-anthy |
97 | %attr(755,root,root) %{_libexecdir}/ibus-setup-anthy | |
48709482 | 98 | %{_datadir}/ibus-anthy |
a27946f1 | 99 | %{_datadir}/ibus/component/anthy.xml |
0355600f JR |
100 | %{_libdir}/girepository-1.0/Anthy-9000.typelib |
101 | %attr(755,root,root) %{_libdir}/libanthygobject-1.0.so.*.* | |
102 | %attr(755,root,root) %ghost %{_libdir}/libanthygobject-1.0.so.5 | |
103 | %{_desktopdir}/ibus-setup-anthy.desktop | |
104 | %{_iconsdir}/hicolor/scalable/apps/ibus-anthy.svg | |
105 | ||
106 | %files devel | |
107 | %defattr(644,root,root,755) | |
108 | %{_datadir}/gir-1.0/Anthy*.gir | |
109 | %{_includedir}/ibus-anthy-1.0 | |
110 | %attr(755,root,root) %{_libdir}/libanthygobject-1.0.so |