ibus-vl.spec 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. #%define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(0)")
  2. %define git_source 0
  3. %define vine_ja_po 0
  4. Summary: Intelligent Input Bus for Linux / Unix OS
  5. Name: ibus
  6. Version: 1.2.1
  7. Release: 1%{?_dist_release}
  8. License: LGPL
  9. Group: System Environment/Libraries
  10. URL: http://code.google.com/p/ibus/
  11. Source0: %{name}-%{version}.tar.gz
  12. #Source1: ibus-1.1.0.20090407-ja.po
  13. Patch0: ibus-1.2.0.20091024-fixPOFILES.in.patch
  14. Requires: gtk2, pyxdg, iso-codes, dbus-python >= 0.83.0
  15. BuildRequires: gettext >= 0.16.1, gtk2-devel, intltool >= 0.40.0
  16. BuildRequires: dbus-devel, dbus-python-devel >= 0.83.0
  17. BuildRequires: glib2-devel >= 2.0.0
  18. BuildRequires: GConf2-devel >= 2.12
  19. BuildRequires: perl >= 5.8.1 perl-XML-Parser
  20. Buildrequires: python >= 2.5
  21. Buildroot: %{_tmppath}/%{name}-%{version}-root
  22. Provides: iBus
  23. Vendor: Project Vine
  24. Distribution: Vine Linux
  25. Packager: iwaim
  26. %description
  27. IBus is an Intelligent Input Bus. It is a new input framework for Linux OS.
  28. It provides full featured and user friendly input method user interface.
  29. It also may help developers to develop input method easily.
  30. %package devel
  31. Summary: Header files for iBus
  32. Group: Development/Libraries
  33. Requires: ibus == %{version}-%{release}
  34. %description devel
  35. Header files for iBus.
  36. %prep
  37. %setup -q
  38. %patch0 -p1
  39. %if %{git_source}
  40. ./autogen.sh
  41. %endif
  42. # replace ja.po
  43. %if %{vine_ja_po}
  44. %{__rm} -f po/ja.{po,gmo}
  45. %{__cp} %{SOURCE1} po/ja.po
  46. %endif
  47. %configure --disable-static --with-gtk-im-module-dir=%{_libdir}/gtk-2.0/immodules
  48. %build
  49. pushd po
  50. make ja.gmo
  51. popd
  52. make %{?_smp_mflags}
  53. %install
  54. rm -rf %{buildroot}
  55. make DESTDIR=%{buildroot} install
  56. rm -rf %{buildroot}%{_libdir}/libibus.la
  57. rm -rf %{buildroot}%{_libdir}/gtk-2.0/immodules/im-ibus.la
  58. %find_lang %{name}
  59. %clean
  60. rm -rf %{buildroot}
  61. %check
  62. #make check
  63. %post
  64. /sbin/ldconfig
  65. %{_bindir}/gtk-query-immodules-2.0 > %{_sysconfdir}/gtk-2.0/%{_arch}/gtk.immodules
  66. %postun
  67. /sbin/ldconfig
  68. %{_bindir}/gtk-query-immodules-2.0 > %{_sysconfdir}/gtk-2.0/%{_arch}/gtk.immodules
  69. %files -f %{name}.lang
  70. %defattr(-,root,root,-)
  71. %doc AUTHORS COPYING ChangeLog NEWS README
  72. %{_bindir}/ibus*
  73. %{_libdir}/libibus.so.*
  74. %{_libdir}/gtk-2.0/immodules/im-ibus.so
  75. %{_libexecdir}/ibus-gconf
  76. %{_libexecdir}/ibus-ui-gtk
  77. %{_libexecdir}/ibus-x11
  78. %{python_sitearch}/ibus
  79. %{_datadir}/applications/*
  80. %{_datadir}/ibus
  81. %{_datadir}/gtk-doc/html/ibus
  82. %{_datadir}/icons/hicolor/*/apps/*
  83. %{_sysconfdir}/xdg/autostart/ibus.desktop
  84. %{_sysconfdir}/gconf/schemas/ibus.schemas
  85. %files devel
  86. %defattr(-,root,root,-)
  87. %{_libdir}/pkgconfig/ibus-1.0.pc
  88. %{_libdir}/libibus.so
  89. %{_includedir}/ibus-1.0
  90. %changelog
  91. * Fri Apr 16 2010 IWAI, Masaharu <iwai@alib.jp> 1.2.1-1
  92. - new upstream release
  93. - stop 'make check'
  94. * Mon Jan 25 2010 IWAI, Masaharu <iwai@alib.jp> 1.2.0.20091215-2
  95. - add BuildRequires: GConf2-devel >= 2.12: fix <BTS:VineLinux:901>
  96. * Fri Dec 18 2009 IWAI, Masaharu <iwai@alib.jp> 1.2.0.20091215-1
  97. - new upstream release
  98. * Sat Dec 5 2009 IWAI, Masaharu <iwai@alib.jp> 1.2.0.20091204-1
  99. - new upstream release
  100. * Sun Nov 29 2009 IWAI, Masaharu <iwai@alib.jp> 1.2.0.20091124-1
  101. - new upstream release
  102. * Wed Nov 4 2009 IWAI, Masaharu <iwai@alib.jp> 1.2.0.20091024-1
  103. - new upstream release
  104. - add fix POFILES.in patch (Patch0)
  105. - update file list in %%files section
  106. - running ldconfig and gtk-query-immodules-2.0 in %%post and %%postun
  107. * Thu Oct 8 2009 IWAI, Masaharu <iwai@alib.jp> 1.2.0.20090927-1
  108. - new upstream release
  109. * Thu Sep 17 2009 IWAI, Masaharu <iwai@alib.jp> 1.2.0.20090915-1
  110. - new upstream release
  111. - update %%files section
  112. - update BuildRequires
  113. - drop obsoleted configure option: --disable-qt4-immodule
  114. * Fri Aug 28 2009 IWAI, Masaharu <iwai@alib.jp> 1.1.0.20090812-1
  115. - new upstream release
  116. * Sat Jun 20 2009 IWAI, Masaharu <iwai@alib.jp> 1.1.0.20090612-1
  117. - new upstream release
  118. - add Packager tag
  119. * Tue Jun 2 2009 IWAI, Masaharu <iwai@alib.jp> 1.1.0.20090531-1
  120. - new upstream release
  121. * Sat May 9 2009 IWAI, Masaharu <iwai@alib.jp> 1.1.0.20090508-1
  122. - new upstream release
  123. - update BuildRequires
  124. - add dbus-devel, intltool >= 0.40.0
  125. - drop qt4-devel
  126. * Sun Apr 26 2009 IWAI, Masaharu <iwai@alib.jp> 1.1.0.20090423-1
  127. - new upstream release
  128. - drop defined python_sitearch rpm macro
  129. * Fri Apr 17 2009 IWAI, Masaharu <iwai@alib.jp> 1.1.0.20090417-1
  130. - new upstream release
  131. * Tue Apr 14 2009 IWAI, Masaharu <iwai@alib.jp> 1.1.0.20090413-1
  132. - new upstream release
  133. - drop Vine ja.po (SOURCE1)
  134. * Wed Apr 8 2009 IWAI, Masaharu <iwai@alib.jp> 1.1.0.20090407-1
  135. - new upstream release
  136. - update ja.po (SOURCE1)
  137. * Sat Apr 4 2009 IWAI, Masaharu <iwai@alib.jp> 1.1.0.20090331-1
  138. - new upstream release
  139. * Sat Mar 21 2009 IWAI, Masaharu <iwai@alib.jp> - 1.1.0.20090311-3
  140. - add ja.po (SOURCE1): update
  141. - add ibus.desktop file in xdg autostart
  142. - add ibus.schemas file
  143. * Fri Mar 20 2009 Shu KONNO <owa@bg.wakwak.com> - 1.1.0.20090311-2
  144. - set python_sitearch to arch independent path
  145. * Tue Mar 17 2009 IWAI, Masaharu <iwai@alib.jp> - 1.1.0.20090311-1
  146. - new upstream release
  147. - add dbus-python version ( 0.83.0 and more ) in Requires
  148. - add BuildRequires: dbus-python-devel >= 0.83.0
  149. * Mon Feb 23 2009 IWAI, Masaharu <iwai@alib.jp> - 1.1.0.20090217-1
  150. - new upstream release
  151. - add Requires: iso-codes, dbus-python: <BTS:VineLinux:656>
  152. - generate devel sub package
  153. - stop creating qt4 immodule
  154. - drop .la files
  155. * Mon Jan 26 2009 IWAI, Masaharu <iwai@alib.jp> - 0.1.1.20090126-1
  156. - initial release