1 | %define ver 1.3.9 |
---|
2 | %define rel 5 |
---|
3 | |
---|
4 | Summary: Intelligent Input Bus for Linux / Unix OS |
---|
5 | Name: ibus |
---|
6 | Version: %{ver} |
---|
7 | Release: %{rel}%{?_dist_release} |
---|
8 | License: LGPL |
---|
9 | Group: System Environment/Libraries |
---|
10 | URL: http://code.google.com/p/ibus/ |
---|
11 | |
---|
12 | Source0: %{name}-%{version}.tar.gz |
---|
13 | Patch0: ibus-1.2.0.20091024-fixPOFILES.in.patch |
---|
14 | # https://bugs.launchpad.net/ubuntu/+source/ibus/+bug/716314 |
---|
15 | # Use LC_MESSAGES instead of LC_ALL in bus_ibus_impl_set_default_preload_engines |
---|
16 | Patch1: ibus-1.3.9-locale-parser.patch |
---|
17 | # add default preload engines |
---|
18 | Patch10: ibus-1.3.9-add-preload-engines.patch |
---|
19 | # add Shift+space as trigger key instead of Ctrl+space |
---|
20 | Patch20: ibus-1.3.9-vine.patch |
---|
21 | |
---|
22 | Requires: gtk2, pyxdg, iso-codes, dbus-python >= 0.83.0 |
---|
23 | Requires: notify-python |
---|
24 | Requires: librsvg2 |
---|
25 | Requires(pre): GConf2 |
---|
26 | Requires(post): GConf2 |
---|
27 | Requires(preun): GConf2 |
---|
28 | Requires(post): glib2 |
---|
29 | Requires(post,postun): coreutils, gtk2 |
---|
30 | BuildRequires(install,check): desktop-file-utils |
---|
31 | BuildRequires: gettext >= 0.16.1, gtk2-devel, intltool >= 0.40.0 |
---|
32 | BuildRequires: dbus-devel, dbus-python-devel >= 0.83.0 |
---|
33 | BuildRequires: glib2-devel >= 2.0.0 |
---|
34 | %if %{?_dist_release} != "vl5" |
---|
35 | BuildRequires: gtk3-devel >= 3.0.0 |
---|
36 | %endif |
---|
37 | BuildRequires: GConf2-devel >= 2.12 |
---|
38 | BuildRequires: perl >= 5.8.1 perl-XML-Parser |
---|
39 | Buildrequires: python >= 2.5 |
---|
40 | Buildroot: %{_tmppath}/%{name}-%{version}-root |
---|
41 | Provides: iBus |
---|
42 | |
---|
43 | Vendor: Project Vine |
---|
44 | Distribution: Vine Linux |
---|
45 | Packager: iwaim |
---|
46 | |
---|
47 | %description |
---|
48 | IBus is an Intelligent Input Bus. It is a new input framework for Linux OS. |
---|
49 | It provides full featured and user friendly input method user interface. |
---|
50 | It also may help developers to develop input method easily. |
---|
51 | |
---|
52 | %package devel |
---|
53 | Summary: Header files for iBus |
---|
54 | Group: Development/Libraries |
---|
55 | Requires: ibus == %{version}-%{release} |
---|
56 | Requires: glib2-devel |
---|
57 | Requires: dbus-devel |
---|
58 | Requires: vala |
---|
59 | |
---|
60 | %description devel |
---|
61 | Header files for iBus. |
---|
62 | |
---|
63 | %if %{?_dist_release} != "vl5" |
---|
64 | %package gtk3 |
---|
65 | Summary: Ibus im module for gtk3 |
---|
66 | Group: System Environment/Libraries |
---|
67 | Requires: %{name} = %{version}-%{release} |
---|
68 | Requires(post): glib2 |
---|
69 | |
---|
70 | %description gtk3 |
---|
71 | The ibus-gtk3 contains ibus im module for gtk3. |
---|
72 | |
---|
73 | %endif |
---|
74 | |
---|
75 | %prep |
---|
76 | %setup -q |
---|
77 | %patch0 -p1 |
---|
78 | %patch1 -p1 |
---|
79 | %patch10 -p1 -b .add-default-preload-engine |
---|
80 | %patch20 -p1 -b .vine |
---|
81 | %configure \ |
---|
82 | --disable-static \ |
---|
83 | %if %{?_dist_release} != "vl5" |
---|
84 | --enable-gtk3 \ |
---|
85 | %endif |
---|
86 | --with-gtk2-im-module-dir=%{_libdir}/gtk-2.0/immodules |
---|
87 | |
---|
88 | %build |
---|
89 | make %{?_smp_mflags} |
---|
90 | |
---|
91 | %install |
---|
92 | rm -rf %{buildroot} |
---|
93 | make DESTDIR=%{buildroot} install |
---|
94 | |
---|
95 | rm -rf %{buildroot}%{_libdir}/libibus.la |
---|
96 | rm -rf %{buildroot}%{_libdir}/gtk-2.0/immodules/im-ibus.la |
---|
97 | %if %{?_dist_release} != "vl5" |
---|
98 | rm -rf %{buildroot}%{_libdir}/gtk-3.0/3.0.0/immodules/im-ibus.la |
---|
99 | %endif |
---|
100 | |
---|
101 | %{_bindir}/desktop-file-install \ |
---|
102 | --vendor="" --dir=%{buildroot}/%{_datadir}/applications \ |
---|
103 | --add-category=Applications \ |
---|
104 | --add-category=X-GNOME-PersonalSettings \ |
---|
105 | %{buildroot}/%{_datadir}/applications/ibus-setup.desktop |
---|
106 | |
---|
107 | rm -rf %{buildroot}%{_sysconfdir}/xdg/autostart/ibus.desktop |
---|
108 | |
---|
109 | %find_lang %{name} |
---|
110 | |
---|
111 | %clean |
---|
112 | rm -rf %{buildroot} |
---|
113 | |
---|
114 | %check |
---|
115 | #make check |
---|
116 | %{_bindir}/desktop-file-validate %{buildroot}/%{_datadir}/applications/ibus.desktop |
---|
117 | %{_bindir}/desktop-file-validate %{buildroot}/%{_datadir}/applications/ibus-setup.desktop |
---|
118 | |
---|
119 | |
---|
120 | %post |
---|
121 | /sbin/ldconfig |
---|
122 | if [ -x %{_bindir}/update-desktop-database ] ; then |
---|
123 | %{_bindir}/update-desktop-database %{_datadir}/applications -q |
---|
124 | fi |
---|
125 | %{_bindir}/gtk-query-immodules-2.0 > %{_sysconfdir}/gtk-2.0/%{_arch}/gtk.immodules |
---|
126 | export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` |
---|
127 | gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/ibus.schemas >& /dev/null || : |
---|
128 | # recreate icon cache |
---|
129 | touch --no-create %{_datadir}/icons/hicolor || : |
---|
130 | [ -x %{_bindir}/gtk-update-icon-cache ] && \ |
---|
131 | %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : |
---|
132 | |
---|
133 | |
---|
134 | %pre |
---|
135 | if [ "$1" -gt 1 ]; then |
---|
136 | export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` |
---|
137 | gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/ibus.schemas >& /dev/null || : |
---|
138 | fi |
---|
139 | |
---|
140 | |
---|
141 | %preun |
---|
142 | if [ "$1" -eq 0 ]; then |
---|
143 | export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` |
---|
144 | gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/ibus.schemas >& /dev/null || : |
---|
145 | fi |
---|
146 | |
---|
147 | |
---|
148 | %postun |
---|
149 | /sbin/ldconfig |
---|
150 | %{_bindir}/gtk-query-immodules-2.0 > %{_sysconfdir}/gtk-2.0/%{_arch}/gtk.immodules |
---|
151 | if [ -x %{_bindir}/update-desktop-database ] ; then |
---|
152 | %{_bindir}/update-desktop-database %{_datadir}/applications -q |
---|
153 | fi |
---|
154 | # recreate icon cache |
---|
155 | touch --no-create %{_datadir}/icons/hicolor || : |
---|
156 | [ -x %{_bindir}/gtk-update-icon-cache ] && \ |
---|
157 | %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : |
---|
158 | |
---|
159 | %if %{?_dist_release} != "vl5" |
---|
160 | %post gtk3 |
---|
161 | %{_bindir}/gtk-query-immodules-3.0 --update-cache |
---|
162 | |
---|
163 | %postun gtk3 |
---|
164 | %{_bindir}/gtk-query-immodules-3.0 --update-cache |
---|
165 | |
---|
166 | %endif |
---|
167 | |
---|
168 | %files -f %{name}.lang |
---|
169 | %defattr(-,root,root,-) |
---|
170 | %doc AUTHORS COPYING ChangeLog NEWS README |
---|
171 | %{_bindir}/ibus* |
---|
172 | %{_libdir}/libibus.so.* |
---|
173 | %{_libdir}/gtk-2.0/immodules/im-ibus.so |
---|
174 | %{_libexecdir}/ibus-gconf |
---|
175 | %{_libexecdir}/ibus-ui-gtk |
---|
176 | %{_libexecdir}/ibus-x11 |
---|
177 | #%{python_sitearch}/ibus |
---|
178 | %{python_sitelib}/ibus |
---|
179 | %{_datadir}/applications/* |
---|
180 | %{_datadir}/ibus |
---|
181 | %{_datadir}/gtk-doc/html/ibus |
---|
182 | %{_datadir}/icons/hicolor/*/apps/* |
---|
183 | #%{_sysconfdir}/xdg/autostart/ibus.desktop |
---|
184 | %{_sysconfdir}/gconf/schemas/ibus.schemas |
---|
185 | |
---|
186 | %files devel |
---|
187 | %defattr(-,root,root,-) |
---|
188 | %{_libdir}/pkgconfig/ibus-1.0.pc |
---|
189 | %{_libdir}/libibus.so |
---|
190 | %{_includedir}/ibus-1.0 |
---|
191 | %{_datadir}/vala/vapi/ibus-1.0.vapi |
---|
192 | %if %{?_dist_release} != "vl5" |
---|
193 | %{_libdir}/girepository-1.0/IBus-1.0.typelib |
---|
194 | %{_datadir}/gir-1.0/IBus-1.0.gir |
---|
195 | %endif |
---|
196 | |
---|
197 | %if %{?_dist_release} != "vl5" |
---|
198 | %files gtk3 |
---|
199 | %defattr(-,root,root,-) |
---|
200 | %{_libdir}/gtk-3.0/3.0.0/immodules/im-ibus.so |
---|
201 | %endif |
---|
202 | |
---|
203 | %changelog |
---|
204 | * Thu Jun 02 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1.3.9-5 |
---|
205 | - add patch1 from ubuntu (accepted in upstream) |
---|
206 | Use LC_MESSAGES instead of LC_ALL in bus_ibus_impl_set_default_preload_engines. |
---|
207 | - add "Catgegories=Applications;X-GNOME-PersonalSettings" to ibus-setup.desktop |
---|
208 | - add patch10 to add default preload engines to gconf schemas |
---|
209 | - add patch20 to modify IM trigger shortcut keys |
---|
210 | - add Shift+space, remove Ctrl+space |
---|
211 | |
---|
212 | * Tue Apr 19 2011 IWAI, Masaharu <iwai@alib.jp> 1.3.9-4vl6 |
---|
213 | - drop {post,postun} script for gtk3 immodules in main package |
---|
214 | |
---|
215 | * Fri Apr 8 2011 IWAI, Masaharu <iwai@alib.jp> 1.3.9-3vl6 |
---|
216 | - drop GTK3 immodule file in main package |
---|
217 | |
---|
218 | * Fri Feb 18 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.3.9-2 |
---|
219 | - create -gtk3 sub package (VineSeed only) |
---|
220 | |
---|
221 | * Wed Dec 15 2010 IWAI, Masaharu <iwai@alib.jp> 1.3.9-1 |
---|
222 | - new upstream release |
---|
223 | - add files in devel sub package for VineSeed |
---|
224 | - girepository-1.0/IBus-1.0.typelib |
---|
225 | - gir-1.0/IBus-1.0.gir |
---|
226 | |
---|
227 | * Mon Sep 27 2010 Shu KONNO <owa@bg.wakwak.com> 1.3.7-2 |
---|
228 | - rebuilt with rpm-4.8.1 for pkg-config |
---|
229 | |
---|
230 | * Mon Aug 9 2010 IWAI, Masaharu <iwai@alib.jp> 1.3.7-1 |
---|
231 | - new upstream release |
---|
232 | - add support Vala on Vine Linux 5 |
---|
233 | |
---|
234 | * Fri Jul 9 2010 IWAI, Masaharu <iwai@alib.jp> 1.3.6-1 |
---|
235 | - new upstream release |
---|
236 | |
---|
237 | * Tue Jun 15 2010 IWAI, Masaharu <iwai@alib.jp> 1.3.5-1 |
---|
238 | - new upstream release |
---|
239 | - update GTK immodule dir option for configure |
---|
240 | - add vapi file for VineSeed |
---|
241 | - add Requires: vala for devel package, VineSeed |
---|
242 | |
---|
243 | * Wed Jun 9 2010 IWAI, Masaharu <iwai@alib.jp> 1.3.4-2 |
---|
244 | - update Requires: notify-python librsvg2 |
---|
245 | - execute gconftool-2 on {post,pre,preun} |
---|
246 | - add Requires: Gconf2 on {post,pre,preun} |
---|
247 | - update Requires: glib2-devel dbus-devel for ibus-devel package |
---|
248 | - execute update-desktop-database on {post,postun} |
---|
249 | - execute gtk-update-icon-cache on {post,postun}: <BTS:VineLinux:955> |
---|
250 | - add Requires: coreutils, gtk2 on {post,postun} |
---|
251 | - drop %%{_sysconfdir}/xdg/autostart/ibus.desktop file |
---|
252 | |
---|
253 | * Sun Jun 6 2010 IWAI, Masaharu <iwai@alib.jp> 1.3.4-1 |
---|
254 | - new upstream release |
---|
255 | - stop 'make check' |
---|
256 | |
---|
257 | * Tue May 25 2010 Shu KONNO <owa@bg.wakwak.com> 1.3.3-2 |
---|
258 | - s/python_sitearch/python_sitelib/ |
---|
259 | |
---|
260 | * Sat May 15 2010 IWAI, Masaharu <iwai@alib.jp> 1.3.3-1 |
---|
261 | - new upstream release |
---|
262 | - execute 'make check' |
---|
263 | - clean up: |
---|
264 | - drop unused git_source and vine_ja_po |
---|
265 | |
---|
266 | * Fri Apr 16 2010 IWAI, Masaharu <iwai@alib.jp> 1.2.1-1 |
---|
267 | - new upstream release |
---|
268 | - stop 'make check' |
---|
269 | |
---|
270 | * Mon Jan 25 2010 IWAI, Masaharu <iwai@alib.jp> 1.2.0.20091215-2 |
---|
271 | - add BuildRequires: GConf2-devel >= 2.12: fix <BTS:VineLinux:901> |
---|
272 | |
---|
273 | * Fri Dec 18 2009 IWAI, Masaharu <iwai@alib.jp> 1.2.0.20091215-1 |
---|
274 | - new upstream release |
---|
275 | |
---|
276 | * Sat Dec 5 2009 IWAI, Masaharu <iwai@alib.jp> 1.2.0.20091204-1 |
---|
277 | - new upstream release |
---|
278 | |
---|
279 | * Sun Nov 29 2009 IWAI, Masaharu <iwai@alib.jp> 1.2.0.20091124-1 |
---|
280 | - new upstream release |
---|
281 | |
---|
282 | * Wed Nov 4 2009 IWAI, Masaharu <iwai@alib.jp> 1.2.0.20091024-1 |
---|
283 | - new upstream release |
---|
284 | - add fix POFILES.in patch (Patch0) |
---|
285 | - update file list in %%files section |
---|
286 | - running ldconfig and gtk-query-immodules-2.0 in %%post and %%postun |
---|
287 | |
---|
288 | * Thu Oct 8 2009 IWAI, Masaharu <iwai@alib.jp> 1.2.0.20090927-1 |
---|
289 | - new upstream release |
---|
290 | |
---|
291 | * Thu Sep 17 2009 IWAI, Masaharu <iwai@alib.jp> 1.2.0.20090915-1 |
---|
292 | - new upstream release |
---|
293 | - update %%files section |
---|
294 | - update BuildRequires |
---|
295 | - drop obsoleted configure option: --disable-qt4-immodule |
---|
296 | |
---|
297 | * Fri Aug 28 2009 IWAI, Masaharu <iwai@alib.jp> 1.1.0.20090812-1 |
---|
298 | - new upstream release |
---|
299 | |
---|
300 | * Sat Jun 20 2009 IWAI, Masaharu <iwai@alib.jp> 1.1.0.20090612-1 |
---|
301 | - new upstream release |
---|
302 | - add Packager tag |
---|
303 | |
---|
304 | * Tue Jun 2 2009 IWAI, Masaharu <iwai@alib.jp> 1.1.0.20090531-1 |
---|
305 | - new upstream release |
---|
306 | |
---|
307 | * Sat May 9 2009 IWAI, Masaharu <iwai@alib.jp> 1.1.0.20090508-1 |
---|
308 | - new upstream release |
---|
309 | - update BuildRequires |
---|
310 | - add dbus-devel, intltool >= 0.40.0 |
---|
311 | - drop qt4-devel |
---|
312 | |
---|
313 | * Sun Apr 26 2009 IWAI, Masaharu <iwai@alib.jp> 1.1.0.20090423-1 |
---|
314 | - new upstream release |
---|
315 | - drop defined python_sitearch rpm macro |
---|
316 | |
---|
317 | * Fri Apr 17 2009 IWAI, Masaharu <iwai@alib.jp> 1.1.0.20090417-1 |
---|
318 | - new upstream release |
---|
319 | |
---|
320 | * Tue Apr 14 2009 IWAI, Masaharu <iwai@alib.jp> 1.1.0.20090413-1 |
---|
321 | - new upstream release |
---|
322 | - drop Vine ja.po (SOURCE1) |
---|
323 | |
---|
324 | * Wed Apr 8 2009 IWAI, Masaharu <iwai@alib.jp> 1.1.0.20090407-1 |
---|
325 | - new upstream release |
---|
326 | - update ja.po (SOURCE1) |
---|
327 | |
---|
328 | * Sat Apr 4 2009 IWAI, Masaharu <iwai@alib.jp> 1.1.0.20090331-1 |
---|
329 | - new upstream release |
---|
330 | |
---|
331 | * Sat Mar 21 2009 IWAI, Masaharu <iwai@alib.jp> - 1.1.0.20090311-3 |
---|
332 | - add ja.po (SOURCE1): update |
---|
333 | - add ibus.desktop file in xdg autostart |
---|
334 | - add ibus.schemas file |
---|
335 | |
---|
336 | * Fri Mar 20 2009 Shu KONNO <owa@bg.wakwak.com> - 1.1.0.20090311-2 |
---|
337 | - set python_sitearch to arch independent path |
---|
338 | |
---|
339 | * Tue Mar 17 2009 IWAI, Masaharu <iwai@alib.jp> - 1.1.0.20090311-1 |
---|
340 | - new upstream release |
---|
341 | - add dbus-python version ( 0.83.0 and more ) in Requires |
---|
342 | - add BuildRequires: dbus-python-devel >= 0.83.0 |
---|
343 | |
---|
344 | * Mon Feb 23 2009 IWAI, Masaharu <iwai@alib.jp> - 1.1.0.20090217-1 |
---|
345 | - new upstream release |
---|
346 | - add Requires: iso-codes, dbus-python: <BTS:VineLinux:656> |
---|
347 | - generate devel sub package |
---|
348 | - stop creating qt4 immodule |
---|
349 | - drop .la files |
---|
350 | |
---|
351 | * Mon Jan 26 2009 IWAI, Masaharu <iwai@alib.jp> - 0.1.1.20090126-1 |
---|
352 | - initial release |
---|