jvim-vl.spec 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. Summary: Japanized Vim-3.0
  2. Name: jvim
  3. Version: 3.0j2.1b
  4. Release: 0vl3
  5. Group: Applications/Editors
  6. License: freeware
  7. URL: http://hp.vector.co.jp/authors/VA003457/vim/
  8. Source0: http://hp.vector.co.jp/authors/VA003457/vim/vim3/orig/vim-3.0.tar.gz
  9. Source1: http://hp.vector.co.jp/authors/VA003457/vim/vim3/2.1b/jvim.2.1b.tar.gz
  10. Source2: jvim-alpha.sh
  11. Source3: jvim-alpha.csh
  12. Patch0: jvim-3.0j2.1.vine.patch
  13. Patch1: jvim-3.0j2.1.kanjifix.patch
  14. Obsoletes: nvi <= 3.0j2.1a-0vl1
  15. Conflicts: vim-tiny < 6.0.68-0vl1, nvi <= 1.79_jp-18vl1
  16. BuildRoot: %{_tmppath}/%{name}-root
  17. BuildPreReq: Canna-devel, ncurses-devel
  18. PreReq: alternatives
  19. %description
  20. JVim 3.0 (Japanized Vim) is a Japanized editor based on one of
  21. the vi clone editors named VIM (Vi IMproved).
  22. %description -l ja
  23. JVim 3.0 (Japanized Vim) は、 vi クローンのエディタ Vim 3.0 を
  24. 日本語化したものです。
  25. %prep
  26. %setup -n vim -q
  27. tar zxfv %{SOURCE1}
  28. patch -p0 -s < jvim.diff
  29. %patch0 -p1
  30. %patch1 -p1
  31. %build
  32. make -C src CC="gcc %{optflags} -I/usr/include/ncurses" -f makjunix.mak
  33. %install
  34. rm -rf %{buildroot}
  35. make -C src TARGETDIR=%{buildroot} MANLOC=%{_mandir}/man1 -f makjunix.mak install
  36. install -p -m 644 doc/vim.hlp %{buildroot}%{_libdir}/jvim
  37. # make link for vi
  38. pushd %{buildroot}
  39. mv -f ./bin/vim ./bin/jvim
  40. # ln -sf vi ./bin/rvi
  41. # ln -sf vi ./bin/rview
  42. popd
  43. # make symbolic link whether or not to handle mampage compress :-)
  44. pushd %{buildroot}%{_mandir}/man1
  45. mv -f vim.1 jvim.1
  46. popd
  47. mkdir -p %{buildroot}%{_sysconfdir}
  48. cat > %{buildroot}%{_sysconfdir}/vimrc << EOF
  49. set fepctrl " fepctrl for Canna
  50. "set fepkey=\@
  51. set nobackup
  52. set keywordprg=man
  53. "set keywordprg=jman
  54. set ruler
  55. "set compatible
  56. set nocompatible " Use Vim defaults (much better!)
  57. "set notitle
  58. "set showmode
  59. "set showcmd
  60. "set ai " set autoindent
  61. set noexpandtab
  62. "set expandtab
  63. "set tabstop=4
  64. "set shiftwidth=4
  65. "set scrolloff=4
  66. "set winheight=12
  67. "set novisualbell
  68. "set helpfile=%{_libdir}/jvim/vim.hlp " English help
  69. map gg 1G
  70. EOF
  71. # install /etc/profile.d/jvim.{sh,csh} to avoid a problem on alpha
  72. %ifarch alpha
  73. mkdir -p %{buildroot}%{_sysconfdir}/profile.d
  74. install -p -m 755 %SOURCE2 %{buildroot}%{_sysconfdir}/profile.d/jvim.sh
  75. install -p -m 755 %SOURCE3 %{buildroot}%{_sysconfdir}/profile.d/jvim.csh
  76. %endif
  77. %post
  78. update-alternatives \
  79. --install /bin/vi vi /bin/jvim 15 \
  80. --slave /bin/ex ex /bin/jvim \
  81. --slave /bin/rview rview /bin/jvim \
  82. --slave /bin/rvim rvim /bin/jvim \
  83. --slave /bin/view view /bin/jvim
  84. %triggerpostun -- jvim < 3.0j2.1a-0vl2
  85. update-alternatives --auto vi
  86. %preun
  87. if [ "$1" = "0" ]
  88. then
  89. update-alternatives --remove vi /bin/jvim
  90. fi
  91. %clean
  92. rm -rf %{buildroot}
  93. %files
  94. %defattr(-,root,root)
  95. %doc doc doc.j
  96. %doc README credits.txt readme* todo uganda.txt
  97. %config %attr(644,root,root) %{_sysconfdir}/vimrc
  98. /bin/jvim
  99. %{_libdir}/jvim
  100. %{_mandir}/man1/*
  101. %ifarch alpha
  102. %{_sysconfdir}/profile.d/jvim*
  103. %endif
  104. %changelog
  105. * Sat Feb 21 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 3.0j2.1b-0vl3
  106. - rebuild
  107. * Fri Mar 14 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 3.0j2.1b-0vl2
  108. - rebuild with glibc-2.3.1-51vl2
  109. * Wed Dec 19 2001 Shoji Matsumoto <shom@vinelinux.org> 3.0j2.1a-0vl4
  110. - add patch1 (kanji filenames fix)
  111. * Wed Nov 07 2001 akira yamada <akira@vinelinux.org> 3.0j2.1a-0vl3
  112. - added triggerpostun for jvim (< 3.0j2.1a-0vl2).
  113. * Mon Nov 05 2001 akira yamada <akira@vinelinux.org> 3.0j2.1a-0vl2
  114. - alternatives for /bin/vi
  115. - applied -I/usr/include/ncurses for gcc.
  116. * Tue May 08 2001 <sagami@vinelinux.org>
  117. - 3.0j2.1a-0vl1: updated to Version 3.0-j2.1a
  118. * Wed Apr 18 2001 <sagami@vinelinux.org>
  119. - updated to jvim-3.0j2.1-0vl1
  120. * Mon Feb 05 2001 Lisa Sagami <czs14350@mb.infoweb.ne.jp>
  121. - eliminate vim synlink to avoid conflict with Vim-5.x
  122. - make it to be a static
  123. * Thu Jan 11 2001 Tomoya TAKA <tomoya@olive.plala.or.jp> 3.0j2.0a-0vl6
  124. - partially used rpmmacros
  125. - rebuild with ncurses >= 5.0
  126. * Thu Nov 16 2000 Tomoya TAKA <tomoya@olive.plala.or.jp>
  127. - 3.0j2.0a-0vl5
  128. - fixed /etc/profile.d/jvim.{sh,csh} for alpha
  129. * Fri Nov 3 2000 Tomoya TAKA <tomoya@olive.plala.or.jp>
  130. - 3.0j2.0a-0vl4
  131. - added /etc/profile.d/jvim.{sh,csh} to avoid 'handle keystrokes in batches'
  132. problem on alpha (see http://www.alphalinux.org/faq/FAQ-1.html#ss1.2 )
  133. * Thu Jul 27 2000 Lisa Sagami <czs14350@mb.infoweb.ne.jp>
  134. - correct COPYRIGHT
  135. * Tue Jul 25 2000 Lisa Sagami <czs14350@mb.infoweb.ne.jp>
  136. - create /bin/ex
  137. - Conflicts: nvi -> Obsoletes: nvi
  138. * Wed Jul 10 2000 Lisa Sagami <czs14350@nifty.ne.jp>
  139. - Jvim 2.0a
  140. - make /bin/vi for Vine 2.x
  141. - rewrite SPEC :-)
  142. * Wed Dec 08 1999 Lisa Sagami <czs14350@nifty.ne.jp>
  143. - Jvim 1.8a
  144. - based on LASER5 Linux 6.0 updates
  145. * Tue Oct 27 1999 Laser5 <develop@laser5.co.jp>
  146. - Patch0 URL Typo fixed
  147. * Mon Oct 18 1999 Laser5 <develop@laser5.co.jp>
  148. - for Laser5 Linux 6.X