diff --git a/less-429-shell.patch b/less-429-shell.patch index e8eabb4..5631163 100644 --- a/less-429-shell.patch +++ b/less-429-shell.patch @@ -2,20 +2,20 @@ Index: filename.c =================================================================== --- filename.c.orig +++ filename.c -@@ -585,7 +585,7 @@ shellcmd(cmd) +@@ -574,7 +574,7 @@ shellcmd(cmd) #if HAVE_SHELL char *shell; - shell = lgetenv("SHELL"); + shell = lgetenv("LESSSHELL"); - if (shell != NULL && *shell != '\0') + if (!isnullenv(shell)) { char *scmd; Index: less.hlp =================================================================== --- less.hlp.orig +++ less.hlp -@@ -99,7 +99,7 @@ +@@ -101,7 +101,7 @@ ___<_n_a_m_e_> Display the setting of an option, by name. +_c_m_d Execute the less cmd each time a new file is examined. @@ -28,7 +28,7 @@ Index: less.nro =================================================================== --- less.nro.orig +++ less.nro -@@ -411,7 +411,7 @@ current file. +@@ -419,7 +419,7 @@ current file. A pound sign (#) is replaced by the name of the previously examined file. "!!" repeats the last shell command. "!" with no shell command simply invokes a shell. @@ -37,7 +37,7 @@ Index: less.nro or defaults to "sh". On MS-DOS and OS/2 systems, the shell is the normal command processor. .IP "| shell-command" -@@ -1732,7 +1732,7 @@ compatible mode. +@@ -1790,7 +1790,7 @@ compatible mode. .IP PATH User's search path (used to find a lesskey file on MS-DOS and OS/2 systems). @@ -50,7 +50,7 @@ Index: lsystem.c =================================================================== --- lsystem.c.orig +++ lsystem.c -@@ -128,7 +128,7 @@ lsystem(cmd, donemsg) +@@ -133,7 +133,7 @@ lsystem(cmd, donemsg) */ #if HAVE_SHELL p = NULL; diff --git a/less-530.sig b/less-530.sig deleted file mode 100644 index ca8bc75..0000000 Binary files a/less-530.sig and /dev/null differ diff --git a/less-530.tar.gz b/less-530.tar.gz deleted file mode 100644 index 35388d4..0000000 --- a/less-530.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:503f91ab0af4846f34f0444ab71c4b286123f0044a4964f1ae781486c617f2e2 -size 339723 diff --git a/less-551.sig b/less-551.sig new file mode 100644 index 0000000..7e725fb Binary files /dev/null and b/less-551.sig differ diff --git a/less-551.tar.gz b/less-551.tar.gz new file mode 100644 index 0000000..3d69eaf --- /dev/null +++ b/less-551.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ff165275859381a63f19135a8f1f6c5a194d53ec3187f94121ecd8ef0795fe3d +size 347007 diff --git a/less.changes b/less.changes index 1716bd3..b39e0e8 100644 --- a/less.changes +++ b/less.changes @@ -1,3 +1,20 @@ +------------------------------------------------------------------- +Sat Sep 21 18:59:37 UTC 2019 - Andreas Stieger + +- less 551: + * Add --mouse option + * Add --wheel-lines option + * Add --no-histdups option + * Add --save-marks option + * Support PCRE2 regular expression library + * Redraw screen on SIGWINCH even if screen size doesn't change + * Shell-escape filenames in history so they can be used again + * Ring bell if user enters invalid long option name + * Use PCRE_UTF8 flag for pcre regular expressions when in UTF-8 mode + * Don't count lines in initial screen if using -X with -F + * Fix bug in v command on empty file + * Fix bug in v command when filename contains shell metacharacters + ------------------------------------------------------------------- Sun Apr 29 09:04:21 UTC 2018 - kstreitova@suse.com diff --git a/less.spec b/less.spec index f9cd5c9..2d0bb28 100644 --- a/less.spec +++ b/less.spec @@ -1,7 +1,7 @@ # # spec file for package less # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,17 +12,17 @@ # 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/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # Name: less -Version: 530 +Version: 551 Release: 0 Summary: Text File Browser and Pager Similar to more License: GPL-3.0-or-later OR BSD-2-Clause Group: Productivity/Text/Utilities -Url: http://www.greenwoodsoftware.com/less/ +URL: http://www.greenwoodsoftware.com/less/ Source: http://www.greenwoodsoftware.com/less/less-%{version}.tar.gz Source1: README.SUSE Source2: lessopen.sh @@ -35,8 +35,8 @@ Patch1: less-429-save_line_position.patch Patch2: less-429-more.patch BuildRequires: automake BuildRequires: ncurses-devel +BuildRequires: pkgconfig Requires: file -BuildRoot: %{_tmppath}/%{name}-%{version}-build %description less is a text file browser and pager similar to more. It allows @@ -81,7 +81,6 @@ install -m 755 lessopen.sh lessclose.sh %{buildroot}/%{_bindir} chmod -x LICENSE COPYING NEWS README.SUSE %files -%defattr(-, root, root) %license LICENSE COPYING %doc NEWS README.SUSE %{_mandir}/*/*