kterm-vl.spec 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327
  1. %define orgname kterm
  2. # if you want to make kterm_plus version,
  3. # uncomment below line, or rpm --define plus:1
  4. # % define plus 1
  5. %define name %{orgname}%{?plus:_plus}
  6. Summary: A Kanji (Japanese character set) terminal emulator for X.%{?plus:(Enhanced)}
  7. Summary(ja): 日本語の表示が可能な X 上のターミナルソフト%{?plus:(拡張版)}
  8. Name: %{name}
  9. Version: 6.2.0
  10. Release: 42%{?_dist_release}
  11. License: X, distributable
  12. Group: User Interface/Desktops
  13. #Source: ftp://ftp.sunet.se/pub/X11/R6contrib/applications/kterm-6.2.0.tar.gz
  14. Source: kterm-6.2.0.tar.bz2
  15. Source1: kterm.termtypes.tgz
  16. Source2: kterm.wmconfig
  17. Source3: KTerm.ad
  18. Source4: KTerm-ja.ad
  19. Source5: README.rightscrlbar
  20. Patch0: kterm-6.2.0-kbd.patch.bz2
  21. Patch1: kterm-6.2.0-glibc.patch.bz2
  22. Patch2: kterm-6.2.0-utmp98.patch.bz2
  23. Patch3: kterm-debian.patch.bz2
  24. Patch4: kterm-%{version}.envvars.patch.bz2
  25. Patch5: kterm-6.2.0-xmodifiers.patch
  26. Patch6: kterm-6.2.0-ia64.patch
  27. Patch7: kterm-6.2.0-malloc.patch
  28. # VinePatch
  29. Patch20: kterm-6.2.0-16colors.diff
  30. Patch21: kterm-6.2.0-pje.diff
  31. Patch22: kterm-6.2.0-glibc.pje.patch
  32. Patch23: kterm-6.2.0.ext02.patch
  33. Patch24: http://phe.phyas.aichi-edu.ac.jp/~cyamauch/arch/kterm-6.2.0-rightbar.patch
  34. # based on kterm3d-6.2.0-wp1-DND.patch (VinePlus2.1 kterm-6.2.0_3D)
  35. %{?plus:Patch50: kterm-6.2.0-xaw3d.patch}
  36. %{?plus:Patch51: kterm-6.2.0-DnD.patch}
  37. # based on http://delegate.uec.ac.jp:8081/club/mma/%7Etakkun/fun/handling/kterm-6.2.0-wp-BGP-20000423-beta.patch.gz
  38. # see http://delegate.uec.ac.jp:8081/club/mma/~takkun/fun/handling/wallpaper/kterm.html
  39. %{?plus:Patch52: kterm-6.2.0-wp-BGP-20000423-beta-vine.patch}
  40. #Requires: /usr/sbin/utempter
  41. Requires: utempter
  42. BuildRequires: ncurses-devel
  43. BuildRequires: libX11-devel, libICE-devel, libSM-devel, libXext-devel
  44. BuildRequires: libXmu-devel, libXpm-devel, libXt-devel
  45. BuildRequires: desktop-file-utils
  46. BuildRequires: libutempter-devel
  47. %{!?plus:BuildPrereq: libXaw-devel >= 1.0.5}
  48. %{?plus:Obsoletes: kterm_3D}
  49. %{?plus:BuildPrereq: Xaw3d-devel, imlib-devel}
  50. %{?plus:Requires: Xaw3d, imlib}
  51. %{?plus:Provides: kterm}
  52. Distribution: Vine Linux
  53. Vendor: Project Vine
  54. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  55. %define plusdesc %{?plus:This package has additional features - Xaw3D scrollbar color, OffiX DnD and WallPaper.}
  56. %define plusdescja %{?plus:また、Xaw3D による立体化、OffiX DnD、壁紙指定の拡張がされています. }
  57. %description
  58. Kterm is an X11 terminal emulator that can handle multi-lingual text.
  59. This release is based on xterm of X11R6.1.
  60. This binary is patched with xterm security patch and 16 colors patch.
  61. %{plusdesc}
  62. %description -l ja
  63. 日本語の表示が可能な X 上のターミナルソフトです. X の標準ターミナルソ
  64. フト xterm に日本語を取り扱う機能が付加されています. xterm の上位互換
  65. となっており, オプションの設定や操作方法は xterm とほとんど同じです.
  66. このパッケージには xterm セキュリティーパッチと16 色パッチが当たってい
  67. ます.
  68. %{plusdescja}
  69. ドキュメントは man kterm および man xterm を参考にしてください.
  70. %prep
  71. rm -rf %{buildroot}
  72. %setup -a 1 -n %{orgname}-%{version}
  73. cp %{SOURCE5} .
  74. %patch0 -p1 -b .kbd
  75. %patch1 -p1 -b .glibc
  76. %patch2 -p1 -b .utempter
  77. %patch3 -p1 -b .debian
  78. %patch4 -p1 -b .envvars
  79. # this patch is very very ad hoc.
  80. # when XMODIFIERS is inappropriate value like @im=none for XIM,
  81. # if a problem kterm crashes will be fixed, this patch doesn't apply.
  82. %patch5 -p1 -b .xmodifiers
  83. # ia64 fix
  84. %patch6 -p1 -b .ia64
  85. %patch7 -p1 -b .malloc
  86. # 16 Colors Patch
  87. %patch20 -p1 -b .16color
  88. # PJE default Patch
  89. %patch21 -p1 -b .pje
  90. # for glibc-2.1
  91. #%patch22 -p1
  92. # resource for jisx0213-2000-1 jisx0213-2000-2 extension
  93. %patch23 -p1 -b .jisx0213
  94. # enable right scrollbar
  95. %patch24 -p1 -b .rithtscr
  96. # Xaw3D color patch
  97. %{?plus:%patch50 -p1 -b .xaw3d}
  98. # Offix DnD patch (on patch50)
  99. %{?plus:%patch51 -p1 -b .dnd}
  100. # WallPaper Background Imlib patch
  101. %{?plus:%patch52 -p1 -b .wpbgpimlib}
  102. rm -f wp-BGP-*.wpbgpimlib
  103. %build
  104. #PATH=/usr/X11R6/bin:$PATH
  105. xmkmf -a ; make
  106. %install
  107. rm -rf %{buildroot}
  108. make install DESTDIR=%{buildroot}
  109. make install.man DESTDIR=%{buildroot} MANPATH=%{_mandir}
  110. chmod 755 %{buildroot}%{_bindir}/kterm
  111. # Install config file for wmconfig
  112. install -d %{buildroot}/etc/X11/wmconfig
  113. install -m 0644 %{SOURCE2} \
  114. %{buildroot}/etc/X11/wmconfig/kterm
  115. # Install Resource file
  116. mkdir -p %{buildroot}%{_datadir}/X11/app-defaults
  117. rm -f %{buildroot}%{_datadir}/X11/app-defaults/KTerm*
  118. install -m 0444 %{SOURCE3} %{buildroot}%{_datadir}/X11/app-defaults/KTerm
  119. install -m 0444 %{SOURCE4} %{buildroot}%{_datadir}/X11/app-defaults/KTerm-ja
  120. # Modify Resource files for PPC
  121. %ifarch ppc
  122. ##(cd %{buildroot}/usr/X11R6/lib/X11/app-defaults; \
  123. ## grep -v EightBitInput KTerm > KTerm.new; \
  124. ## mv -f KTerm.new KTerm)
  125. ##(cd %{buildroot}/usr/X11R6/lib/X11/ja/app-defaults; \
  126. ## grep -v EightBitInput KTerm > KTerm.new; \
  127. ## mv -f KTerm.new KTerm)
  128. (
  129. cd %{buildroot}/usr/share/X11/app-defaults;
  130. grep -v EightBitInput KTerm > KTerm.new; mv -f KTerm.new KTerm;
  131. grep -v EightBitInput KTerm-ja > KTerm-ja.new; mv -f KTerm-ja.new KTerm-ja;
  132. )
  133. %endif
  134. # Install Japanese Manual
  135. mkdir -p %{buildroot}%{_mandir}/ja/man1
  136. nkf -e kterm.jman > %{buildroot}%{_mandir}/ja/man1/kterm.1x
  137. # gzip manuals
  138. #gzip ${RPM_BUILD_ROOT}/usr/X11R6/man/man1/kterm.1x
  139. #gzip ${RPM_BUILD_ROOT}/usr/X11R6/man/ja/man1/kterm.1x
  140. #rm -f %{buildroot}/etc/X11/app-defaults/KTerm
  141. #rm -f %{buildroot}/usr/lib/X11/app-defaults
  142. mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
  143. cat > $RPM_BUILD_ROOT%{_datadir}/applications/kterm.desktop <<EOF
  144. [Desktop Entry]
  145. Encoding=UTF-8
  146. Name=kterm
  147. Name[ja]=kterm 日本語端末
  148. Comment=Kanji Terminal
  149. Comment[ja]=日本語端末エミュレータ
  150. TryExec=kterm
  151. Exec=kterm
  152. Icon=kterm
  153. Terminal=false
  154. Type=Application
  155. Categories=Utility;TerminalEmulator;
  156. EOF
  157. chmod 0644 $RPM_BUILD_ROOT%{_datadir}/applications/kterm.desktop
  158. desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/kterm.desktop
  159. %post
  160. update-desktop-database %{_datadir}/applications
  161. %postun
  162. update-desktop-database %{_datadir}/applications
  163. %clean
  164. rm -rf $RPM_BUILD_ROOT
  165. %files
  166. %defattr(-,root,root)
  167. %doc README.kt README.rightscrlbar DEMO.kt.uu DEMO.xbm kterm.termcap kterm.terminfo
  168. %{?plus:%doc wp-BGP-*}
  169. %{_bindir}/kterm
  170. %{_sysconfdir}/X11/wmconfig/kterm
  171. %{_datadir}/X11/app-defaults/KTerm
  172. %{_datadir}/X11/app-defaults/KTerm-ja
  173. %{_mandir}/man1/kterm.1x*
  174. %{_mandir}/ja/man1/kterm.1x*
  175. %config %{_datadir}/applications/kterm.desktop
  176. %changelog
  177. * Sun Nov 09 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 6.2.0-42
  178. - rebuild with libXaw.so.7 (libXaw-1.0.5)
  179. - add BR: for xorg-x11 7.4
  180. * Sat Jun 14 2008 Shu KONNO <owa@bg.wakwak.com> 6.2.0-41vl5
  181. - applied new versioning policy and spec in utf-8
  182. - added BuildRequires: xorg-x11-devel desktop-file-utils
  183. - added %{_datadir}/applications/kterm.desktop
  184. * Thu Feb 09 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 6.2.0-40vl2
  185. - rebuilt
  186. * Sat Apr 03 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 6.2.0-40vl1
  187. - synced with fedora
  188. - fixed SOURCZE[34] for XOrg
  189. - modified ext02 patch
  190. * Tue Mar 16 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 6.2.0-14vl14
  191. - kterm-6.2.0-malloc.patch: applied to fix wrong prototype declaration
  192. for mallo.c. from
  193. * Wed Mar 10 2004 Akira TAGOH <tagoh@redhat.com> 6.2.0-40
  194. * Thu Aug 21 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 6.2.0-14vl13
  195. - rebuild with new toolchains
  196. - s/Copyright/License/
  197. * Sat Oct 05 2002 Shoji Matsumoto <shom@vinelinux.org> 6.2.0-14vl12
  198. - modify KTerm{,-ja}.ad to use openIm: on
  199. * Wed Apr 11 2001 Jun Nishii <jun@vinelinux.org> 6.2.0-14vl11
  200. - update rightscrbar patch (bug fix)
  201. * Wed Apr 11 2001 Jun Nishii <jun@vinelinux.org> 6.2.0-14vl10
  202. - put scrollbar on right side
  203. * Mon Mar 26 2001 Jun Nishii <jun@vinelinux.org> 6.2.0-14vl9
  204. - added rightscrbar.patch
  205. * Mon Mar 12 2001 Shoji Matsumoto <shom@vinelinux.org> 6.2.0-14vl8
  206. - add '_plus' operation
  207. 'rpm --define plus:1 -ba' makes 'kterm-plus' package.
  208. kterm_plus based on kterm-6.2.0_3D in VinePlus 2.1 and
  209. replaced with new wallpaper patch.
  210. * Thu Feb 15 2001 Tomoya TAKA <tomoya@olive.plala.or.jp>
  211. - 6.2.0-14vl7
  212. - fixed 'Requires'
  213. - use better macros (%%{buildroot}, %%{SOURCE2})
  214. * Thu Feb 15 2001 Kunio Murasawa <murasawa@marineroad.com>
  215. - 6.2.0-14vl6
  216. - added utemper patch
  217. - turn off suid bit for kterm
  218. * Fri Dec 22 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  219. - 6.2.0-14vl5
  220. - rebuilt with ncurses5
  221. * Fri Jul 21 2000 Jun Nishii <jun@vinelinux.org>
  222. - 6.2.0-14vl4
  223. - added wheel mouse setting
  224. - added Kterm.ad as a Source
  225. - use alias font for menu
  226. * Thu Jun 8 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
  227. - 6.2.0-14vl3
  228. - added ext02 patch for jisx213-2000-[1-2] extension.
  229. * Thu Jun 1 2000 Jun Nishii <jun@vinelinux.org>
  230. - 6.2.0-14vl2
  231. - move mans to ja from ja_JP.ujis
  232. * Mon Mar 13 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  233. - 6.2.0-14vl1
  234. - slight modifications of resource files for ppc archtecture
  235. (really only for ppc archtecture? or is this the appropriate solution?
  236. I don't even know... but it surely works well on PPC for now)
  237. * Fri Dec 24 1999 Jun Nishii <jun@vinelinux.org>
  238. - rel.14
  239. - change group
  240. * Sun Aug 22 1999 Jun Nishii <jun@flatout.org>
  241. - rel.13
  242. - scrollbar is true in default
  243. * Tue Mar 2 1999 MATSUMOTO Shoji <vine@flatout.org>
  244. - rel.10
  245. - default resource modified
  246. * Sun Feb 28 1999 Jun Nishii <jun@flatout.org>
  247. - rel.9
  248. - added a resource for ja for Vine
  249. * Thu Nov 12 1998 Jun Nishii <jun@flatout.org>
  250. - change header definitions in this spec file
  251. - added -l ja for Description and Summary
  252. * Tue Sep 29 1998 Jun Nishii <jun@flatout.org>
  253. - add patch for glibc2 and wmconfig
  254. * Wed Sep 16 1998 MATSUMOTO Shoji <pje@linux.or.jp>
  255. - for glibc1