File lesspipe.spec of Package lesspipe
#
# spec file for package lesspipe
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2013 Asterios Dramis <asterios.dramis@gmail.com>.
#
# 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/
#
Name: lesspipe
Version: 1.82
Release: 0
Summary: Input Filter for the Pager "less"
License: GPL-2.0+
Group: System/Console
Url: http://www-zeuthen.desy.de/~friebel/unix/lesspipe.html
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
#****
# openSUSE packages (recommended)
#****
Recommends: ImageMagick
Recommends: binutils
Recommends: cabextract
Recommends: cpio
%if 0%{?suse_version} > 1220
Recommends: dpkg
%else
Recommends: deb
%endif
Recommends: djvulibre
Recommends: fastjar
Recommends: file
Recommends: gpg2
Recommends: grep
Recommends: groff
Recommends: html2text
Recommends: id3v2
Recommends: lzip
Recommends: ncurses-utils
Recommends: p7zip
Recommends: perl
# perl also provides perldoc (needed by the package)
Recommends: /usr/bin/perldoc
%if 0%{?suse_version} > 1210
Recommends: perl-Proc-ProcessTable
%endif
Recommends: perl-Storable
Recommends: plutil
Recommends: poppler-tools
Recommends: sed
Recommends: unrar
Recommends: unzip
Recommends: xz
# mkisofs or genisoimage can provide isoinfo
Recommends: /usr/bin/isoinfo
#****
# openSUSE packages (replacements for recommended entries)
#****
Suggests: ghostscript
Suggests: links
Suggests: lynx
%if 0%{?suse_version} > 1140
Suggests: python-Pygments
%else
Suggests: python-pygments
%endif
Suggests: w3m
#****
# openSUSE packages from official devel projects (recommended)
#****
Recommends: perl-Data-Dumper
Recommends: xlhtml
# xlhtml also provides ppthtml (needed by the package)
Recommends: /usr/bin/ppthtml
#****
# openSUSE packages from official devel projects (replacements for recommended entries)
#****
Suggests: catdoc
Suggests: elinks
# also available in Packman
Suggests: perl-MP3-Tag
#****
# Packman packages (replacements for recommended entries)
#****
Suggests: mp3info
Suggests: rar
#****
# OBS packages (not official devel projects) (recommended)
#****
Recommends: dvi2tty
Recommends: antiword
Recommends: pstotext
Recommends: unrtf
#****
# OBS packages (not official devel projects) (replacements for recommended entries)
#****
Suggests: o3read
Suggests: rpmunpack
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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. Lesspipe 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.
%prep
%setup -q
%build
./configure --yes --prefix=%{_prefix}
%install
%make_install
%files
%defattr(-,root,root,-)
%doc COPYING ChangeLog README TODO german.txt contrib/less_wrapper
%{_bindir}/code2color
%{_bindir}/lesspipe.sh
%{_bindir}/sxw2txt
%{_bindir}/tarcolor
%doc %{_mandir}/man1/lesspipe.1%{ext_man}
%changelog