scim-vl.spec 10 KB

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