123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301 |
- Summary: A text file browser similar to more, but better
- Summary(ja): more よりも高機能な日本語対応ページャ
- Name: less
- Version: 608
- Release: 2%{?_dist_release}
- Group: accessories
- Vendor: Project Vine
- Distribution: Vine Linux
- Packager: daisuke
- License: GPLv3+
- URL: https://www.greenwoodsoftware.com/less/
- Source: https://www.greenwoodsoftware.com/less/%{name}-%{version}.tar.gz
- Source1: lesspipe.sh
- Source2: less.sh
- Source3: less.csh
- Patch4: less-394-time.patch
- Patch5: less-475-fsync.patch
- Patch6: less-436-manpage-add-old-bot-option.patch
- Patch7: less-436-help.patch
- Patch8: less-458-lessecho-usage.patch
- Patch9: less-458-less-filters-man.patch
- Patch10: less-458-lesskey-usage.patch
- Patch11: less-458-old-bot-in-help.patch
- Patch1000: CVE-2022-46663.patch
- BuildRoot: %{_tmppath}/%{name}-%{version}-root
- BuildRequires: ncurses-devel
- BuildRequires: pcre-devel
- BuildRequires: autoconf automake libtool
- Requires(post): alternatives
- Requires(preun): alternatives
- Requires: gzip, bzip2
- Requires: file >= 3.33
- Provides: pager
- %description
- The less utility is a text file browser that resembles more, but has
- more capabilities. Less allows you to move backwards in the file as
- well as forwards. Since less doesn't have to read the entire input file
- before it starts, less starts up more quickly than text editors (for
- example, vi).
- You should install less because it is a basic utility for viewing text
- files, and you'll use it frequently.
- %description -l ja
- less は more よりも高機能な日本語対応ページャです.less は起動時にテキスト
- ファイルを完全に読み込む必要がないので,vi などの テキストエディタに比べて
- 高速に起動することができます.
- 環境変数 LESSOPEN を "|lesspipe.sh %s" に設定することによって, gzip や
- compress で圧縮されたファイルを自動的に展開して表示することもできます.
- less はテキストファイルを表示するためによく使用する基本的なツールなので,
- インストールしておくべきでしょう.
- %debug_package
- %prep
- %setup -q
- %patch4 -p1 -b .time
- #patch5 -p1 -b .fsync
- sed -i -e 's/fsync popen _setjmp/popen _setjmp/' configure.ac
- %patch6 -p1 -b .manpage-add-old-bot-option
- %patch7 -p1 -b .help
- %patch8 -p1 -b .lessecho-usage
- %patch9 -p1 -b .less-filters-man
- %patch10 -p1 -b .lesskey-usage
- %patch11 -p1 -b .old-bot
- %patch1000 -p1 -b CVE-2022-46663
- autoreconf -ivf
- chmod -R a+w *
- chmod 644 lessecho.c lesskey.c version.c LICENSE
- %build
- %configure --with-regex=pcre
- make CFLAGS="%{optflags} -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 `pcre-config --cflags`" datadir=%{_docdir}
- %install
- rm -rf %{buildroot}
- %makeinstall
- strip -R .comment %{buildroot}/%{_bindir}/less
- mkdir -p %{buildroot}/etc/profile.d
- install -p -c -m 755 %{SOURCE1} %{buildroot}/%{_bindir}
- install -p -c -m 644 %{SOURCE2} %{buildroot}/etc/profile.d
- install -p -c -m 644 %{SOURCE3} %{buildroot}/etc/profile.d
- ls -la %{buildroot}/etc/profile.d
- %clean
- rm -rf %{buildroot}
- %post
- /sbin/update-alternatives --install %{_bindir}/pager pager %{_bindir}/less 50
- # fix broken symlink if it's there
- if [ ! -f %{_bindir}/pager ] ; then
- /sbin/update-alternatives --auto pager
- fi
- %preun
- if [ $1 -eq 0 ]; then
- /sbin/update-alternatives --remove pager %{_bindir}/less
- /sbin/update-alternatives --auto pager
- fi
- %files
- %defattr(-,root,root)
- %license COPYING LICENSE
- %doc NEWS README
- %config %{_sysconfdir}/profile.d/*
- %{_bindir}/less
- %{_bindir}/lesskey
- %{_bindir}/lessecho
- %{_bindir}/lesspipe.sh
- %{_mandir}/man1/less.1*
- %{_mandir}/man1/lesskey.1*
- %{_mandir}/man1/lessecho.1*
- %changelog
- * Fri Feb 17 2023 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 608-2
- - imported Patch1000 to fix CVE-2022-46663 from upstream.
- * Thu Nov 03 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 608-1
- - updated to 608.
- - updated lesspipe.sh
- * Tue Jul 27 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 590-1
- - updated to 590.
- * Wed Apr 21 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 581-1
- - updated to 581.
- * Tue Feb 23 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 563-1
- - updated to 563.
- - disable Patch5: got same effect by sed.
- - updated Patch9.
- * Mon Mar 09 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 551-1
- - updated to 551.
- - updated Patch5.
- - imported Patch8-11 from rawhide.
- - dropped Patch1: less-481-Foption.patch.
- * Sun Dec 20 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 481-1
- - update to 481
- - update Patch1 (less-481-Foption.patch)
- * Mon Jan 20 2014 Daisuke SUZUKI <daisuke@linux.or.jp> 458-1
- - update to 458
- * Wed Oct 24 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 451-1
- - update to 451
- - build with pcre-8.31
- * Sun Oct 02 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 444-1
- - update to 444
- * Sat Mar 19 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 436-3
- - split Requires(post,preun)
- * Sun Sep 19 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 436-2
- - updated japanese summary and description
- * Thu Jul 29 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 436-1
- - updated to 436
- * Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 382-1vl5
- - applied new versioning policy, spec in utf-8
- * Fri Apr 13 2007 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 382-0vl6
- - add Provides: pager
- - add Requires(post,preun): alternatives
- * Mon Apr 09 2007 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 382-0vl5
- - add update-alternatives: pager in %%post, %%preun scriptlet
- * Thu Nov 09 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 382-0vl4
- - revert to 382-iso259 ([VineSeed:12552])
- * Wed Nov 08 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 382-0vl3
- - update jless patch to 382-iso262
- - update description (iso254 to iso262)
- * Sun Nov 05 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 382-0vl2
- - change log was missing in 382-0vl1
- * Sun Nov 05 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 382-0vl1
- - new upstream release
- - update jless patch to 382-iso258
- * Tue Dec 14 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 358-0vl10
- - set _FILE_OFFSET_BITS 64
- * Sat May 17 2003 KAZUKI SHIMURA <rito@pos.to> 358-0vl9
- - rebuild with new toolchain
- - fix description (iso242 to iso254)
- * Thu Apr 25 2002 Kosaku Nagasaka <nagasaka@math.tsukuba.ac.jp>
- - 358-0vl8: temporary fix: consistency of the nls-patch and (J)LESSCHARSET
- * Sun Mar 31 2002 NISHIMURA Daisuke <nishi@graco.c.u-tokyo.ac.jp>
- - 358-0vl7: fix lesspipe.sh for file names with spaces
- * Wed Aug 22 2001 Toru Sagami <sagami@vinelinux.org>
- - 358-0vl6: rebuild on ncurses-5.2 (as asked to do so)
- * Sun Aug 19 2001 Toru Sagami <sagami@vinelinux.org>
- - 358-0vl5: added more documents (COPYING, LICENSE)
- - fix lesspipe.sh again and tweak lesspipe.csh a bit with %%config marked
- * Wed Jun 27 2001 Jun Nishii <jun@vinelinux.org> 358-0vl4
- - fix lesspipe.sh
- - do not REset LESSOPEN in profile.d/less.sh
- * Sat Jan 13 2001 Lisa Sagami <czs14350@mb.infoweb.ne.jp>
- - 358-0vl3
- - fixed lesspipe.sh
- * Fri Jan 12 2001 Lisa Sagami <czs14350@mb.infoweb.ne.jp>
- - 358-0vl2
- - added bzip2/lha support to lesspipe.sh
- - minor spec fixes
- * Thu Jan 11 2001 Jun Nishii <jun@vinelinux.org>
- - 358-0vl1
- - more fix of lesspipe.sh
- - requires file >= 3.33
- - more macros in spec
- * Thu Jan 11 2001 Jun Nishii <jun@vinelinux.org>
- - 354-0vl5
- - modify lesspipe.sh to adapt to file-3.33 and to view gzipped nroff file
- * Tue Dec 26 2000 Tomoya TAKA <tomoya@olive.plala.or.jp> 354-0vl3
- - some fixes to handle man pages correctly
- * Sun Nov 12 2000 MACHINO, Satoshi <machino@vinelinux.org> 354-0vl2
- - build on gcc-2.95.3
- - partially used rpmmacros
- * Wed Jul 5 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
- - added Sagam's patch to fix parse ctrl code for Japanese. Very thanks Sagami-san.
- * Wed Jun 21 2000 Jun Nishii <jun@vinelinux.org>
- - less-354-0vl1
- * Mon Jan 17 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
- - updated ja_nls patch for memory leaks.
- * Mon Jan 10 2000 Jun Nishii <jun@vinelinux.org>
- - rel.7 (5vl2 makes harm for update from Vine-1.1)
- * Fri Jan 7 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
- - rel 5vl2
- - added ja_nls and bzip2 patches
- - added Requires for bzip2 and gzip.
- * Fri Jan 7 2000 Jun Nishii <jun@vinelinux.org>
- - rel.6
- - change group
- * Mon Sep 6 1999 Jun NISHII <jun@flatout.org>
- - rel.5
- - remove LESS=-r to avoid somed troubles
- * Sat Aug 21 1999 Jun NISHII <jun@flatout.org>
- - rel.4
- - change groff path in lesspipe.sh to adapt groff-1.11
- - added /etc/profile.d/less{.,.csh}
- * Thu Jun 24 1999 Norihito Ohmori <ohmori@flatout.org>
- - rebuild for glibc-2.1
- * Mon Feb 15 1999 Jun NISHII <jun@flatout.org>
- - rel.2
- - added preprocess for bzip2ed file
- - added Japanese summary
- * Wed Dec 2 1998 Jun NISHII <jun@flatout.org>
- - rename from less-332iso242-4 to less-332_jp-1
- - strip bins
- * Thu Oct 8 1998 Jun NISHII <jun@flatout.org>
- - release 4
- - modify header of spec file
- * Sat Sep 26 1998 Jun NISHII <jun@flatout.org>
- - release 3
- - added lesspipe.sh
|