less-vl.spec 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  1. %define version 382
  2. %define release 1%{?_dist_release}
  3. Summary: less (opposite of more) + ISO patch
  4. Summary(ja): 日本語対応高機能ページャ
  5. Name: less
  6. Version: %{version}
  7. Release: %{release}
  8. Group: Applications/Text
  9. License: distributable
  10. URL: http://www25.big.jp/~jam/less/
  11. Source: less-%{version}.tar.bz2
  12. Source1: less-profile.tar.gz
  13. Source2: lesspipe.sh
  14. Source3: less-354-hlp-ja.tgz
  15. # jless
  16. Patch0: http://www25.big.jp/~jam/less/less-382-iso258.patch.gz
  17. Patch1: http://www25.big.jp/~jam/less/less-382-iso258-259.patch.gz
  18. Patch2: http://www25.big.jp/~jam/less/less-382-iso259-260.patch.gz
  19. Patch3: http://www25.big.jp/~jam/less/less-382-iso260-261.patch.gz
  20. Patch4: http://www25.big.jp/~jam/less/less-382-iso261-262.patch.gz
  21. # some patches for Vine
  22. # include help in ftp://sakura.sfc.wide.ad.jp/pub/unix/tool/less/less-354-hlp-ja.tgz
  23. #Patch2: less-354-ja_nls.patch
  24. #Patch3: less-354-ja_nls-modify.patch
  25. Provides: pager
  26. Requires(post,preun): alternatives
  27. Requires: gzip, bzip2
  28. Requires: file >= 3.33
  29. Buildroot: %{_tmppath}/%{name}-root
  30. Vendor: Project Vine
  31. Distribution: Vine Linux
  32. %description
  33. This is a more advanced more command with Japanese support by iso259.
  34. patch.
  35. EUC/JIS/Shift-JIS are automatically distinguished. The can set the
  36. Kanji code with the environment variable JLESSCHARSET. Also you can
  37. automatically open gzip or compress files and show them with less.
  38. %description -l ja
  39. more よりも高機能なページャ less を iso259 パッチで日本語対応にしたも
  40. のです. EUC/JIS/Shift-JIS を自動的に判別し, 環境変数JLESSCHARSET で指
  41. 定された任意の漢字コードで表示します.
  42. 環境変数 LESSOPEN を "|lesspipe.sh %s" に設定することによって, gzip や
  43. compress で圧縮されたファイルを自動的に展開して表示することもできます.
  44. %prep
  45. %setup -q -a 1
  46. # jless
  47. %patch0 -p1
  48. %patch1 -p1
  49. #%patch2 -p1
  50. #%patch3 -p1
  51. #%patch4 -p1
  52. touch configure
  53. %build
  54. CFLAGS=-D_FILE_OFFSET_BITS=64
  55. %configure --enable-nls
  56. make
  57. %install
  58. rm -rf %{buildroot}
  59. %makeinstall
  60. install -p -m 755 %{_sourcedir}/lesspipe.sh %{buildroot}%{_bindir}
  61. mkdir -p %{buildroot}%{_sysconfdir}/profile.d/
  62. install -p -m 755 less-profile/less* %{buildroot}%{_sysconfdir}/profile.d/
  63. %clean
  64. rm -rf %{buildroot}
  65. %post
  66. %{_syssbindir}/update-alternatives --install %{_bindir}/pager pager %{_bindir}/less 50
  67. %preun
  68. if [ "$1" = "0" ]; then
  69. %{_syssbindir}/update-alternatives --remove pager %{_bindir}/less
  70. fi
  71. %files
  72. %defattr(-,root,root)
  73. %doc COPYING LICENSE NEWS README README.iso README.iso.jp
  74. %config %{_sysconfdir}/profile.d/*
  75. %{_bindir}/less
  76. %{_bindir}/lesskey
  77. %{_bindir}/lessecho
  78. %{_bindir}/lesspipe.sh
  79. %{_mandir}/man1/less.1*
  80. %{_mandir}/man1/lesskey.1*
  81. %changelog
  82. * Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 382-1vl5
  83. - applied new versioning policy, spec in utf-8
  84. * Fri Apr 13 2007 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 382-0vl6
  85. - add Provides: pager
  86. - add Requires(post,preun): alternatives
  87. * Mon Apr 09 2007 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 382-0vl5
  88. - add update-alternatives: pager in %%post, %%preun scriptlet
  89. * Thu Nov 09 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 382-0vl4
  90. - revert to 382-iso259 ([VineSeed:12552])
  91. * Wed Nov 08 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 382-0vl3
  92. - update jless patch to 382-iso262
  93. - update description (iso254 to iso262)
  94. * Sun Nov 05 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 382-0vl2
  95. - change log was missing in 382-0vl1
  96. * Sun Nov 05 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 382-0vl1
  97. - new upstream release
  98. - update jless patch to 382-iso258
  99. * Tue Dec 14 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 358-0vl10
  100. - set _FILE_OFFSET_BITS 64
  101. * Sat May 17 2003 KAZUKI SHIMURA <rito@pos.to> 358-0vl9
  102. - rebuild with new toolchain
  103. - fix description (iso242 to iso254)
  104. * Thu Apr 25 2002 Kosaku Nagasaka <nagasaka@math.tsukuba.ac.jp>
  105. - 358-0vl8: temporary fix: consistency of the nls-patch and (J)LESSCHARSET
  106. * Sun Mar 31 2002 NISHIMURA Daisuke <nishi@graco.c.u-tokyo.ac.jp>
  107. - 358-0vl7: fix lesspipe.sh for file names with spaces
  108. * Wed Aug 22 2001 Toru Sagami <sagami@vinelinux.org>
  109. - 358-0vl6: rebuild on ncurses-5.2 (as asked to do so)
  110. * Sun Aug 19 2001 Toru Sagami <sagami@vinelinux.org>
  111. - 358-0vl5: added more documents (COPYING, LICENSE)
  112. - fix lesspipe.sh again and tweak lesspipe.csh a bit with %%config marked
  113. * Wed Jun 27 2001 Jun Nishii <jun@vinelinux.org> 358-0vl4
  114. - fix lesspipe.sh
  115. - do not REset LESSOPEN in profile.d/less.sh
  116. * Sat Jan 13 2001 Lisa Sagami <czs14350@mb.infoweb.ne.jp>
  117. - 358-0vl3
  118. - fixed lesspipe.sh
  119. * Fri Jan 12 2001 Lisa Sagami <czs14350@mb.infoweb.ne.jp>
  120. - 358-0vl2
  121. - added bzip2/lha support to lesspipe.sh
  122. - minor spec fixes
  123. * Thu Jan 11 2001 Jun Nishii <jun@vinelinux.org>
  124. - 358-0vl1
  125. - more fix of lesspipe.sh
  126. - requires file >= 3.33
  127. - more macros in spec
  128. * Thu Jan 11 2001 Jun Nishii <jun@vinelinux.org>
  129. - 354-0vl5
  130. - modify lesspipe.sh to adapt to file-3.33 and to view gzipped nroff file
  131. * Tue Dec 26 2000 Tomoya TAKA <tomoya@olive.plala.or.jp> 354-0vl3
  132. - some fixes to handle man pages correctly
  133. * Sun Nov 12 2000 MACHINO, Satoshi <machino@vinelinux.org> 354-0vl2
  134. - build on gcc-2.95.3
  135. - partially used rpmmacros
  136. * Wed Jul 5 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
  137. - added Sagam's patch to fix parse ctrl code for Japanese. Very thanks Sagami-san.
  138. * Wed Jun 21 2000 Jun Nishii <jun@vinelinux.org>
  139. - less-354-0vl1
  140. * Mon Jan 17 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
  141. - updated ja_nls patch for memory leaks.
  142. * Mon Jan 10 2000 Jun Nishii <jun@vinelinux.org>
  143. - rel.7 (5vl2 makes harm for update from Vine-1.1)
  144. * Fri Jan 7 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
  145. - rel 5vl2
  146. - added ja_nls and bzip2 patches
  147. - added Requires for bzip2 and gzip.
  148. * Fri Jan 7 2000 Jun Nishii <jun@vinelinux.org>
  149. - rel.6
  150. - change group
  151. * Sun Sep 6 1999 Jun NISHII <jun@flatout.org>
  152. - rel.5
  153. - remove LESS=-r to avoid somed troubles
  154. * Sat Aug 21 1999 Jun NISHII <jun@flatout.org>
  155. - rel.4
  156. - change groff path in lesspipe.sh to adapt groff-1.11
  157. - added /etc/profile.d/less{.,.csh}
  158. * Thu Jun 24 1999 Norihito Ohmori <ohmori@flatout.org>
  159. - rebuild for glibc-2.1
  160. * Mon Feb 15 1999 Jun NISHII <jun@flatout.org>
  161. - rel.2
  162. - added preprocess for bzip2ed file
  163. - added Japanese summary
  164. * Wed Dec 2 1998 Jun NISHII <jun@flatout.org>
  165. - rename from less-332iso242-4 to less-332_jp-1
  166. - strip bins
  167. * Tue Oct 8 1998 Jun NISHII <jun@flatout.org>
  168. - release 4
  169. - modify header of spec file
  170. * Sat Sep 26 1998 Jun NISHII <jun@flatout.org>
  171. - release 3
  172. - added lesspipe.sh