2004-09-09 07:11:53 +00:00
|
|
|
Summary: A text file browser similar to more, but better.
|
|
|
|
Name: less
|
|
|
|
Version: 358
|
2004-09-09 07:14:47 +00:00
|
|
|
Release: 28
|
2004-09-09 07:11:53 +00:00
|
|
|
License: GPL
|
|
|
|
Group: Applications/Text
|
2004-09-09 07:12:56 +00:00
|
|
|
Source: http://www.greenwoodsoftware.com/less/%{name}-%{version}.tar.gz
|
2004-09-09 07:11:53 +00:00
|
|
|
Source1: lesspipe.sh
|
|
|
|
Source2: less.sh
|
|
|
|
Source3: less.csh
|
2004-09-09 07:12:13 +00:00
|
|
|
Patch0: less-shell.patch
|
|
|
|
Patch1: less-edit.patch
|
2004-09-09 07:12:01 +00:00
|
|
|
# Japanese patch
|
2004-09-09 07:14:45 +00:00
|
|
|
Patch2: less-358-iso254.patch
|
2004-09-09 07:12:56 +00:00
|
|
|
Patch3: less-358-eline.patch
|
|
|
|
# Patch to fix things which the Japanese patch broke:
|
|
|
|
Patch4: less-358-charset.patch
|
|
|
|
Patch5: less-358-rh.patch
|
2004-09-09 07:14:37 +00:00
|
|
|
# One more patch for the broken i18n patch
|
|
|
|
Patch6: less-number.patch
|
2004-09-09 07:14:45 +00:00
|
|
|
Patch7: less-358-mf.patch
|
2004-09-09 07:12:56 +00:00
|
|
|
URL: http://www.greenwoodsoftware.com/less/
|
2004-09-09 07:12:13 +00:00
|
|
|
Buildroot: %{_tmppath}/%{name}-root
|
2004-09-09 07:13:25 +00:00
|
|
|
BuildRequires: ncurses-devel
|
2004-09-09 07:11:53 +00:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%patch -p1 -b .bug
|
2004-09-09 07:14:45 +00:00
|
|
|
%patch2 -p1 -b .i18n
|
|
|
|
#%patch3 -p1 -b .eline
|
|
|
|
%patch4 -p1 -b .chset
|
2004-09-09 07:14:37 +00:00
|
|
|
#%patch5 -p1 -b .rh
|
|
|
|
#%patch6 -p1 -b .num
|
2004-09-09 07:14:45 +00:00
|
|
|
%patch7 -p1 -b .mf
|
2004-09-09 07:11:53 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%configure
|
2004-09-09 07:13:45 +00:00
|
|
|
make CC="gcc $RPM_OPT_FLAGS -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" datadir=%{_docdir}
|
2004-09-09 07:11:53 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%makeinstall
|
|
|
|
strip -R .comment $RPM_BUILD_ROOT/usr/bin/less
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/profile.d
|
|
|
|
install -c -m 755 %{SOURCE1} $RPM_BUILD_ROOT/usr/bin/
|
|
|
|
install -c -m 755 %{SOURCE2} $RPM_BUILD_ROOT/etc/profile.d
|
|
|
|
install -c -m 755 %{SOURCE3} $RPM_BUILD_ROOT/etc/profile.d
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
/etc/profile.d/*
|
|
|
|
/usr/bin/*
|
|
|
|
%{_mandir}/man1/*
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%changelog
|
2004-09-09 07:14:47 +00:00
|
|
|
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
|
|
|
|
- automated rebuild
|
|
|
|
|
2004-09-09 07:14:45 +00:00
|
|
|
* Tue Jun 18 2002 Karsten Hopp <karsten@redhat.de> 358-27
|
|
|
|
- added Kazushi (Jam) Marukawa ISO-2022 patch 254 to support multibyte
|
|
|
|
characters
|
|
|
|
- added Mike Fabians patch to fix bold/underlined non-ASCII
|
|
|
|
characters in UTF-8 mode
|
|
|
|
- finally added support for directories (#17456 and #62050)
|
|
|
|
- re-enabled fallback if no charset could be found (#24463)
|
|
|
|
- added Matt's fix for #26113
|
|
|
|
- show changelog and filelist when viewing a rpm package (#64900)
|
|
|
|
|
|
|
|
|
|
|
|
* Thu May 23 2002 Tim Powers <timp@redhat.com>
|
|
|
|
- automated rebuild
|
|
|
|
|
|
|
|
* Thu Apr 25 2002 Than Ngo <than@redhat.com> 358-25
|
|
|
|
- add fix to handle tar.bz2 file
|
|
|
|
|
2004-09-09 07:14:37 +00:00
|
|
|
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
|
|
|
|
- automated rebuild
|
|
|
|
|
|
|
|
* Fri Oct 05 2001 Karsten Hopp <karsten@redhat.de>
|
|
|
|
- fix line numbering (less -N filename), caused by
|
|
|
|
a broken i18n patch
|
|
|
|
|
2004-09-09 07:13:45 +00:00
|
|
|
* Tue Sep 04 2001 Karsten Hopp <karsten@redhat.de>
|
|
|
|
- recompile with large file support (#52945)
|
|
|
|
|
2004-09-09 07:13:25 +00:00
|
|
|
* Tue Jul 24 2001 Karsten Hopp <karsten@redhat.de>
|
|
|
|
- fix #49506 (BuildRequires)
|
|
|
|
|
2004-09-09 07:12:56 +00:00
|
|
|
* Mon Jun 25 2001 Nalin Dahyabhai <nalin@redhat.com>
|
|
|
|
- fixup eline patch to initialize result correctly
|
|
|
|
|
|
|
|
* Mon Jun 25 2001 Karsten Hopp <karsten@redhat.de>
|
|
|
|
- update URLs
|
|
|
|
- Copyright -> License
|
|
|
|
- fix #43348 (crashes when searching for /<)
|
|
|
|
- fix #39849 (
|
|
|
|
_ ignores LESSCHARDEF in displaying characters,
|
|
|
|
_ prefaces sequences of one or "high" characters with a capital "A")
|
|
|
|
|
2004-09-09 07:12:13 +00:00
|
|
|
* Mon Feb 5 2001 Yukihiro Nakai <ynakai@redhat.com>
|
|
|
|
- Update less.sh, less.csh to set JLESSCHARSET=japanese
|
|
|
|
when LANG=ja??
|
|
|
|
|
|
|
|
* Mon Feb 5 2001 Matt Wilson <msw@redhat.com>
|
|
|
|
- changed the less-358+iso247-20001210.diff patch to use strcasecmp when
|
|
|
|
comparing locale names
|
|
|
|
|
|
|
|
* Thu Feb 01 2001 Karsten Hopp <karsten@redhat.de>
|
|
|
|
- fixed character translations (bugzilla #24463)
|
|
|
|
|
|
|
|
* Wed Jan 31 2001 Karsten Hopp <karsten@redhat.de>
|
|
|
|
- fixed lesspipe (bugzilla #17456 #25324)
|
|
|
|
|
|
|
|
* Tue Dec 12 2000 Bernhard Rosenkraenzer <bero@redhat.com>
|
|
|
|
- rebuild with new ncurses
|
|
|
|
|
|
|
|
* Mon Dec 11 2000 Yukihiro Nakai <ynakai@redhat.com>
|
|
|
|
- Add Japanese patch with ia64 support.
|
|
|
|
|
|
|
|
* Mon Nov 27 2000 Karsten Hopp <karsten@redhat.de>
|
|
|
|
- rebuild with new ncurses
|
|
|
|
- fix Bug #21288
|
|
|
|
|
|
|
|
* Mon Nov 13 2000 Karsten Hopp <karsten@redhat.de>
|
|
|
|
- fixed handling of manpages of type *.1x.gz
|
|
|
|
- added support for cpio packages
|
|
|
|
|
|
|
|
* Thu Sep 14 2000 Than Ngo <than@redhat.com>
|
|
|
|
- added new lesspipe.sh (Bug #17456)
|
2004-09-09 07:12:01 +00:00
|
|
|
|
2004-09-09 07:11:53 +00:00
|
|
|
* Wed Aug 23 2000 Bernhard Rosenkraenzer <bero@redhat.com>
|
|
|
|
- support files with spaces in their names (Bug #16777)
|
|
|
|
|
|
|
|
* Tue Aug 8 2000 Bernhard Rosenkraenzer <bero@redhat.com>
|
|
|
|
- Support gzipped man pages in lesspipe.sh (Bug #15610)
|
|
|
|
|
|
|
|
* Thu Aug 3 2000 Bernhard Rosenkraenzer <bero@redhat.com>
|
|
|
|
- Tweak init script (Bug #14622)
|
|
|
|
|
|
|
|
* Thu Jul 27 2000 Bernhard Rosenkraenzer <bero@redhat.com>
|
|
|
|
- Oops, actually apply the patch for 9443. ;)
|
|
|
|
|
|
|
|
* Wed Jul 26 2000 Bernhard Rosenkraenzer <bero@redhat.com>
|
|
|
|
- Fix up messed output if a user outputs anything in ~/.bashrc or the
|
|
|
|
likes (Bug #9443)
|
|
|
|
- handle RPM_OPT_FLAGS
|
|
|
|
|
|
|
|
* Thu Jul 13 2000 Prospector <bugzilla@redhat.com>
|
|
|
|
- automatic rebuild
|
|
|
|
|
|
|
|
* Thu Jul 13 2000 Bernhard Rosenkraenzer <bero@redhat.com>
|
|
|
|
- 358
|
|
|
|
|
|
|
|
* Mon Jun 26 2000 Matt Wilson <msw@redhat.com>
|
|
|
|
- defattr root
|
|
|
|
|
|
|
|
* Mon Jun 19 2000 Bernhard Rosenkraenzer <bero@redhat.com>
|
|
|
|
- FHSify
|
|
|
|
|
|
|
|
* Fri Apr 14 2000 Bernhard Rosenkraenzer <bero@redhat.com>
|
|
|
|
- 354
|
|
|
|
|
|
|
|
* Mon Mar 20 2000 Bernhard Rosenkraenzer <bero@redhat.com>
|
|
|
|
- Update to v352
|
|
|
|
|
|
|
|
* Tue Mar 7 2000 Jeff Johnson <jbj@redhat.com>
|
|
|
|
- rebuild for sparc baud rates > 38400.
|
|
|
|
|
|
|
|
* Tue Jan 25 2000 Bernhard Rosenkraenzer <bero@redhat.com>
|
|
|
|
- Update to v346
|
|
|
|
- Update download URL
|
|
|
|
- use the configure marcro
|
|
|
|
- strip binary
|
|
|
|
- fix up lesspipe stuff (Bug #8750 and a couple of non-reported bugs)
|
|
|
|
(Karsten, did I mention I'll kill you when you return from SAP? ;) )
|
|
|
|
|
|
|
|
* Sun Jan 07 2000 Karsten Hopp <karsten@redhat.de>
|
|
|
|
- added lesspipe.sh to show listings of package
|
|
|
|
contents instead of binary output.
|
|
|
|
|
|
|
|
* Fri Aug 27 1999 Preston Brown <pbrown@redhat.com>
|
|
|
|
- less finally gets maintenance, upgraded to 340
|
|
|
|
|
|
|
|
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
|
|
|
|
- auto rebuild in the new build environment (release 6)
|
|
|
|
|
|
|
|
* Tue Mar 16 1999 Preston Brown <pbrown@redhat.com>
|
|
|
|
- removed ifarch axp stuff for /bin/more, more now works on alpha properly.
|
|
|
|
|
|
|
|
* Wed Feb 24 1999 Preston Brown <pbrown@redhat.com>
|
|
|
|
- Injected new description and group.
|
|
|
|
|
|
|
|
* Fri Dec 18 1998 Preston Brown <pbrown@redhat.com>
|
|
|
|
- bumped spec number for initial rh 6.0 build
|
|
|
|
|
|
|
|
* Thu May 07 1998 Prospector System <bugs@redhat.com>
|
|
|
|
|
|
|
|
- translations modified for de, fr, tr
|
|
|
|
|
|
|
|
* Wed Apr 08 1998 Cristian Gafton <gafton@redhat.com>
|
|
|
|
- updated to 332 and built for Manhattan
|
|
|
|
- added buildroot
|
|
|
|
|
|
|
|
* Mon Jun 02 1997 Erik Troan <ewt@redhat.com>
|
|
|
|
- built against glibc
|