File lesspipe.spec of Package lesspipe
#
# spec file for package lesspipe (Version 1.55)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: lesspipe
License: GPL
Group: System/Tools
AutoReqProv: on
Version: 1.55
Release: 1
Url: http://www-zeuthen.desy.de/~friebel/unix/lesspipe.html
Source0: %{name}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: tar, groff, binutils, cpio, perl,
Requires: dvi2tty, html2text, ghostscript-library
Requires: id3v2, ImageMagick, genisoimage
Recommends: gpg2, cabextract, 7za, dpkg
Summary: An input filter for the pager less
%description
The script runs under a ksh compliant shell (ksh, bash, zsh) and allows
to view files with binary content, compressed files, archives and files
contained in archives. A large and growing number of formats are
supported both as plain and compressed files using compress, gzip, bzip2
or zip.
Experimental support for syntax highlighting was added through a perl
script code2color which is derived from Peter Palfraders code2html
script. The script code2color is written in perl and has colorizing
support for the languages ada, asm, awk, c, c++, groff, html, xml, java,
javascript, lisp, m4, make, pascal, patch, perl, povray, python, ruby,
shellscript and sql. Syntax highlighting is only activated if the
environment variable LESS is existing and contains the option -R or -r
or less is called with one of these options. This guarantees, that
instead of literal escape sequences colors are displayed. The detection
of the -r/-R presence at runtime is rather dependent on the operating
system and may not work in all cases.
Authors:
--------
Wolfgang Friebel, DESY <Wolfgang.Friebel@desy.de>
%prep
%setup -q -n %{name}-%{version}
%build
./configure --yes --prefix=%{_prefix}
make
%install
%{__install} -D -m 0755 lesspipe.sh %{buildroot}%{_bindir}/lesspipe.sh
%{__install} -D -m 0755 sxw2txt %{buildroot}%{_bindir}/sxw2txt
%{__install} -D -m 0755 code2color %{buildroot}%{_bindir}/code2color
%{__install} -D -m 0644 lesspipe.1 %{buildroot}%{_mandir}/man1/lesspipe.1
%files
%defattr(-, root,root)
%{_bindir}/lesspipe.sh
%{_bindir}/code2color
%{_bindir}/sxw2txt
%doc README INSTALL
%doc english.txt german.txt
%{_mandir}/man1/lesspipe.1*
%changelog