kinput2-vl.spec 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260
  1. Summary: kinput2 is an input server for X11 applications that want Japanese text input.
  2. Summary(ja): kinput2 / X11アプリケーション用の日本語入力サーバー
  3. Name: kinput2
  4. Version: v3.1
  5. Release: 0vl8
  6. Epoch: 1
  7. License: BSD
  8. Group: User Interface/X
  9. Source: ftp://ftp.sra.co.jp/pub/x11/kinput2/kinput2-v3.1.tar.gz
  10. Patch0: kinput2-v3.1-beta4.conf.patch
  11. Patch1: kinput2-v3-nn.patch
  12. Patch2: kinput2.ppc.patch
  13. # keybind patches from plamo.
  14. Patch5: kinput2-v3.1-canna-keybind.patch
  15. Patch6: kinput2-v3.1-canna-keybind2.patch
  16. Patch10: kinput2-v3.1-app-defaults.patch
  17. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  18. Requires: libcanna >= 3.6p3-0vl5 , libwnn6
  19. BuildRequires: libcanna >= 3.6p3-0vl5 , Canna-devel >= 3.6p3-0vl5
  20. BuildRequires: libwnn6-devel
  21. Distribution: Vine Linux
  22. Vendor: Project Vine
  23. Packager: Daisuke SUZUKI <daisuke@linux.or.jp>
  24. %description
  25. Kinput2 is an input server for X11 applications that want Japanese
  26. text input.
  27. A client that wants kana-kanji conversion service for Japanese text
  28. sends a request to kinput2. Kinput2 receives the request, does
  29. kana-kanji conversion, and sends the converted text back to the
  30. client.
  31. %description -l ja
  32. Kinput2 は日本語テキスト入力を必要とする X11 アプリケーションのための
  33. 入力サーバーです。
  34. 日本語テキストにかな漢字変換が必要なクライアントは kinput2 にリクエスト
  35. を送信します。Kinput2 はそのリクエストを受け取り、かな漢字変換をして、
  36. クライアントに変換されたテキストを送信します。
  37. %prep
  38. %setup -q -n kinput2-v3.1
  39. %patch0 -p1
  40. %patch1 -p1
  41. %ifarch ppc
  42. %patch2 -p1
  43. %endif
  44. %patch5 -p1
  45. %patch6 -p1
  46. %patch10 -p1 -b .vine
  47. %build
  48. xmkmf -a
  49. make
  50. %install
  51. rm -rf $RPM_BUILD_ROOT
  52. make DESTDIR="$RPM_BUILD_ROOT" install
  53. make DESTDIR="$RPM_BUILD_ROOT" install.man
  54. gzip -9 $RPM_BUILD_ROOT/usr/X11R6/man/man1/kinput2.1x
  55. mkdir -p $RPM_BUILD_ROOT/etc/X11/im
  56. cat <<END1 > $RPM_BUILD_ROOT/etc/X11/im/Canna
  57. Name=Canna/kinput2
  58. IM_Host=localhost
  59. # Check ~/.im_host
  60. if [ -f \$HOME/.im_host ]; then
  61. IM_Host=`awk -F: '{print \$1}' \$HOME/.im_host`
  62. fi
  63. IM_EXEC="kinput2 -canna -cannaserver \$IM_Host"
  64. XMODIFIERS=@im=kinput2
  65. export IM_EXEC XMODIFIERS
  66. END1
  67. cat <<END2 > $RPM_BUILD_ROOT/etc/X11/im/FreeWnn-kinput2
  68. Name=FreeWnn/kinput2
  69. IM_Host=localhost
  70. # Check ~/.im_host
  71. if [ -f \$HOME/.im_host ]; then
  72. IM_Host=`awk -F: '{print \$1}' $HOME/.im_host`
  73. fi
  74. IM_EXEC="kinput2 -wnn -jserver \$IM_Host -wnnenvrc4 /var/lib/wnn/ja_JP/wnnenvrc"
  75. XMODIFIERS=@im=kinput2
  76. export IM_EXEC XMODIFIERS
  77. END2
  78. cat <<END3 > $RPM_BUILD_ROOT/etc/X11/im/Wnn6-kinput2
  79. Name=Wnn6/kinput2
  80. IM_Host=localhost
  81. # Check ~/.im_host
  82. if [ -f \$HOME/.im_host ]; then
  83. IM_Host=`awk -F: '{print \$1}' $HOME/.im_host`
  84. fi
  85. if [ -f /usr/local/OMRONWnn6/wnn6linux/ja_JP/wnnenvrc ]; then
  86. WNNENVRC=/usr/local/OMRONWnn6/wnn6linux/ja_JP/wnnenvrc
  87. elif [ -f /etc/wnn6/ja_JP/wnnenvrc ]; then
  88. WNNENVRC=/etc/wnn6/ja_JP/wnnenvrc
  89. else
  90. WNNENVRC=""
  91. fi
  92. if [ "$WNNENVRC" = "" ]; then
  93. IM_EXEC="kinput2 -wnn -jserver \$IM_Host"
  94. else
  95. IM_EXEC="kinput2 -wnn -jserver \$IM_Host -wnnenvrc6 \$WNNENVRC"
  96. fi
  97. XMODIFIERS=@im=kinput2
  98. export IM_EXEC XMODIFIERS
  99. END3
  100. cat <<END4 > $RPM_BUILD_ROOT/etc/X11/im/Wnn7-kinput2
  101. Name=Wnn7/kinput2
  102. IM_Host=localhost
  103. # Check ~/.im_host
  104. if [ -f \$HOME/.im_host ]; then
  105. IM_Host=`awk -F: '{print \$1}' $HOME/.im_host`
  106. fi
  107. if [ -f /usr/lib/wnn7/ja_JP/jserverrc ]; then
  108. WNNENVRC=/usr/lib/wnn7/ja_JP/jserverrc
  109. elif [ -f /etc/wnn6/ja_JP/wnnenvrc ]; then
  110. WNNENVRC=/etc/wnn6/ja_JP/wnnenvrc
  111. else
  112. WNNENVRC=""
  113. fi
  114. if [ "$WNNENVRC" = "" ]; then
  115. IM_EXEC="kinput2 -wnn -jserver \$IM_Host"
  116. else
  117. IM_EXEC="kinput2 -wnn -jserver \$IM_Host -wnnenvrc6 \$WNNENVRC"
  118. fi
  119. XMODIFIERS=@im=kinput2
  120. export IM_EXEC XMODIFIERS
  121. END4
  122. %clean
  123. rm -rf $RPM_BUILD_ROOT
  124. %files
  125. %defattr(-,root,root)
  126. %doc README NEWS
  127. %doc doc
  128. %{_prefix}/X11R6/bin/kinput2
  129. %{_prefix}/X11R6/man/man1/kinput2.1x.gz
  130. %config %{_sysconfdir}/X11/im/*
  131. %config %{_sysconfdir}/kinput2/
  132. %config %{_prefix}/X11R6/lib/X11/app-defaults/Kinput2
  133. %changelog
  134. * Sat Jul 8 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> v3.1-0vl8
  135. - rebuilt
  136. - s/Copyright/License/
  137. - s/Serial/Epoch/
  138. * Mon Sep 19 2005 Daisuke SUZUKI <daisuke@linux.or.jp> v3.1-0vl7
  139. - rebuild for VineSeed
  140. * Mon Sep 19 2005 Daisuke SUZUKI <daisuke@linux.or.jp> v3.1-0vl7
  141. - rebuild for VineSeed
  142. * Sun Sep 4 2005 Daisuke SUZUKI <daisuke@linux.or.jp> v3.1-0vl6
  143. - fixed Kinput2.ad to use Zenkaku_Hankaku for Conversion*Keys
  144. instead of Hankaku_Zenkaku
  145. - fix more Lock/Mod2/Mod5/Shift problems
  146. * Mon Jul 26 2004 Daisuke SUZUKI <daisuke@linux.or.jp> v3.1-0vl5
  147. - update patch10 to fix Lock/Mod2/Mod5 problem in ConversionEndKeys
  148. (FIXME: this would be fixed in source instead of X's resources)
  149. * Wed Feb 04 2004 Daisuke SUZUKI <daisuke@linux.or.jp> v3.1-0vl4
  150. - add patch5,6 from plamo
  151. - merged patch3,4 as patch10
  152. - add "Kanji" key to ConversionStartKeys
  153. * Sat Jun 07 2003 Daisuke SUZUKI <daisuke@linux.or.jp> v3.1-0vl3
  154. - add Patch4 to make gnome2 stable.
  155. * Fri Jan 10 2003 MATSUBAYASHI Kohji <shaolin@vinelinux.org> v3.1-0vl2
  156. - Requires: Canna is too excessive - modified to Requires: libcanna
  157. * Tue Oct 08 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> v3.1-0vl1
  158. - updated to the newest upstream release v3.1
  159. * Wed Sep 25 2002 Daisuke SUZUKI <daisuke@linux.or.jp> v3.1-0vl0.beta4.3
  160. - add Serial tag for upgrade :-(
  161. - remove
  162. * Wed Sep 25 2002 Daisuke SUZUKI <daisuke@linux.or.jp> v3.1-0vl0.beta4.2
  163. - add patch3 to change keybind for wnn4 (use ccdef.kinput2.egg)
  164. * Fri Aug 30 2002 Daisuke SUZUKI <daisuke@linux.or.jp> v3.1-0vl0.beta4.1
  165. - new upstream release v3.1-beta4
  166. * Wed May 30 2001 MATSUBAYASHI Kohji <shaolin@vinelinux.org> v3release-12
  167. - added ppc.patch (Patch2)
  168. * Wed May 30 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org>
  169. - v3release-11
  170. - rebuilt for VineSeed
  171. * Fri Jan 26 2001 Daisuke SUZUKI <daisuke@linux.or.jp> kinput2-v3release-10
  172. - Remove disable_overthespot patch
  173. * Thu Jan 18 2001 Daisuke SUZUKI <daisuke@linux.or.jp> kinput2-v3release-9hancom
  174. - XXX Fixme: Remove disable_overthespot patch for HancomWord
  175. * Thu Aug 8 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
  176. - XXX: added temprary disable_overthespot patch for netscape stability.
  177. * Wed Jan 5 2000 Jun Nishii <jun@vinelinux.org>
  178. - change group
  179. * Thu Nov 23 1999 Norihito Ohmori <ohmori@flatout.org>
  180. - Modified for Vine Linux
  181. * Thu Nov 18 1999 Norihito Ohmori <nono@kondara.org>
  182. - add NEWS in %doc
  183. - change Copyright
  184. - add Require: and BuildPreReq: tag
  185. - use dynamic link library for Wnn6
  186. * Mon Oct 25 1999 Jun NISHII <jun@vinelinux.org>
  187. - added defattr
  188. * Thu Oct 14 1999 Jun NISHII <jun@vinelinux.org>
  189. - build for Vine-1.9
  190. * Thu Aug 12 1999 Norihito Ohmori <ohmori@flatout.org>
  191. - change conversion from nn -> n.
  192. * Wed Jul 8 1999 Norihito Ohmori <ohmori@flatout.org>
  193. - version up to kinpu2v3
  194. - support both Canna and Wnn6
  195. * Mon Jan 18 1999 ZUKERAN, shin <shin@ryukyu.ad.jp>
  196. - Group changed: Japanese/X11 -> X11/Applications
  197. - Version up to kinput2-v2-fix5-alpha5