scim-vl.spec 11 KB

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