auto-import changelog data from less-358-16.src.rpm

Mon Feb 05 2001 Yukihiro Nakai <ynakai@redhat.com>
- Update less.sh, less.csh to set JLESSCHARSET=japanese when LANG=ja??
Mon Feb 05 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)
This commit is contained in:
cvsdist 2004-09-09 07:12:13 +00:00
parent 8065931c87
commit bf92281784
4 changed files with 74 additions and 42 deletions

View File

@ -2,3 +2,9 @@
if ( -x /usr/bin/lesspipe.sh ) then if ( -x /usr/bin/lesspipe.sh ) then
setenv LESSOPEN "|/usr/bin/lesspipe.sh %s" setenv LESSOPEN "|/usr/bin/lesspipe.sh %s"
endif endif
if ( $?LANG ) then
if ( `echo $LANG | cut -b 1-2` == "ja" ) then
setenv JLESSCHARSET japanese
endif
endif

View File

@ -1,2 +1,7 @@
# less initialization script (sh) # less initialization script (sh)
[ -x /usr/bin/lesspipe.sh ] && export LESSOPEN="|/usr/bin/lesspipe.sh %s" [ -x /usr/bin/lesspipe.sh ] && export LESSOPEN="|/usr/bin/lesspipe.sh %s"
if [ x`echo $LANG | cut -b 1-2` = x"ja" ]; then
export JLESSCHARSET=japanese;
fi

View File

@ -1,22 +1,20 @@
%define enable_japanese 1
Summary: A text file browser similar to more, but better. Summary: A text file browser similar to more, but better.
Name: less Name: less
Version: 358 Version: 358
Release: 7j1 Release: 16
License: GPL License: GPL
Group: Applications/Text Group: Applications/Text
Source: http://www.flash.net/~marknu/less/%{name}-%{version}.tar.gz Source: http://www.flash.net/~marknu/less/%{name}-%{version}.tar.gz
Source1: lesspipe.sh Source1: lesspipe.sh
Source2: less.sh Source2: less.sh
Source3: less.csh Source3: less.csh
Patch: less-shell.patch Patch0: less-shell.patch
Patch1: less-edit.patch
# Japanese patch # Japanese patch
# http://home.jp.FreeBSD.org/~kuriyama/less-358+iso247-20000803.diff.gz Patch2: less-358+iso247-20001210.diff
Patch10: less-358+iso247-20000803.diff Patch3: less-358-latin1.patch
URL: http://www.flash.net/~marknu/less/ URL: http://www.flash.net/~marknu/less/
Buildroot: /var/tmp/less-root Buildroot: %{_tmppath}/%{name}-root
%description %description
The less utility is a text file browser that resembles more, but has The less utility is a text file browser that resembles more, but has
@ -31,10 +29,8 @@ files, and you'll use it frequently.
%prep %prep
%setup -q %setup -q
%patch -p1 -b .bug %patch -p1 -b .bug
%if %{enable_japanese} %patch2 -p1 -b .i18n
cd $RPM_BUILD_DIR/less-358/ %patch3 -p1 -b .lat1
%patch10 -b .i18n
%endif
%build %build
%configure %configure
@ -59,8 +55,36 @@ install -c -m 755 %{SOURCE3} $RPM_BUILD_ROOT/etc/profile.d
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
%changelog %changelog
* Tue Aug 29 2000 Yukihiro Nakai <ynakai@redhat.com> * Mon Feb 5 2001 Yukihiro Nakai <ynakai@redhat.com>
- Add Japanese patch - 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)
* Wed Aug 23 2000 Bernhard Rosenkraenzer <bero@redhat.com> * Wed Aug 23 2000 Bernhard Rosenkraenzer <bero@redhat.com>
- support files with spaces in their names (Bug #16777) - support files with spaces in their names (Bug #16777)

View File

@ -1,37 +1,34 @@
#!/bin/sh #!/bin/sh -
# #
# To use this filter with less, define LESSOPEN: # To use this filter with less, define LESSOPEN:
# export LESSOPEN="|/usr/bin/lesspipe.sh %s" # export LESSOPEN="|/usr/bin/lesspipe.sh %s"
lesspipe() { lesspipe() {
case "$1" in case "$1" in
*.1.gz|*.2.gz|*.3.gz|*.4.gz|*.5.gz|*.7.gz|*.8.gz|*.9.gz|*.n.gz|*.man.gz) *.[1-9n]|*.man|*.[1-9n].bz2|*.man.bz2|*.[1-9].gz|*.[1-9]x.gz|*.[1-9].man.gz)
if gunzip -c "$1" |file - |grep troff &>/dev/null; then case "$1" in
gunzip -c "$1" |groff -s -p -t -e -Tlatin1 -mandoc - *.gz) DECOMPRESSOR="gunzip -c" ;;
fi ;; *.bz2) DECOMPRESSOR="bunzip2 -c" ;;
*.1.bz2|*.2.bz2|*.3.bz2|*.4.bz2|*.5.bz2|*.7.bz2|*.8.bz2|*.9.bz2|*.n.bz2|*.man.bz2) *) DECOMPRESSOR="cat" ;;
if bunzip2 -c "$1" |file - |grep troff &>/dev/null; then esac
bunzip2 -c "$1" |groff -s -p -t -e -Tlatin1 -mandoc - if $DECOMPRESSOR -- "$1" | file - | grep -q troff; then
fi ;; if echo "$1" | grep -q ^/; then #absolute path
*.tar) tar tvvf "$1" 2>/dev/null ;; # View contents of .tar and .tgz files man -- "$1" | cat -s
*.tgz) tar tzvvf "$1" 2>/dev/null ;; else
*.tar.gz) tar tzvvf "$1" 2>/dev/null ;; man -- "./$1" | cat -s
*.tar.bz2) bzip2 -dc "$1" | tar tvvf - 2>/dev/null ;; fi
*.tar.Z) tar tzvvf "$1" 2>/dev/null ;; else
*.tar.z) tar tzvvf "$1" 2>/dev/null ;; $DECOMPRESSOR -- "$1"
*.Z) gzip -dc "$1" 2>/dev/null ;; # View compressed files correctly fi ;;
*.z) gzip -dc "$1" 2>/dev/null ;; *.tar) tar tvvf "$1" ;;
*.gz) gzip -dc "$1" 2>/dev/null ;; *.tgz|*.tar.gz|*.tar.[zZ]) tar tzvvf "$1" ;;
*.bz2) bzip2 -dc "$1" 2>/dev/null ;; *.tar.bz2|*.tbz2) tar tIvvf "$1" ;;
*.zip) unzip -l "$1" 2>/dev/null ;; *.[zZ]|*.gz) gzip -dc -- "$1" ;;
*.rpm) rpm -qpivl "$1" 2>/dev/null ;; # view contents of .rpm files *.bz2) bzip2 -dc -- "$1" ;;
*.1|*.2|*.3|*.4|*.5|*.6|*.7|*.8|*.9|*.n|*.man) FILE=`file -L "$1"` ; # groff src *.zip) zipinfo -- "$1" ;;
FILE=`echo "$FILE" | cut -d ' ' -f 2` *.rpm) rpm -qpivl -- "$1" ;;
if [ "$FILE" = "troff" ]; then *.cpi|*.cpio) cpio -itv < "$1" ;;
groff -s -p -t -e -Tascii -mandoc "$1"
fi ;;
esac esac
} }
lesspipe "$1" lesspipe "$1" 2> /dev/null