less-vl.spec 6.5 KB

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