ibus-vl.spec 7.9 KB

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