ibus-vl.spec 8.0 KB

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