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