ibus-vl.spec 9.4 KB

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