kon2-vl.spec 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. Summary: KON - Kanji ON Linux console
  2. Summary(ja): KON - 漢字コンソール
  3. Name: kon2
  4. Version: 0.3.9b
  5. Release: 0vl9
  6. Group: Applications/System
  7. Copyright: distributable
  8. Source0: ftp://ftp.linet.gr.jp/pub/KON/%{name}-%{version}.tar.gz
  9. Source1: ftp.linux.or.jp/pub/PJE/PJE-0.1beta/tgz/install/konfnt.tgz
  10. Patch: kon2-0.3.9-config.patch
  11. # patches for vine
  12. Patch100: kon2-0.3.9b-vine_config.patch
  13. Patch104: kon2-0.3.8-exec.diff
  14. #Patch105: kon2-0.3.8-tty.patch
  15. #Patch106: kon2-0.3.8-bufover.patch
  16. Patch107: kon2-0.3.9b-tty.patch
  17. Patch108: kon2-0.3.9b-bufover-fix.patch
  18. Patch109: kon2-0.3.9b-racecondition-fix3.patch
  19. Prereq: /usr/bin/tic
  20. ExclusiveArch: %{ix86}
  21. Buildroot: %{_tmppath}/%{name}-%{version}-root
  22. Vendor: Project Vine
  23. Distribution: Vine Linux
  24. Packager: ISHIKAWA Mutsumi <ishikawa@linux.or.jp>
  25. %description
  26. kon is a Kanji emulator for console
  27. %description -l ja
  28. KON は Linux のコンソール画面上で漢字を表示するためのプログラムです。
  29. 表示方式は DOS/V, minix-V, 386BSD KanjiHand と(恐らく)同じですが、
  30. minix-V や KanjiHand と異なる点が一つあります。KON では疑似端末を使っ
  31. てコンソール出力をフックし、VGA に展開しています。したがってカーネル
  32. ソースにパッチを当てる必要はありませんが、minix-V や KanjiHand のよう
  33. な拡張機能は期待できません。
  34. %package fonts
  35. Summary: Fonts for KON
  36. Summary(ja): KON用フォント
  37. Group: Applications/System
  38. %description fonts
  39. This package includes some fonts for Kon.
  40. They are supplied with public domain.
  41. %description fonts -l ja
  42. KON 用のフォントです。Public Domain で提供されています。
  43. %prep
  44. %setup -q
  45. #%patch -p1
  46. %patch100 -p1 -b .config
  47. %patch104 -p0 -b .exec
  48. #%patch105 -p1 -b .tty
  49. #%patch106 -p1 -b .bufover
  50. %patch107 -p1 -b .tty
  51. %patch108 -p1 -b .fld
  52. %patch109 -p1 -b .race
  53. %setup -D -a 1 -T
  54. find . -name '*.orig' -exec rm -f {} \;
  55. %build
  56. make
  57. %install
  58. rm -rf $RPM_BUILD_ROOT
  59. mkdir -p $RPM_BUILD_ROOT/usr/bin
  60. mkdir -p $RPM_BUILD_ROOT%{_mandir}/ja/man1
  61. mkdir -p $RPM_BUILD_ROOT/usr/share/fonts
  62. mkdir -p $RPM_BUILD_ROOT/etc
  63. make install TOPDIR=$RPM_BUILD_ROOT MANDIR=$RPM_BUILD_ROOT%{_mandir}/ja/man1
  64. install -m 0444 usr/share/fonts/pubfont.a.gz $RPM_BUILD_ROOT/usr/share/fonts
  65. install -m 0444 usr/share/fonts/pubfont.k.gz $RPM_BUILD_ROOT/usr/share/fonts
  66. chmod 644 $RPM_BUILD_ROOT/etc/kon.cfg
  67. %clean
  68. rm -rf $RPM_BUILD_ROOT
  69. %post
  70. if [ ! -f /usr/share/terminfo/k/kon ];then
  71. tic /usr/doc/kon2-%{PACKAGE_VERSION}/terminfo.kon
  72. fi
  73. if [ `grep -c '^kon|kanji on console' /etc/termcap` -eq 0 ];then
  74. cat /usr/doc/kon2-%{PACKAGE_VERSION}/termcap.kon >> /etc/termcap
  75. fi
  76. %files
  77. %defattr(-,root,root)
  78. %doc doc/* terminfo.kon termcap.kon
  79. %config /etc/kon.cfg
  80. %attr (4755, root, root) /usr/bin/kon
  81. %attr (0755, root, root) /usr/bin/fld
  82. /usr/bin/swkon
  83. %attr (4755, root, root) /usr/bin/newvc
  84. %{_mandir}/ja/man1/kon.1*
  85. %files fonts
  86. %defattr(-,root,root)
  87. %dir /usr/share/fonts/
  88. /usr/share/fonts/pubfont.a.gz
  89. /usr/share/fonts/pubfont.k.gz
  90. %changelog
  91. * Thu Mar 27 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.prg> 0.3.9b-0vl9
  92. - rebuild
  93. * Wed Feb 20 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 0.3.9b-0vl8
  94. - rebuild
  95. * Fri Jun 01 2001 <sagami@vinelinux.org>
  96. - 0.3.9b-0vl7: install manpage into %%{_mandir}
  97. - ExclusiveArch: %%{ix86}
  98. * Thu Jul 20 2000 ISHIKAWA Mutsumi <ishikawa@linux.or.jp>
  99. - missing setgid(getgid()), setuid(getuid()) before shell
  100. fork(), now fixed.
  101. * Wed Jul 19 2000 ISHIKAWA Mutsumi <ishikawa@linux.or.jp>
  102. - race condition bug fix was incorrect, so really fixed.
  103. * Mon Jul 10 2000 Jun Nishii <jun@vinelinux.org>
  104. - fix wrong subpackage name (kon2-font -> kon2-fonts)
  105. * Sun Jul 2 2000 ISHIKAWA Mutsumi <ishikawa@linux.or.jp>
  106. - change from kon2-0.3.9-vine_config.patch to
  107. kon2-0.3.9b-vine_config.patch to rebuild collectly
  108. * Sun Jul 2 2000 ISHIKAWA Mutsumi <ishikawa@linux.or.jp>
  109. - Font loading can not work collectly in some environment.
  110. It is fld and kon race condition bug. Now fixed.
  111. * Wed Jun 22 2000 ISHIKAWA Mutsumi <ishikawa@linux.or.jp>
  112. - updated to 0.3.9b
  113. - fld security fix and more buffer overflow fix patch (writen by
  114. Fumitoshi UKAI <ukai@debian.or.jp>) added
  115. - remove Vine's bufover patch because of fixed upstream.
  116. - replace Vine's tty patch to be able to apply to 0.3.9b
  117. - drop suid root from /usr/bin/fld
  118. - rebuild on RedHat 6.2
  119. * Thu Jun 9 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
  120. - remake SPEC file from rawhide.
  121. - ja_JP.ujis -> ja
  122. - added Vine's patches: exec, tty, bufover
  123. * Thu Mar 23 2000 Chris Ding <cding@redhat.com>
  124. - fixed terminfo path miss
  125. * Wed Mar 22 2000 Chris Ding <cding@redhat.com>
  126. - updated to 0.3.9
  127. - ja_JP.ujis -> ja_JP.eucJP
  128. - added prereq tag
  129. - changed group
  130. * Mon Oct 18 1999 Matt Wilson <msw@redhat.com>
  131. - rebuilt for 6.1
  132. - patched makefile so that it doesn't use hardcoded path
  133. - added attr tags
  134. * Sat Nov 22 1997 Susumu Nagashige <nagasige@netlaputa.ne.jp>
  135. * Wed Feb 4 1998 Keiichi Matsuzaki <chaki@tkyosf1.phys.s.u-tokyo.ac.jp>
  136. - 2nd release