less/less.spec
Cristian Rodríguez 3c8b3c7057 Accepting request 71702 from home:rudi_m:branches:Base:System
- bump version 443
  * Change search behavior such that when a search is given an explicit pattern,
    the entire displayed screen is included in the search and not just the
    portion after the target line.
  * Add -A option to change search behavior to the old way: only the portion of
    the screen after the target line is searched.
  * Add %F formatting to prompt strings, replaced by the last component of the
    input file.
  * Control-G while editing a command exits the command.
  * Less now exits with status 2 if control-C is pressed and -K is in effect.
  * Fix "ungetc overflow" when passing long commands via the -p option.
  * Fix bug in using line filtering via the & command in combination with -i and
    -I.
  * Fix bug in handling negative arguments to the -j option.
  * Fix bug in handling %t in prompt strings.
  * Improve handling of long option names.
  * Improve percentage calculation for very large files.
- remove mouse patch because
  * conflicting short opt -A since version 443, see changes above
  * was working for xterm only so probably nobody is using it

OBS-URL: https://build.opensuse.org/request/show/71702
OBS-URL: https://build.opensuse.org/package/show/Base:System/less?expand=0&rev=15
2011-05-28 21:12:21 +00:00

111 lines
2.9 KiB
RPMSpec

#
# spec file for package less
#
# Copyright (c) 2011 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: less
BuildRequires: ncurses-devel
License: GPLv3
Group: Productivity/Text/Utilities
Obsoletes: jless
Provides: normal-less jless
Requires: file
AutoReqProv: on
Version: 443
Release: 1
Summary: Text File Browser and Pager Similar to more
Url: http://www.greenwoodsoftware.com/less/
Source: %{name}-%{version}.tar.bz2
Source1: README.SuSE
Source2: lessopen.sh
Source3: lessclose.sh
Source4: lesskey.src
Patch2: %{name}-429-lessecho-man.patch
Patch3: %{name}-443-speed.patch
Patch22: %{name}-429-strict_aliasing.patch
Patch24: %{name}-429-terminate.patch
Patch25: %{name}-429-widechars.patch
Patch26: %{name}-429-shell.patch
Patch27: %{name}-429-save_line_position.patch
Patch28: %{name}-429-more.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
less is a text file browser and pager similar to more. It allows
backward as well as forward movement within a file. Also, less does not
have to read the entire input file before starting. It is possible to
start an editor at any time from within less.
Authors:
--------
Mark Nudelman <markn@greenwoodsoftware.com>
%prep
%setup -q
%patch2
%patch3
%patch22
%patch24
%patch25
%patch26
%patch27
%patch28
#
# the ./configure script is not writable for the normal user
# rather fix permissions for all files
chmod u+w *
#
cp %{S:1} %{S:2} %{S:3} %{S:4} .
%build
autoreconf -fiv
%configure --with-pic
#
# regenerate help.c because less.hlp was patched
make mkhelp
./mkhelp <less.hlp >help.c
#
# build less
make %{?_smp_mflags}
%install
make DESTDIR=$RPM_BUILD_ROOT/ install
#
# lesskey
install -m 755 -d $RPM_BUILD_ROOT/%{_sysconfdir}
install -m 644 lesskey.src $RPM_BUILD_ROOT/%{_sysconfdir}/lesskey
$RPM_BUILD_ROOT%{_bindir}/lesskey -o $RPM_BUILD_ROOT%{_sysconfdir}/lesskey.bin $RPM_BUILD_ROOT%{_sysconfdir}/lesskey
#
# preprocessor
install -m 755 lessopen.sh lessclose.sh $RPM_BUILD_ROOT/%{_bindir}
%__chmod -x LICENSE COPYING NEWS README.SuSE
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%doc LICENSE COPYING NEWS README.SuSE
%doc %{_mandir}/*/*
%config %{_sysconfdir}/*
%{_bindir}/*
%changelog