less-vl.spec 8.2 KB

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