arm: rebuild to fix 'undefined symbol: __aeabi_idivmod' after ncurses rebuild [release 458-2mamba;Sun Jun 09 2013]
This commit is contained in:
parent
b479ca4cfd
commit
e28c1b0c8c
@ -1,2 +1,8 @@
|
|||||||
# less
|
# less
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
4
less.csh
Normal file
4
less.csh
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
# less initialization script (csh)
|
||||||
|
if ( -x /usr/bin/lesspipe.sh ) then
|
||||||
|
setenv LESSOPEN "|/usr/bin/lesspipe.sh %s"
|
||||||
|
endif
|
2
less.sh
Normal file
2
less.sh
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# less initialization script (sh)
|
||||||
|
[ -x /usr/bin/lesspipe.sh ] && export LESSOPEN="|/usr/bin/lesspipe.sh %s"
|
129
less.spec
Normal file
129
less.spec
Normal file
@ -0,0 +1,129 @@
|
|||||||
|
Name: less
|
||||||
|
Version: 458
|
||||||
|
Release: 2mamba
|
||||||
|
Summary: A text file browser similar to more, but better
|
||||||
|
Group: Applications/File
|
||||||
|
Vendor: openmamba
|
||||||
|
Distribution: openmamba
|
||||||
|
Packager: Davide Madrisan <davide.madrisan@gmail.com>
|
||||||
|
URL: http://www.greenwoodsoftware.com/less/
|
||||||
|
Source0: http://www.greenwoodsoftware.com/less/less-%{version}.tar.gz
|
||||||
|
Source1: lesspipe.sh
|
||||||
|
Source2: less.sh
|
||||||
|
Source3: less.csh
|
||||||
|
License: GPL
|
||||||
|
## AUTOBUILDREQ-BEGIN
|
||||||
|
BuildRequires: glibc-devel
|
||||||
|
BuildRequires: libncurses-devel
|
||||||
|
## AUTOBUILDREQ-END
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||||
|
|
||||||
|
%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
|
||||||
|
# fix permisions
|
||||||
|
chmod 644 COPYING LICENSE NEWS README
|
||||||
|
|
||||||
|
%build
|
||||||
|
%configure \
|
||||||
|
--bindir=/bin \
|
||||||
|
--with-regex=posix
|
||||||
|
|
||||||
|
%make
|
||||||
|
|
||||||
|
%install
|
||||||
|
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
||||||
|
%makeinstall bindir=/bin
|
||||||
|
|
||||||
|
install -d %{buildroot}/etc/profile.d
|
||||||
|
install -D -m 755 %{S:1} %{buildroot}%{_bindir}/lesspipe.sh
|
||||||
|
install -c -m 755 %{S:2} %{buildroot}%{_sysconfdir}/profile.d/less.sh
|
||||||
|
install -c -m 755 %{S:3} %{buildroot}%{_sysconfdir}/profile.d/less.csh
|
||||||
|
|
||||||
|
%clean
|
||||||
|
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root)
|
||||||
|
/bin/less
|
||||||
|
/bin/lessecho
|
||||||
|
/bin/lesskey
|
||||||
|
%{_bindir}/lesspipe.sh
|
||||||
|
%{_sysconfdir}/profile.d/less.sh
|
||||||
|
%{_sysconfdir}/profile.d/less.csh
|
||||||
|
%{_mandir}/man1/less.*
|
||||||
|
%{_mandir}/man1/lessecho.*
|
||||||
|
%{_mandir}/man1/lesskey.*
|
||||||
|
%doc COPYING LICENSE NEWS README
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Sun Jun 09 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 458-2mamba
|
||||||
|
- arm: rebuild to fix 'undefined symbol: __aeabi_idivmod' after ncurses rebuild
|
||||||
|
|
||||||
|
* Thu Apr 25 2013 Automatic Build System <autodist@mambasoft.it> 458-1mamba
|
||||||
|
- automatic version update by autodist
|
||||||
|
|
||||||
|
* Wed Sep 05 2012 Automatic Build System <autodist@mambasoft.it> 451-1mamba
|
||||||
|
- automatic version update by autodist
|
||||||
|
|
||||||
|
* Wed Jun 15 2011 Automatic Build System <autodist@mambasoft.it> 444-1mamba
|
||||||
|
- automatic update by autodist
|
||||||
|
|
||||||
|
* Tue Apr 12 2011 Automatic Build System <autodist@mambasoft.it> 443-1mamba
|
||||||
|
- automatic update by autodist
|
||||||
|
|
||||||
|
* Mon Feb 22 2010 Davide Madrisan <davide.madrisan@gmail.com> 436-2mamba
|
||||||
|
- lesspipe.sh: support *.xz files
|
||||||
|
|
||||||
|
* Mon Jul 27 2009 Automatic Build System <autodist@mambasoft.it> 436-1mamba
|
||||||
|
- automatic update to 436 by autodist
|
||||||
|
|
||||||
|
* Sun Apr 12 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 429-1mamba
|
||||||
|
- automatic update to 429 by autodist
|
||||||
|
|
||||||
|
* Tue Jan 27 2009 Davide Madrisan <davide.madrisan@gmail.com> 424-2mamba
|
||||||
|
- provide an improved version of the LESSOPEN filter
|
||||||
|
- add build requirements
|
||||||
|
|
||||||
|
* Sun Jan 11 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 424-1mamba
|
||||||
|
- automatic update by autodist
|
||||||
|
|
||||||
|
* Mon Aug 25 2008 Aleph0 <aleph0@openmamba.org> 418-2mamba
|
||||||
|
- fix wrong file permissions
|
||||||
|
|
||||||
|
* Mon Jan 07 2008 Aleph0 <aleph0@openmamba.org> 418-1mamba
|
||||||
|
- update to 418
|
||||||
|
|
||||||
|
* Fri Nov 23 2007 Aleph0 <aleph0@openmamba.org> 416-1mamba
|
||||||
|
- update to 416
|
||||||
|
|
||||||
|
* Fri Nov 16 2007 Aleph0 <aleph0@openmamba.org> 415-1mamba
|
||||||
|
- update to 415
|
||||||
|
|
||||||
|
* Wed Oct 17 2007 Aleph0 <aleph0@openmamba.org> 409-1mamba
|
||||||
|
- update to 409
|
||||||
|
|
||||||
|
* Tue Oct 02 2007 Aleph0 <aleph0@openmamba.org> 408-1mamba
|
||||||
|
- update to 408
|
||||||
|
|
||||||
|
* Mon Jul 02 2007 Aleph0 <aleph0@openmamba.org> 406-1mamba
|
||||||
|
- update to 406
|
||||||
|
- added lesspipe.sh an "input preprocessor" for less
|
||||||
|
|
||||||
|
* Mon May 28 2007 Aleph0 <aleph0@openmamba.org> 403-1mamba
|
||||||
|
- update to 403
|
||||||
|
|
||||||
|
* Tue Dec 06 2005 Davide Madrisan <davide.madrisan@qilinux.it> 394-1qilnx
|
||||||
|
- update to version 394 by autospec
|
||||||
|
|
||||||
|
* Wed Mar 09 2005 Davide Madrisan <davide.madrisan@qilinux.it> 382-2qilnx
|
||||||
|
- specfile updates and fixes; mandatory LICENSE file added
|
||||||
|
|
||||||
|
* Fri Feb 27 2004 Davide Madrisan <davide.madrisan@qilinux.it> 382-1qilnx
|
||||||
|
- package updated to the latest available version
|
127
lesspipe.sh
Normal file
127
lesspipe.sh
Normal file
@ -0,0 +1,127 @@
|
|||||||
|
#!/bin/sh -
|
||||||
|
#
|
||||||
|
# To use this filter with less, define LESSOPEN:
|
||||||
|
# export LESSOPEN="|/usr/bin/lesspipe.sh %s"
|
||||||
|
|
||||||
|
# Helper function to list contents of ISO files (CD images)
|
||||||
|
iso_list() {
|
||||||
|
isoinfo -d -i "$1"
|
||||||
|
isoinfo -d -i "$1" | grep -q ^Rock\.Ridge && iiopts="$iiopts -R"
|
||||||
|
isoinfo -d -i "$1" | grep -q ^Joliet && iiopts="$iiopts -J"
|
||||||
|
echo
|
||||||
|
isoinfo -f $iiopts -i "$1"
|
||||||
|
}
|
||||||
|
|
||||||
|
lesspipe() {
|
||||||
|
case `echo "$1" | tr '[:upper:]' '[:lower:]'` in
|
||||||
|
*.[1-9n]|*.man|*.[1-9n].bz2|*.man.bz2|*.[1-9].gz|*.[1-9]x.gz|*.man.gz|*.[1-9].xz|*.[1-9]x.xz|*.man.xz)
|
||||||
|
case `echo "$1" | tr '[:upper:]' '[:lower:]'` in
|
||||||
|
*.gz) DECOMPRESSOR="gunzip -c" ;;
|
||||||
|
*.bz2) DECOMPRESSOR="bunzip2 -c" ;;
|
||||||
|
*.xz) DECOMPRESSOR="unxz -c" ;;
|
||||||
|
*) DECOMPRESSOR="cat" ;;
|
||||||
|
esac
|
||||||
|
if $DECOMPRESSOR -- "$1" | file - | grep -q troff; then
|
||||||
|
if echo "$1" | grep -q ^/; then #absolute path
|
||||||
|
man -- "$1" | cat -s
|
||||||
|
else
|
||||||
|
man -- "./$1" | cat -s
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
$DECOMPRESSOR -- "$1"
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
|
||||||
|
*.tar.gz|*.tgz|*.tar.z|*.tar.dz)
|
||||||
|
tar tzvf "$1" ;;
|
||||||
|
|
||||||
|
*.tar.xz)
|
||||||
|
tar Jtvvf "$1" ;;
|
||||||
|
|
||||||
|
*.xz)
|
||||||
|
if [ -x "`which xz`" ]; then xz -dc -- "$1"
|
||||||
|
else echo "No xz available"; fi ;;
|
||||||
|
|
||||||
|
*.tar.bz2|*.tbz2)
|
||||||
|
if [ -x "`which bunzip2`" ]; then bunzip2 -dc "$1" | tar tvvf -
|
||||||
|
else echo "No bunzip2 available"; fi ;;
|
||||||
|
|
||||||
|
*.bin|*.raw)
|
||||||
|
if [ -x "`which isoinfo`" ]; then
|
||||||
|
file "$1" | grep -q ISO\.9660 && iso_list "$1"
|
||||||
|
else
|
||||||
|
echo "No isoinfo available"
|
||||||
|
echo "Install mkisofs to view ISO images"
|
||||||
|
fi ;;
|
||||||
|
|
||||||
|
*.bz2)
|
||||||
|
if [ -x "`which bunzip2`" ]; then bunzip2 -dc "$1"
|
||||||
|
else echo "No bunzip2 available"; fi ;;
|
||||||
|
|
||||||
|
*.cpi|*.cpio)
|
||||||
|
cpio -itv < "$1" ;;
|
||||||
|
|
||||||
|
*.gz|*.z|*.dz)
|
||||||
|
gzip -dc "$1" ;;
|
||||||
|
|
||||||
|
*.gif|*.jpeg|*.jpg|*.pcd|*.png|*.tga|*.tiff|*.tif)
|
||||||
|
if [ -x "`which identify`" ]; then
|
||||||
|
identify "$1"
|
||||||
|
else
|
||||||
|
echo "No identify available"
|
||||||
|
echo "Install ImageMagick to browse images"
|
||||||
|
fi ;;
|
||||||
|
|
||||||
|
*.iso)
|
||||||
|
if [ -x "`which isoinfo`" ]; then iso_list "$1"
|
||||||
|
else
|
||||||
|
echo "No isoinfo available"
|
||||||
|
echo "Install cdrtools to view ISO images"
|
||||||
|
fi ;;
|
||||||
|
|
||||||
|
*.lha|*.lzh)
|
||||||
|
if [ -x "`which lha`" ]; then lha v "$1"
|
||||||
|
else echo "No lha available"; fi ;;
|
||||||
|
|
||||||
|
*.pdf)
|
||||||
|
if [ -x "`which pdftotext`" ]; then pdftotext "$1" -
|
||||||
|
else echo "No pdftotext available"; fi ;;
|
||||||
|
|
||||||
|
*.rar|*.r[0-9][0-9])
|
||||||
|
if [ -x "`which unrar`" ]; then unrar v "$1"
|
||||||
|
else echo "No rar or unrar available"; fi ;;
|
||||||
|
|
||||||
|
*.rpm)
|
||||||
|
if [ -x "`which rpm`" ]; then
|
||||||
|
echo "$1:"; rpm -q -i -p "$1"
|
||||||
|
echo
|
||||||
|
echo '*** Contents:'
|
||||||
|
rpm -qlp "$1"
|
||||||
|
else
|
||||||
|
echo "rpm isn't available, no query on rpm package possible"
|
||||||
|
fi ;;
|
||||||
|
|
||||||
|
*.tar)
|
||||||
|
tar tvvf "$1" ;;
|
||||||
|
|
||||||
|
*.jar|*.war|*.ear|*.xpi)
|
||||||
|
if [ -x "`which unzip`" ]; then unzip -v "$1";
|
||||||
|
else echo "No unzip available"; fi ;;
|
||||||
|
|
||||||
|
*.zip)
|
||||||
|
zipinfo -- "$1" ;;
|
||||||
|
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
|
if [ -d "$1" ] ; then
|
||||||
|
/bin/ls -alF -- "$1"
|
||||||
|
else
|
||||||
|
# Allow for user defined filters
|
||||||
|
if [ -x ~/.lessfilter ]; then
|
||||||
|
~/.lessfilter "$1"
|
||||||
|
exit 0
|
||||||
|
else
|
||||||
|
lesspipe "$1" 2>/dev/null
|
||||||
|
fi
|
||||||
|
fi
|
Loading…
Reference in New Issue
Block a user