scim-vl.spec 9.7 KB

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