2007-02-07 12:40:08 +00:00
|
|
|
Summary: A text file browser similar to more, but better
|
2004-09-09 07:11:53 +00:00
|
|
|
Name: less
|
2007-06-26 10:09:21 +00:00
|
|
|
Version: 406
|
2007-08-09 09:57:10 +00:00
|
|
|
Release: 11%{?dist}
|
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
|
2005-10-19 10:39:46 +00:00
|
|
|
Patch0: less-382-fixline.patch
|
2007-06-26 10:09:21 +00:00
|
|
|
Patch1: less-406-Foption.patch
|
2006-10-25 10:50:31 +00:00
|
|
|
Patch3: less-394-goend.patch
|
2007-02-07 12:40:08 +00:00
|
|
|
Patch4: less-394-time.patch
|
2004-09-09 07:14:59 +00:00
|
|
|
|
2004-09-09 07:12:56 +00:00
|
|
|
URL: http://www.greenwoodsoftware.com/less/
|
2007-02-07 12:40:08 +00:00
|
|
|
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
2004-09-09 07:13:25 +00:00
|
|
|
BuildRequires: ncurses-devel
|
2007-08-09 09:57:10 +00:00
|
|
|
BuildRequires: pcre-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
|
2005-10-19 10:39:46 +00:00
|
|
|
%patch0 -p1 -b .fixline
|
2005-10-21 14:42:56 +00:00
|
|
|
%patch1 -p1 -b .Foption
|
2006-10-25 10:50:31 +00:00
|
|
|
%patch3 -p1 -b .goend
|
2007-02-07 12:40:08 +00:00
|
|
|
%patch4 -p1 -b .time
|
2004-09-09 07:14:59 +00:00
|
|
|
chmod -R a+w *
|
2007-02-19 09:01:28 +00:00
|
|
|
chmod 644 lessecho.c lesskey.c version.c LICENSE
|
2004-09-09 07:11:53 +00:00
|
|
|
|
|
|
|
%build
|
2007-08-09 09:57:10 +00:00
|
|
|
%configure --with-regex=pcre
|
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
|
2007-02-07 12:40:08 +00:00
|
|
|
strip -R .comment $RPM_BUILD_ROOT/%{_bindir}/less
|
2004-09-09 07:11:53 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/profile.d
|
2007-02-07 12:40:08 +00:00
|
|
|
install -p -c -m 755 %{SOURCE1} $RPM_BUILD_ROOT/%{_bindir}
|
2007-02-20 09:01:30 +00:00
|
|
|
install -p -c -m 644 %{SOURCE2} $RPM_BUILD_ROOT/etc/profile.d
|
|
|
|
install -p -c -m 644 %{SOURCE3} $RPM_BUILD_ROOT/etc/profile.d
|
2007-02-07 12:40:08 +00:00
|
|
|
ls -la $RPM_BUILD_ROOT/etc/profile.d
|
2004-09-09 07:11:53 +00:00
|
|
|
|
|
|
|
%files
|
2007-02-07 12:40:08 +00:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc LICENSE
|
2004-09-09 07:11:53 +00:00
|
|
|
/etc/profile.d/*
|
2007-02-07 12:40:08 +00:00
|
|
|
%{_bindir}/*
|
2004-09-09 07:11:53 +00:00
|
|
|
%{_mandir}/man1/*
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%changelog
|
2007-08-09 09:57:10 +00:00
|
|
|
* Thu Aug 9 2007 Ivana Varekova <varekova@redhat.com> - 406-11
|
|
|
|
- configure a regular expression library
|
|
|
|
|
|
|
|
* Tue Jun 26 2007 Ivana Varekova <varekova@redhat.com> - 406-10
|
2007-06-26 10:09:21 +00:00
|
|
|
- update to 406
|
|
|
|
|
|
|
|
* Mon Jun 4 2007 Ivana Varekova <varekova@redhat.com> - 394-10
|
2007-06-04 10:53:13 +00:00
|
|
|
- Resolves: #242077
|
|
|
|
remove "-" option from lesspipe.sh script
|
|
|
|
|
2007-02-20 09:01:30 +00:00
|
|
|
* Tue Feb 20 2007 Ivana Varekova <varekova@redhat.com> - 394-9
|
|
|
|
- change /etc/profile.d script's permissions
|
|
|
|
|
2007-02-19 09:01:28 +00:00
|
|
|
* Mon Feb 19 2007 Ivana Varekova <varekova@redhat.com> - 394-8
|
|
|
|
- change LICENSE permissions
|
|
|
|
|
2007-02-07 12:40:08 +00:00
|
|
|
* Wed Feb 7 2007 Ivana Varekova <varekova@redhat.com> - 394-7
|
|
|
|
- incorporate the package review
|
|
|
|
|
|
|
|
* Wed Nov 22 2006 Ivana Varekova <varekova@redhat.com> - 394-6
|
2006-11-22 11:31:04 +00:00
|
|
|
- fix permissions of debuginfo source code
|
|
|
|
|
2006-10-25 10:50:31 +00:00
|
|
|
* Wed Oct 25 2006 Ivana Varekova <varekova@redhat.com> - 394-5
|
|
|
|
- fix command ">" (#120916)
|
|
|
|
|
2006-07-12 06:44:34 +00:00
|
|
|
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 394-4.1
|
|
|
|
- rebuild
|
|
|
|
|
2006-05-04 13:11:58 +00:00
|
|
|
* Thu May 5 2006 Ivana Varekova <varekova@redhat.com> - 394-4
|
|
|
|
- fix problem with unassigned variable DECOMPRESSOR (#190619)
|
|
|
|
|
2006-02-15 10:53:11 +00:00
|
|
|
* Wed Feb 15 2006 Ivana Varekova <varekova@redhat.com> - 394-3
|
|
|
|
- add patch for search problem (search did not find string which
|
|
|
|
occurs in a line after '\0')
|
|
|
|
|
2006-02-11 03:51:25 +00:00
|
|
|
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 394-2.2
|
|
|
|
- bump again for double-long bug on ppc(64)
|
|
|
|
|
2006-02-07 12:28:10 +00:00
|
|
|
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 394-2.1
|
|
|
|
- rebuilt for new gcc4.1 snapshot and glibc changes
|
|
|
|
|
2006-01-16 14:21:41 +00:00
|
|
|
* Mon Jan 16 2006 Jindrich Novy <jnovy@redhat.com> 394-2
|
2006-01-16 14:20:52 +00:00
|
|
|
- apply better fix for #120916 from Avi Kivity (#177819)
|
|
|
|
to avoid flickering when '>' is pressed multiple times
|
|
|
|
|
2005-12-09 22:41:15 +00:00
|
|
|
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
|
|
|
|
- rebuilt
|
|
|
|
|
2005-12-06 13:19:26 +00:00
|
|
|
* Tue Dec 6 2005 Jindrich Novy <jnovy@redhat.com> 394-1
|
|
|
|
- update to less-394
|
|
|
|
|
2005-11-07 09:45:13 +00:00
|
|
|
* Mon Nov 7 2005 Jindrich Novy <jnovy@redhat.com> 393-1
|
|
|
|
- update to less-393
|
|
|
|
- groom Foption patch a bit
|
|
|
|
- remove obsolete ncursesw and utf8detect patches
|
|
|
|
|
2005-10-21 14:42:56 +00:00
|
|
|
* Fri Oct 21 2005 Jindrich Novy <jnovy@redhat.com> 392-2
|
|
|
|
- fix the -F option (#79650), thanks to Petr Raszyk
|
|
|
|
|
2005-10-19 10:39:46 +00:00
|
|
|
* Wed Oct 19 2005 Jindrich Novy <jnovy@redhat.com> 392-1
|
|
|
|
- update to less-392 - fixes #122847 and enhances UTF8 support
|
|
|
|
|
2005-09-06 10:10:07 +00:00
|
|
|
* Fri Sep 2 2005 Jindrich Novy <jnovy@redhat.com> 382-8
|
|
|
|
- fix displaying of bogus newline for growing files (#120916)
|
|
|
|
|
2005-03-04 13:57:55 +00:00
|
|
|
* Fri Mar 4 2005 Jindrich Novy <jnovy@redhat.com> 382-7
|
|
|
|
- rebuilt with gcc4
|
|
|
|
|
2005-02-16 13:42:16 +00:00
|
|
|
* Wed Feb 16 2005 Jindrich Novy <jnovy@redhat.com> 382-6
|
|
|
|
- add patch for proper detection of UTF-8 locale,
|
|
|
|
patch from Peter Rockai
|
|
|
|
|
2004-11-16 12:47:44 +00:00
|
|
|
* Tue Nov 16 2004 Karsten Hopp <karsten@redhat.de> 382-5
|
|
|
|
- minor fix in lesspipe.sh (#73215)
|
|
|
|
|
2004-09-09 07:16:41 +00:00
|
|
|
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
|
|
|
|
- rebuilt
|
|
|
|
|
2004-09-09 07:16:33 +00:00
|
|
|
* Mon Mar 29 2004 Karsten Hopp <karsten@redhat.de> 382-3
|
|
|
|
- remove old stuff from /etc/profile.d/less.*, fixes #109011
|
|
|
|
|
|
|
|
* Tue Mar 02 2004 Karsten Hopp <karsten@redhat.de> 382-1.1
|
|
|
|
- build for FC1
|
2004-09-09 07:16:06 +00:00
|
|
|
|
|
|
|
* Sat Feb 14 2004 Karsten Hopp <karsten@redhat.de> 382-1
|
|
|
|
- new upstream version
|
|
|
|
|
|
|
|
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
|
|
|
|
- rebuilt
|
|
|
|
|
2004-09-09 07:15:31 +00:00
|
|
|
* Thu Jan 15 2004 Karsten Hopp <karsten@redhat.de> 381-2
|
|
|
|
- drop iso247 patch, doesn't work
|
2004-09-09 07:15:22 +00:00
|
|
|
|
2004-09-09 07:15:31 +00:00
|
|
|
* Wed Jun 11 2003 Karsten Hopp <karsten@redhat.de> 381-1
|
|
|
|
- new version with rewritten iso247 patch
|
2004-09-09 07:15:22 +00:00
|
|
|
|
|
|
|
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
|
|
|
|
- rebuilt
|
|
|
|
|
|
|
|
* Wed May 28 2003 Florian La Roche <Florian.LaRoche@redhat.de>
|
|
|
|
- fix korean #79977
|
|
|
|
- add new less.sh from #89780, s/ko/korean/ and write .csh script
|
|
|
|
- add patch from #91661: /japanses/japanese-euc/
|
|
|
|
|
2004-09-09 07:14:59 +00:00
|
|
|
* Tue Feb 4 2003 Tim Waugh <twaugh@redhat.com> 378-7
|
|
|
|
- Part of multibyte patch was missing; fixed.
|
|
|
|
|
|
|
|
* Mon Feb 3 2003 Tim Waugh <twaugh@redhat.com> 378-6
|
|
|
|
- Fix underlining multibyte characters (bug #83377).
|
2004-09-09 07:14:47 +00:00
|
|
|
|
2004-09-09 07:14:59 +00:00
|
|
|
* Thu Jan 30 2003 Karsten Hopp <karsten@redhat.de> 378-5
|
|
|
|
- removed older, unused patches
|
|
|
|
- add patch from Yukihiro Nakai to fix display of japanese text
|
|
|
|
(#79977)
|
2004-09-09 07:14:45 +00:00
|
|
|
|
2004-09-09 07:14:59 +00:00
|
|
|
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
|
|
|
|
- rebuilt
|
2004-09-09 07:14:45 +00:00
|
|
|
|
2004-09-09 07:14:59 +00:00
|
|
|
* Wed Dec 18 2002 Karsten Hopp <karsten@redhat.de>č
|
|
|
|
- removed default 'cat' from lesspipe.sh as it breaks 'v' and 'F' keys
|
|
|
|
(#79921)
|
2004-09-09 07:14:45 +00:00
|
|
|
|
2004-09-09 07:14:59 +00:00
|
|
|
* Fri Dec 6 2002 Nalin Dahyabhai <nalin@redhat.com> 378-2
|
|
|
|
- add a default case to lesspipe so that it shows other kinds of files
|
2004-09-09 07:14:45 +00:00
|
|
|
|
2004-09-09 07:14:59 +00:00
|
|
|
* Mon Nov 04 2002 Karsten Hopp <karsten@redhat.de>
|
|
|
|
- less-378
|
|
|
|
- added some debian patches
|
|
|
|
- show image info instead of binary garbage when viewing images
|
2004-09-09 07:14:37 +00:00
|
|
|
|
|
|
|
* 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
|