Group :: File tools
RPM: less
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
# Unpackaged files in buildroot should terminate build
%define _unpackaged_files_terminate_build 1
Name: less
Version: 424
Release: alt3
Summary: A text file browser similar to more, but better
License: GPLv3+
Group: File tools
Url: http://www.greenwoodsoftware.com/less/
Packager: Slava Semushin <php-coder at altlinux.ru>
# http://www.greenwoodsoftware.com/less/less-%version.tar.gz
Source: less-%version.tar
Source1: http://www.greenwoodsoftware.com/less/faq.html
Source2: lesspipe
Source3: lessfile
Source4: lesspipe.sh
Source5: lessfile.sh
Source6: lessclose.sh
Source7: zless
Source8: zless.1
Source9: lesspipe.1
Source10: less.sh
Source11: less.csh
Patch1: less-394-alt-configure.patch
Patch3: less-394-rh-Foption.patch
Patch4: less-394-rh-search.patch
Patch6: less-394-suse-strict-aliasing.patch
Patch7: less-alt-old-bot-at-start.patch
Patch8: less-alt-pcre_include_path.patch
Requires: file, mktemp >= 1:1.3.1
# due to bzless
Conflicts: bzip2 < 0:1.0.1-ipl6mdk
# due to zmore
Conflicts: gzip-utils < 0:1.3.5-alt1
BuildRequires: libtinfo-devel libpcre-devel
%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).
%prep
%setup
%patch1 -p1
%patch3 -p1
%patch4 -p1
%patch6 -p1
%patch7 -p2
%patch8 -p2
install -pm644 %_sourcedir/faq.html .
bzip2 -9k NEWS
%build
autoconf
%configure --with-regex=pcre
%make_build
%install
mkdir -p %buildroot{%_sysconfdir/profile.d,%_datadir/less}
%makeinstall
install -pm755 %_sourcedir/{lesspipe,lessfile,zless} \
%buildroot%_bindir/
install -pm755 %_sourcedir/{lesspipe,lessfile,lessclose}.sh \
%buildroot%_datadir/less/
install -pm644 %_sourcedir/{lesspipe,zless}.1 \
%buildroot%_man1dir/
install -pm755 %_sourcedir/less.{sh,csh} \
%buildroot%_sysconfdir/profile.d/
ln -s zless %buildroot%_bindir/zmore
ln -s zless %buildroot%_bindir/bzmore
ln -s zless %buildroot%_bindir/bzless
ln -s zless.1 %buildroot%_man1dir/zmore.1
ln -s zless.1 %buildroot%_man1dir/bzmore.1
ln -s zless.1 %buildroot%_man1dir/bzless.1
ln -s lesspipe.1 %buildroot%_man1dir/lessfile.1
%files
%config(noreplace) %_sysconfdir/profile.d/less.*
%_bindir/*
%_datadir/less
%_man1dir/*
%doc NEWS.bz2 *.html
%changelog
…
Full changelog you can see here
%define _unpackaged_files_terminate_build 1
Name: less
Version: 424
Release: alt3
Summary: A text file browser similar to more, but better
License: GPLv3+
Group: File tools
Url: http://www.greenwoodsoftware.com/less/
Packager: Slava Semushin <php-coder at altlinux.ru>
# http://www.greenwoodsoftware.com/less/less-%version.tar.gz
Source: less-%version.tar
Source1: http://www.greenwoodsoftware.com/less/faq.html
Source2: lesspipe
Source3: lessfile
Source4: lesspipe.sh
Source5: lessfile.sh
Source6: lessclose.sh
Source7: zless
Source8: zless.1
Source9: lesspipe.1
Source10: less.sh
Source11: less.csh
Patch1: less-394-alt-configure.patch
Patch3: less-394-rh-Foption.patch
Patch4: less-394-rh-search.patch
Patch6: less-394-suse-strict-aliasing.patch
Patch7: less-alt-old-bot-at-start.patch
Patch8: less-alt-pcre_include_path.patch
Requires: file, mktemp >= 1:1.3.1
# due to bzless
Conflicts: bzip2 < 0:1.0.1-ipl6mdk
# due to zmore
Conflicts: gzip-utils < 0:1.3.5-alt1
BuildRequires: libtinfo-devel libpcre-devel
%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).
%prep
%setup
%patch1 -p1
%patch3 -p1
%patch4 -p1
%patch6 -p1
%patch7 -p2
%patch8 -p2
install -pm644 %_sourcedir/faq.html .
bzip2 -9k NEWS
%build
autoconf
%configure --with-regex=pcre
%make_build
%install
mkdir -p %buildroot{%_sysconfdir/profile.d,%_datadir/less}
%makeinstall
install -pm755 %_sourcedir/{lesspipe,lessfile,zless} \
%buildroot%_bindir/
install -pm755 %_sourcedir/{lesspipe,lessfile,lessclose}.sh \
%buildroot%_datadir/less/
install -pm644 %_sourcedir/{lesspipe,zless}.1 \
%buildroot%_man1dir/
install -pm755 %_sourcedir/less.{sh,csh} \
%buildroot%_sysconfdir/profile.d/
ln -s zless %buildroot%_bindir/zmore
ln -s zless %buildroot%_bindir/bzmore
ln -s zless %buildroot%_bindir/bzless
ln -s zless.1 %buildroot%_man1dir/zmore.1
ln -s zless.1 %buildroot%_man1dir/bzmore.1
ln -s zless.1 %buildroot%_man1dir/bzless.1
ln -s lesspipe.1 %buildroot%_man1dir/lessfile.1
%files
%config(noreplace) %_sysconfdir/profile.d/less.*
%_bindir/*
%_datadir/less
%_man1dir/*
%doc NEWS.bz2 *.html
%changelog
…
Full changelog you can see here