]>
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 |
358e5204 | 8 | Version: 1.5.3 |
44358d4a | 9 | Release: 2 |
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 |
358e5204 | 14 | # Source0-md5: ec8e7c499c80c0270be69d613dec4b87 |
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 | |
1b0108ab JB |
19 | BuildRequires: glib2-devel >= 1:2.26.0 |
20 | BuildRequires: gobject-introspection-devel >= 0.6.8 | |
0355600f | 21 | BuildRequires: ibus-devel >= 1.4.99 |
358e5204 | 22 | BuildRequires: intltool >= 0.41.1 |
a27946f1 | 23 | BuildRequires: libstdc++-devel |
48709482 | 24 | BuildRequires: pkgconfig |
a27946f1 JB |
25 | BuildRequires: python-devel >= 1:2.5 |
26 | BuildRequires: rpmbuild(macros) >= 1.219 | |
27 | BuildRequires: sed >= 4.0 | |
48709482 | 28 | BuildRequires: swig-python |
3b43c264 | 29 | Requires(post,postun): /sbin/ldconfig |
315358f9 | 30 | Requires(post,postun): GConf2 |
eeffd8d5 | 31 | Requires: %{name}-libs = %{version}-%{release} |
48709482 | 32 | Requires: anthy |
0355600f | 33 | Requires: ibus >= 1.4.99 |
48709482 | 34 | Requires: kasumi |
0355600f | 35 | Requires: python-ibus >= 1.4.99 |
01fc7768 | 36 | Requires: python-pygtk-gtk >= 2:2.15.2 |
48709482 JR |
37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
38 | ||
bda702e9 JR |
39 | %define _libexecdir %{_libdir}/ibus |
40 | ||
48709482 JR |
41 | %description |
42 | The Anthy engine for IBus platform. It provides Japanese input method | |
43 | from libanthy. | |
44 | ||
a27946f1 JB |
45 | %description -l pl.UTF-8 |
46 | Silnik Anthy dla platformy IBus. Udostępnia metodę wprowadzania znaków | |
47 | japońskich poprzez libanthy. | |
48 | ||
eeffd8d5 JB |
49 | %package libs |
50 | Summary: Shared Anthy GObject library | |
51 | Summary(pl.UTF-8): Biblioteka współdzielona Anthy GObject | |
52 | Group: Libraries | |
53 | Requires: glib2 >= 1:2.26.0 | |
54 | Conflicts: ibus-anthy < 1.4.99.20121006-5 | |
55 | ||
56 | %description libs | |
57 | Shared Anthy GObject library. | |
58 | ||
59 | %description libs -l pl.UTF-8 | |
60 | Biblioteka współdzielona Anthy GObject. | |
61 | ||
0355600f | 62 | %package devel |
1b0108ab JB |
63 | Summary: Header files for Anthy GObject library |
64 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Anthy GObject | |
0355600f | 65 | Group: Development/Libraries |
eeffd8d5 | 66 | Requires: %{name}-libs = %{version}-%{release} |
0355600f | 67 | Requires: anthy-devel |
1b0108ab | 68 | Requires: glib2-devel >= 1:2.26.0 |
0355600f JR |
69 | |
70 | %description devel | |
1b0108ab JB |
71 | Header files for Anthy GObject library. |
72 | ||
73 | %description devel -l pl.UTF-8 | |
74 | Pliki nagłówkowe biblioteki Anthy GObject. | |
0355600f | 75 | |
48709482 JR |
76 | %prep |
77 | %setup -q | |
a27946f1 | 78 | |
0355600f JR |
79 | # ibus 1.4.x has symbol attr in EngineDesc; |
80 | # ibus 1.4.99 (1.5) has symbol attr in IBus.Property | |
81 | # hardcode it so python-ibus is not BRed here | |
a27946f1 | 82 | %{__sed} -i -e 's,\$SYMBOL_TEST,exit(0),' configure.ac |
48709482 JR |
83 | |
84 | %build | |
89c492ae | 85 | %{__aclocal} |
48709482 | 86 | %{__autoconf} |
89c492ae | 87 | %{__automake} |
48709482 | 88 | %configure \ |
0355600f | 89 | --with-layout='default' \ |
2bd6712e | 90 | %{?with_bridge_hotkey:--with-hotkeys} |
48709482 JR |
91 | |
92 | %{__make} | |
93 | ||
94 | %install | |
95 | rm -rf $RPM_BUILD_ROOT | |
96 | %{__make} install \ | |
97 | DESTDIR=$RPM_BUILD_ROOT | |
98 | ||
0355600f | 99 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la |
a27946f1 | 100 | |
48709482 JR |
101 | %find_lang %{name} |
102 | ||
103 | %clean | |
104 | rm -rf $RPM_BUILD_ROOT | |
105 | ||
0355600f | 106 | %post |
0355600f JR |
107 | %update_icon_cache hicolor |
108 | ||
109 | %postun | |
0355600f JR |
110 | %update_icon_cache hicolor |
111 | ||
eeffd8d5 JB |
112 | %post libs -p /sbin/ldconfig |
113 | %postun libs -p /sbin/ldconfig | |
114 | ||
48709482 JR |
115 | %files -f %{name}.lang |
116 | %defattr(644,root,root,755) | |
a27946f1 | 117 | %doc AUTHORS ChangeLog README |
a27946f1 JB |
118 | %attr(755,root,root) %{_libexecdir}/ibus-engine-anthy |
119 | %attr(755,root,root) %{_libexecdir}/ibus-setup-anthy | |
48709482 | 120 | %{_datadir}/ibus-anthy |
a27946f1 | 121 | %{_datadir}/ibus/component/anthy.xml |
eeffd8d5 JB |
122 | %{_desktopdir}/ibus-setup-anthy.desktop |
123 | %{_iconsdir}/hicolor/scalable/apps/ibus-anthy.svg | |
124 | ||
125 | %files libs | |
126 | %defattr(644,root,root,755) | |
0355600f JR |
127 | %attr(755,root,root) %{_libdir}/libanthygobject-1.0.so.*.* |
128 | %attr(755,root,root) %ghost %{_libdir}/libanthygobject-1.0.so.5 | |
1b0108ab | 129 | %{_libdir}/girepository-1.0/Anthy-9000.typelib |
0355600f JR |
130 | |
131 | %files devel | |
132 | %defattr(644,root,root,755) | |
0355600f | 133 | %attr(755,root,root) %{_libdir}/libanthygobject-1.0.so |
1b0108ab JB |
134 | %{_includedir}/ibus-anthy-1.0 |
135 | %{_datadir}/gir-1.0/Anthy-9000.gir |