ibus-vl.spec 9.4 KB

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