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