less-vl.spec 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  1. Summary: A text file browser similar to more, but better
  2. Summary(ja): more よりも高機能な日本語対応ページャ
  3. Name: less
  4. Version: 436
  5. Release: 2%{?_dist_release}
  6. Group: Applications/Text
  7. License: GPLv3+
  8. URL: http://www.greenwoodsoftware.com/less/
  9. Source: http://www.greenwoodsoftware.com/less/%{name}-%{version}.tar.gz
  10. Source1: lesspipe.sh
  11. Source2: less.sh
  12. Source3: less.csh
  13. #Source3: less-354-hlp-ja.tgz
  14. Patch1: less-406-Foption.patch
  15. Patch4: less-394-time.patch
  16. Patch5: less-418-fsync.patch
  17. Patch6: less-436-manpage.patch
  18. Buildroot: %{_tmppath}/%{name}-%{version}-root
  19. BuildRequires: ncurses-devel
  20. BuildRequires: pcre-devel
  21. BuildRequires: autoconf automake libtool
  22. Requires(post,preun): alternatives
  23. Requires: gzip, bzip2
  24. Requires: file >= 3.33
  25. Provides: pager
  26. Vendor: Project Vine
  27. Distribution: Vine Linux
  28. %description
  29. The less utility is a text file browser that resembles more, but has
  30. more capabilities. Less allows you to move backwards in the file as
  31. well as forwards. Since less doesn't have to read the entire input file
  32. before it starts, less starts up more quickly than text editors (for
  33. example, vi).
  34. You should install less because it is a basic utility for viewing text
  35. files, and you'll use it frequently.
  36. %description -l ja
  37. less は more よりも高機能な日本語対応ページャです.less は起動時にテキスト
  38. ファイルを完全に読み込む必要がないので,vi などの テキストエディタに比べて
  39. 高速に起動することができます.
  40. 環境変数 LESSOPEN を "|lesspipe.sh %s" に設定することによって, gzip や
  41. compress で圧縮されたファイルを自動的に展開して表示することもできます.
  42. less はテキストファイルを表示するためによく使用する基本的なツールなので,
  43. インストールしておくべきでしょう.
  44. %prep
  45. %setup -q
  46. %patch1 -p1 -b .Foption
  47. %patch4 -p1 -b .time
  48. %patch5 -p1 -b .fsync
  49. %patch6 -p1 -b .manpage
  50. autoreconf
  51. chmod -R a+w *
  52. chmod 644 lessecho.c lesskey.c version.c LICENSE
  53. %build
  54. %configure --with-regex=pcre
  55. make CC="gcc $RPM_OPT_FLAGS -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 `pcre-config --cflags`" datadir=%{_docdir}
  56. %install
  57. rm -rf $RPM_BUILD_ROOT
  58. %makeinstall
  59. strip -R .comment $RPM_BUILD_ROOT/%{_bindir}/less
  60. mkdir -p $RPM_BUILD_ROOT/etc/profile.d
  61. install -p -c -m 755 %{SOURCE1} $RPM_BUILD_ROOT/%{_bindir}
  62. install -p -c -m 644 %{SOURCE2} $RPM_BUILD_ROOT/etc/profile.d
  63. install -p -c -m 644 %{SOURCE3} $RPM_BUILD_ROOT/etc/profile.d
  64. ls -la $RPM_BUILD_ROOT/etc/profile.d
  65. %clean
  66. rm -rf $RPM_BUILD_ROOT
  67. %post
  68. /sbin/update-alternatives --install %{_bindir}/pager pager %{_bindir}/less 50
  69. # fix broken symlink if it's there
  70. if [ ! -f %{_bindir}/pager ] ; then
  71. /sbin/update-alternatives --auto pager
  72. fi
  73. %preun
  74. if [ $1 -eq 0 ]; then
  75. /sbin/update-alternatives --remove pager %{_bindir}/less
  76. /sbin/update-alternatives --auto pager
  77. fi
  78. %files
  79. %defattr(-,root,root)
  80. %doc COPYING LICENSE NEWS README
  81. %config %{_sysconfdir}/profile.d/*
  82. %{_bindir}/less
  83. %{_bindir}/lesskey
  84. %{_bindir}/lessecho
  85. %{_bindir}/lesspipe.sh
  86. %{_mandir}/man1/less.1*
  87. %{_mandir}/man1/lesskey.1*
  88. %{_mandir}/man1/lessecho.1*
  89. %changelog
  90. * Sun Sep 19 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 436-2
  91. - updated japanese summary and description
  92. * Thu Jul 29 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 436-1
  93. - updated to 436
  94. * Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 382-1vl5
  95. - applied new versioning policy, spec in utf-8
  96. * Fri Apr 13 2007 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 382-0vl6
  97. - add Provides: pager
  98. - add Requires(post,preun): alternatives
  99. * Mon Apr 09 2007 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 382-0vl5
  100. - add update-alternatives: pager in %%post, %%preun scriptlet
  101. * Thu Nov 09 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 382-0vl4
  102. - revert to 382-iso259 ([VineSeed:12552])
  103. * Wed Nov 08 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 382-0vl3
  104. - update jless patch to 382-iso262
  105. - update description (iso254 to iso262)
  106. * Sun Nov 05 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 382-0vl2
  107. - change log was missing in 382-0vl1
  108. * Sun Nov 05 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 382-0vl1
  109. - new upstream release
  110. - update jless patch to 382-iso258
  111. * Tue Dec 14 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 358-0vl10
  112. - set _FILE_OFFSET_BITS 64
  113. * Sat May 17 2003 KAZUKI SHIMURA <rito@pos.to> 358-0vl9
  114. - rebuild with new toolchain
  115. - fix description (iso242 to iso254)
  116. * Thu Apr 25 2002 Kosaku Nagasaka <nagasaka@math.tsukuba.ac.jp>
  117. - 358-0vl8: temporary fix: consistency of the nls-patch and (J)LESSCHARSET
  118. * Sun Mar 31 2002 NISHIMURA Daisuke <nishi@graco.c.u-tokyo.ac.jp>
  119. - 358-0vl7: fix lesspipe.sh for file names with spaces
  120. * Wed Aug 22 2001 Toru Sagami <sagami@vinelinux.org>
  121. - 358-0vl6: rebuild on ncurses-5.2 (as asked to do so)
  122. * Sun Aug 19 2001 Toru Sagami <sagami@vinelinux.org>
  123. - 358-0vl5: added more documents (COPYING, LICENSE)
  124. - fix lesspipe.sh again and tweak lesspipe.csh a bit with %%config marked
  125. * Wed Jun 27 2001 Jun Nishii <jun@vinelinux.org> 358-0vl4
  126. - fix lesspipe.sh
  127. - do not REset LESSOPEN in profile.d/less.sh
  128. * Sat Jan 13 2001 Lisa Sagami <czs14350@mb.infoweb.ne.jp>
  129. - 358-0vl3
  130. - fixed lesspipe.sh
  131. * Fri Jan 12 2001 Lisa Sagami <czs14350@mb.infoweb.ne.jp>
  132. - 358-0vl2
  133. - added bzip2/lha support to lesspipe.sh
  134. - minor spec fixes
  135. * Thu Jan 11 2001 Jun Nishii <jun@vinelinux.org>
  136. - 358-0vl1
  137. - more fix of lesspipe.sh
  138. - requires file >= 3.33
  139. - more macros in spec
  140. * Thu Jan 11 2001 Jun Nishii <jun@vinelinux.org>
  141. - 354-0vl5
  142. - modify lesspipe.sh to adapt to file-3.33 and to view gzipped nroff file
  143. * Tue Dec 26 2000 Tomoya TAKA <tomoya@olive.plala.or.jp> 354-0vl3
  144. - some fixes to handle man pages correctly
  145. * Sun Nov 12 2000 MACHINO, Satoshi <machino@vinelinux.org> 354-0vl2
  146. - build on gcc-2.95.3
  147. - partially used rpmmacros
  148. * Wed Jul 5 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
  149. - added Sagam's patch to fix parse ctrl code for Japanese. Very thanks Sagami-san.
  150. * Wed Jun 21 2000 Jun Nishii <jun@vinelinux.org>
  151. - less-354-0vl1
  152. * Mon Jan 17 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
  153. - updated ja_nls patch for memory leaks.
  154. * Mon Jan 10 2000 Jun Nishii <jun@vinelinux.org>
  155. - rel.7 (5vl2 makes harm for update from Vine-1.1)
  156. * Fri Jan 7 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
  157. - rel 5vl2
  158. - added ja_nls and bzip2 patches
  159. - added Requires for bzip2 and gzip.
  160. * Fri Jan 7 2000 Jun Nishii <jun@vinelinux.org>
  161. - rel.6
  162. - change group
  163. * Sun Sep 6 1999 Jun NISHII <jun@flatout.org>
  164. - rel.5
  165. - remove LESS=-r to avoid somed troubles
  166. * Sat Aug 21 1999 Jun NISHII <jun@flatout.org>
  167. - rel.4
  168. - change groff path in lesspipe.sh to adapt groff-1.11
  169. - added /etc/profile.d/less{.,.csh}
  170. * Thu Jun 24 1999 Norihito Ohmori <ohmori@flatout.org>
  171. - rebuild for glibc-2.1
  172. * Mon Feb 15 1999 Jun NISHII <jun@flatout.org>
  173. - rel.2
  174. - added preprocess for bzip2ed file
  175. - added Japanese summary
  176. * Wed Dec 2 1998 Jun NISHII <jun@flatout.org>
  177. - rename from less-332iso242-4 to less-332_jp-1
  178. - strip bins
  179. * Tue Oct 8 1998 Jun NISHII <jun@flatout.org>
  180. - release 4
  181. - modify header of spec file
  182. * Sat Sep 26 1998 Jun NISHII <jun@flatout.org>
  183. - release 3
  184. - added lesspipe.sh