scim-vl.spec 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311
  1. %define ver 1.4.9
  2. %define libdirver 1.4.0
  3. Summary: Smart Common Input Method platform
  4. Name: scim
  5. Version: %{ver}
  6. Release: 5%{?_dist_release}
  7. URL: http://www.scim-im.org/
  8. License: LGPL
  9. Group: System Environment/Libraries
  10. Source0: http://dl.sourceforge.net/sourceforge/scim/%{name}-%{version}.tar.gz
  11. Source2: scim-icons-0.7.tar.gz
  12. Source5: scim-1.4.7_translation-update.tar.bz2
  13. # patches from fedora
  14. Patch9: scim_panel_gtk-icon-size-fixes.patch
  15. Patch11: scim-1.4.5-panel-menu-fixes.patch
  16. #Patch12: scim-fix-unload-segfault.patch
  17. Patch14: scim_x11_frontend-ic-focus-LTC27940-215953.patch
  18. Patch15: scim-gtkimm-default-snooper-off-213796.patch
  19. Patch17: scim-1.4.5-no-rpath-libdir.patch
  20. Patch19: scim-1.4.7-remove-locale.patch
  21. Patch20: scim-1.4.7-fix-fallback.patch
  22. Patch21: scim-1.4.7-fix-capslock.patch
  23. Patch22: scim-1.4.7-fix-gdm.patch
  24. Patch23: scim-1.4.7-remove-help-frame.patch
  25. #Patch24: scim-1.4.7-translation-update-431995.patch
  26. Patch25: scim-1.4.7-timeout.patch
  27. Patch26: scim-1.4.7-trayicon.patch
  28. Patch27: scim-1.4.7-menu-pos.patch
  29. Patch28: scim-1.4.7-xim-wrong-format.patch
  30. Patch29: scim-1.4.7-bz462820.patch
  31. Patch30: scim-1.4.7-imdkit-read-property-properly.patch
  32. Patch32: scim-1.4.7-syslibltdl.patch
  33. Patch33: scim-1.4.8-fix-dlopen.patch
  34. # patch from Mandriva
  35. Patch31: scim-1.4.7-support-more-utf8-locales.patch
  36. # vine patch
  37. Patch100: %{name}-1.4.8-vine.patch
  38. BuildRoot: %{_tmppath}/%{name}-root
  39. BuildRequires: glib2-devel >= 2.10.0 gtk2-devel >= 2.8.13 pango-devel >= 1.0.0
  40. BuildRequires: GConf2-devel >= 2.0.0 pkgconfig >= 0.12
  41. BuildRequires: libXt-devel
  42. BuildRequires: autoconf automake gettext libtool
  43. BuildRequires: libtool-ltdl-devel
  44. Requires(post): gtk2 >= 2.8.13
  45. %description
  46. Smart Common Input Method platform, in short SCIM, is a development
  47. platform to make Input Method developer life easier. It honors a
  48. very clear architecture and provides a pretty simple and powerful
  49. programming interface.
  50. %description -l ja
  51. SCIM ( Smart Common Input Method プラットフォーム ) はインプット
  52. メソッドの開発をより簡単にする開発プラットフォームです。
  53. SCIM は、明快なアーキテクチャを持ち、とても簡潔でパワフルな
  54. プログラミングインタフェースを提供します。
  55. %package devel
  56. Summary: Development tools for SCIM applications.
  57. Summary(ja): SCIM を使ったアプリケーションを開発するためのファイル
  58. Group: Development/Libraries
  59. Requires: %{name} = %{version}-%{release}
  60. Requires: pkgconfig >= 0.12
  61. %description devel
  62. scim-devel package contains the header files and static libraries to
  63. develop a SCIM applications.
  64. %description devel -l ja
  65. scim-devel パッケージには、SCIM アプリケーションの開発に必要な
  66. ヘッダーファイルと静的ライブラリが含まれています。
  67. %prep
  68. %setup -q -a2 -a5
  69. cp -p scim-icons/icons/*.png data/icons
  70. cp -p scim-icons/pixmaps/*.png data/pixmaps
  71. cp -p scim_translations/*.po po
  72. %patch9 -p1 -b .9-icon-size~
  73. %patch11 -p1 -b .11-factory-menu~
  74. #%patch12 -p1 -b .12-unloadsegfault~
  75. %patch14 -p1 -b .14-xim-focus~
  76. %patch15 -p1 -b .15-key-snooper~
  77. %patch17 -p1 -b .17-rpath~
  78. %patch19 -p1 -b .19-remove-locale~
  79. %patch20 -p1 -b .20-fix-fallback
  80. %patch21 -p1 -b .21-fix-capslock
  81. %patch22 -p1 -b .22-fix-gdm
  82. %patch23 -p1 -b .23-help-frame
  83. #%patch24 -p1 -b .24-trans
  84. %patch25 -p1 -b .25-timeout
  85. %patch26 -p1 -b .26-trayicon
  86. %patch27 -p1 -b .27-menu-pos
  87. %patch28 -p1 -b .28-xim-wrong-format
  88. %patch29 -p1 -b .29-bz462820
  89. %patch30 -p1 -b .29-bz466657libtool
  90. %patch31 -p1 -b .support-more-utf8-locales
  91. %patch32 -p1 -b .32-sysltdl
  92. %patch33 -E -p1 -b .fix-dlopen
  93. %patch100 -p1 -b .vine
  94. %build
  95. autoreconf -vfi
  96. %configure --disable-static
  97. %{__make} %{?_smp_mflags}
  98. %install
  99. [ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot}
  100. %{__make} DESTDIR=%{buildroot} install-strip
  101. %{find_lang} %{name}
  102. # remove unpackaged files
  103. find ${RPM_BUILD_ROOT} -name '*.la' -exec rm \{\} \;
  104. # install desktop file
  105. desktop-file-install --delete-original \
  106. --dir ${RPM_BUILD_ROOT}%{_datadir}/applications \
  107. --add-category X-GNOME-PersonalSettings \
  108. ${RPM_BUILD_ROOT}%{_datadir}/applications/scim-setup.desktop
  109. desktop-file-install --delete-original \
  110. --dir ${RPM_BUILD_ROOT}%{_datadir}/control-center-2.0/capplets \
  111. --add-category X-GNOME-PersonalSettings \
  112. ${RPM_BUILD_ROOT}%{_datadir}/control-center-2.0/capplets/scim-setup.desktop
  113. %clean
  114. [ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot}
  115. %post
  116. /sbin/ldconfig
  117. %{_bindir}/gtk-query-immodules-2.0 > %{_sysconfdir}/gtk-2.0/%{_arch}/gtk.immodules
  118. %postun
  119. /sbin/ldconfig
  120. %{_bindir}/gtk-query-immodules-2.0 > %{_sysconfdir}/gtk-2.0/%{_arch}/gtk.immodules
  121. %files -f %{name}.lang
  122. %defattr(-,root,root)
  123. %doc AUTHORS COPYING ChangeLog NEWS README THANKS TODO
  124. %{_bindir}/scim
  125. %{_bindir}/scim-config-agent
  126. %{_bindir}/scim-setup
  127. %{_libdir}/libscim-1.0.so.*
  128. %{_libdir}/libscim-gtkutils-1.0.so.*
  129. %{_libdir}/libscim-x11utils-1.0.so.*
  130. %dir %{_libdir}/gtk-2.0
  131. %dir %{_libdir}/gtk-2.0/immodules
  132. %{_libdir}/gtk-2.0/immodules/im-scim.so
  133. %dir %{_libdir}/scim-1.0
  134. %{_libdir}/scim-1.0/scim-helper-launcher
  135. %{_libdir}/scim-1.0/scim-helper-manager
  136. %{_libdir}/scim-1.0/scim-launcher
  137. %{_libdir}/scim-1.0/scim-panel-gtk
  138. %dir %{_libdir}/scim-1.0/%{libdirver}
  139. %dir %{_libdir}/scim-1.0/%{libdirver}/Config
  140. %{_libdir}/scim-1.0/%{libdirver}/Config/*.so
  141. %dir %{_libdir}/scim-1.0/%{libdirver}/Filter
  142. %{_libdir}/scim-1.0/%{libdirver}/Filter/*.so
  143. %dir %{_libdir}/scim-1.0/%{libdirver}/FrontEnd
  144. %{_libdir}/scim-1.0/%{libdirver}/FrontEnd/*.so
  145. %dir %{_libdir}/scim-1.0/%{libdirver}/Helper
  146. %{_libdir}/scim-1.0/%{libdirver}/Helper/*.so
  147. %dir %{_libdir}/scim-1.0/%{libdirver}/IMEngine
  148. %{_libdir}/scim-1.0/%{libdirver}/IMEngine/*.so
  149. %dir %{_libdir}/scim-1.0/%{libdirver}/SetupUI
  150. %{_libdir}/scim-1.0/%{libdirver}/SetupUI/*.so
  151. %{_datadir}/applications/scim-setup.desktop
  152. %{_datadir}/control-center-2.0/capplets/scim-setup.desktop
  153. %{_datadir}/pixmaps/scim-setup.png
  154. %{_datadir}/scim
  155. %config(noreplace) %{_sysconfdir}/scim/config
  156. %config(noreplace) %{_sysconfdir}/scim/global
  157. %dir %{_sysconfdir}/scim
  158. %files devel
  159. %defattr(-, root, root)
  160. %doc docs/html docs/developers
  161. %{_libdir}/libscim-1.0.so
  162. %{_libdir}/libscim-gtkutils-1.0.so
  163. %{_libdir}/libscim-x11utils-1.0.so
  164. %{_libdir}/pkgconfig/scim.pc
  165. %{_libdir}/pkgconfig/scim-gtkutils.pc
  166. %{_libdir}/pkgconfig/scim-x11utils.pc
  167. %{_includedir}/scim-1.0
  168. %changelog
  169. * Sun Feb 21 2010 Shu KONNO <owa@bg.wakwak.com> 1.4.9-5
  170. - rebuilt with new toolchain
  171. * Tue Aug 11 2009 Shu KONNO <owa@bg.wakwak.com> 1.4.9-4
  172. - add BR: libtool-ltdl-devel
  173. * Sun Aug 09 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 1.4.9-3
  174. - add Categories=X-GNOME-PersonalSettings for .desktop
  175. * Thu Apr 23 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 1.4.9-2
  176. - fixed changelog typo in Apr 19
  177. - added Buildrequires: autoconf automake gettext libtool
  178. * Sun Apr 19 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 1.4.9-1
  179. - new upstream release
  180. - spec in UTF-8
  181. -added Pacth32,33 (import from fedora package)
  182. - changed autoreconf option
  183. * Sun Apr 5 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 1.4.8-2
  184. - updated vine patch
  185. - enabled "/Panel/Gtk/LookupTableVertinal = True" again
  186. * Sun Feb 8 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 1.4.8-1
  187. - new upstream release
  188. - removed patch12,patch24 (because these patches are merged)
  189. - added patch31 (for support more utf8-locales)
  190. - updated and renamed vine patch
  191. - deleted "/Panel/Gtk/LookupTableVertinal = True" (because already "True")
  192. - renamed scim-1.4.8-vine.patch
  193. * Wed Oct 29 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.7-6
  194. - import more patches from fedora package.
  195. - disable static libs
  196. - remove unpackaged files
  197. * Sat Oct 25 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.4.7-5
  198. - remove *.la
  199. * Sat Sep 27 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.7-4
  200. - rebuild with gtk-2.14
  201. - import patch1[245], Patch2[01235678] from fedora package to fix
  202. several problems.
  203. * Fri May 09 2008 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.7-3
  204. - rebuild with xorg-x11-7.3
  205. * Thu Apr 17 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.4.7-2
  206. - rebuilt with glib2-devel-2.16.3-1vl5 (without *.la files)
  207. * Sat Apr 05 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 1.4.7-1
  208. - apply new versioning policy.
  209. * Wed Sep 26 2007 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 1.4.7-0vl1
  210. - new upstream release
  211. - add %%{_libdir}/scim-1.0/%%{libdirver}/Filter/*.la.
  212. * Thu May 10 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.6-0vl2
  213. - rebuild with libstdc++34
  214. * Tue Apr 24 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.6-0vl1
  215. - new upstream release
  216. * Fri Nov 24 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.5-0vl1
  217. - new upstream release
  218. * Sun Sep 03 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.4-0vl2
  219. - update vine patch
  220. - set /Panel/Gtk/LookupTableVertinal = True
  221. * Tue Apr 04 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.4-0vl1
  222. - new upstream release
  223. - change Group: to System Environment/Libraries
  224. - change Url: to current scim homepage.
  225. - add Patch100 for Vine Linux default settings
  226. - add Zenkaku_Hankaku, Alt+Kanji, Alt+grave and Shift+space as Trigger
  227. - fix %%post/%%postun to support biarch.
  228. - add PreReq: gtk2 >= 2.8.13 to support biarch.
  229. * Wed Aug 17 2005 IWAI, Masaharu <iwai@alib.jp> 1.4.2-0vl1
  230. - new upstream release
  231. * Fri Aug 12 2005 IWAI, Masaharu <iwai@alib.jp> 1.4.1-0vl1
  232. - new upstream release
  233. * Sun Jul 31 2005 IWAI, Masaharu <iwai@alib.jp> 1.4.0-0vl1
  234. - new upstream releases
  235. - stop runnging gconftool-2 in post script
  236. * Fri May 27 2005 IWAI, Masaharu <iwai@alib.jp> 1.2.3-0vl1
  237. - new upstream release
  238. * Thu May 26 2005 IWAI, Masaharu <iwai@alib.jp> 1.2.2-0vl1
  239. - new upstream release
  240. - update library directory varsion: 1.2.0
  241. - add %%{_libdir}/scim-1.0/scim-helper-{launcher,manager}
  242. - add New Setup Module: Helper
  243. - drop %%{_bindir}/scim-make-table
  244. - drop %%{_sysconfdir}/gconf/schemas/*
  245. * Fri Dec 31 2004 IWAI, Masaharu <iwai@alib.jp> 1.0.2-0vl1
  246. - new upstream release
  247. * Fri Oct 22 2004 IWAI, Masaharu <iwai@alib.jp> 1.0.1-0vl2
  248. - add Japanese descriptions
  249. * Sat Oct 9 2004 IWAI, Masaharu <iwai@alib.jp> 1.0.1-0vl1
  250. - new upstream release
  251. - add new config files: config and global
  252. * Wed Sep 8 2004 IWAI, Masaharu <iwai@alib.jp> 1.0.0-0vl1
  253. - initial build