From e8ee0a2388a8c2b373fb13bee80461a3909203b9872e9a4af7144d3c76b27564 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 15 Jun 2020 07:58:52 +0000 Subject: [PATCH 1/2] - Update to the released version 0.6 (all changes since 0.5): - bounded time syntax highlighting using the :set redrawtime option - support optional count for sam's text commands e.g. :i3/-/ - make in visual mode match next occurence of existing selection - warn when attempting to write to an existing file - improved file change detection based on inode instead of path information - fix file saves with modifications in file pre-save events - fix save on file systems without fsync(2) support on directory descriptors - do not unlink file~ when saving file - introduce distinct vis-menu(1) exit codes - modify Lua package.path to include /init.lua - performance improvements for the HTML, XML and YAML lexers - new Julia and Elm lexers, better defaults for standard text lexer - support optional exit status in :q and :qall commands - better temporary file creation using mkstemp(2) - performance improvements in highlight matching parentheses - improved behavior of ^ and $ in searches and looping commands - improved search wrap around behavior - new :set layout option to specify window orientation - improved filetype detection by matching known filenames exactly - support DragonFly BSD in configure script - better manual page, fixed warnings - removed gp, gP, gq - implement g~, gu and gU using tr(1), they are no longer OBS-URL: https://build.opensuse.org/package/show/editors/vis?expand=0&rev=10 --- _service | 2 +- vis-0.5+git.1590819266.c37f09e.tar.xz | 3 -- vis-0.6.tar.gz | 3 ++ vis.changes | 50 +++++++++++++++++++++++++++ vis.spec | 21 +++++------ 5 files changed, 65 insertions(+), 14 deletions(-) delete mode 100644 vis-0.5+git.1590819266.c37f09e.tar.xz create mode 100644 vis-0.6.tar.gz diff --git a/_service b/_service index 0ec0e86..b42df33 100644 --- a/_service +++ b/_service @@ -9,7 +9,7 @@ *.tar - xz + gz diff --git a/vis-0.5+git.1590819266.c37f09e.tar.xz b/vis-0.5+git.1590819266.c37f09e.tar.xz deleted file mode 100644 index 1ba07c2..0000000 --- a/vis-0.5+git.1590819266.c37f09e.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5545151592e2c5a3205d7f53c1bf50e1dfeaf74f5110232cbcff88379b363742 -size 369876 diff --git a/vis-0.6.tar.gz b/vis-0.6.tar.gz new file mode 100644 index 0000000..f4718e0 --- /dev/null +++ b/vis-0.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9ab4a3f1c5953475130b3c286af272fe5cfdf7cbb7f9fbebd31e9ea4f34e487d +size 397707 diff --git a/vis.changes b/vis.changes index e0f2690..73f81b2 100644 --- a/vis.changes +++ b/vis.changes @@ -1,3 +1,53 @@ +------------------------------------------------------------------- +Mon Jun 15 07:25:48 UTC 2020 - Matej Cepl + +- Update to the released version 0.6 (all changes since 0.5): + - bounded time syntax highlighting using the :set redrawtime + option + - support optional count for sam's text commands e.g. :i3/-/ + - make in visual mode match next occurence of existing + selection + - warn when attempting to write to an existing file + - improved file change detection based on inode instead of path + information + - fix file saves with modifications in file pre-save events + - fix save on file systems without fsync(2) support on + directory descriptors + - do not unlink file~ when saving file + - introduce distinct vis-menu(1) exit codes + - modify Lua package.path to include /init.lua + - performance improvements for the HTML, XML and YAML lexers + - new Julia and Elm lexers, better defaults for standard text + lexer + - support optional exit status in :q and :qall commands + - better temporary file creation using mkstemp(2) + - performance improvements in highlight matching parentheses + - improved behavior of ^ and $ in searches and looping commands + - improved search wrap around behavior + - new :set layout option to specify window orientation + - improved filetype detection by matching known filenames + exactly + - support DragonFly BSD in configure script + - better manual page, fixed warnings + - removed gp, gP, gq + - implement g~, gu and gU using tr(1), they are no longer + operators + - removed v and V in operator pending mode + - avoid crash if $TERM is unset + - keep selections after :> command + - normalize selections after : command execution + - show pending input queue content in status bar + - make r insert a new line + - new :set loadmethod option, valid values are read, mmap or + auto + - always apply :| command to existing selections + - fix terminal UI on serial console + - various code cleanups, removal of VLA + - resets count, if applicable + - fix :X and :Y commands which were interchanged + - don't strip executables by default, provide install-strip + target + ------------------------------------------------------------------- Fri Jun 05 13:33:07 UTC 2020 - mcepl@cepl.eu diff --git a/vis.spec b/vis.spec index 98608b7..940649d 100644 --- a/vis.spec +++ b/vis.spec @@ -17,13 +17,13 @@ Name: vis -Version: 0.5+git.1590819266.c37f09e +Version: 0.6 Release: 0 Summary: An editor combining the strengths of both vi(m) and sam License: ISC Group: Productivity/Text/Editors URL: https://github.com/martanne/vis -Source: %{name}-%{version}.tar.xz +Source: https://github.com/martanne/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildRequires: libtermkey-devel BuildRequires: lua-devel BuildRequires: lua-lpeg @@ -42,20 +42,21 @@ It extends vi's modal editing with built-in support for multiple cursors/selecti %autosetup %build -# FIXME: you should use the %%configure macro -./configure --prefix="%{_prefix}" +export CFLAGS="%{optflags} -fcommon" +%configure %make_build debug %install %make_install %check -# According to the debian/rules: -# The vim tests harness is not solid, let's skip them for the moment. -# Upstream mentioned the possibility of phasing them out entirely. -make -C test/core -# No busted yet make -C test/lua -make -C test/vis +# Tests not available in the released version. +# # According to the debian/rules: +# # The vim tests harness is not solid, let's skip them for the moment. +# # Upstream mentioned the possibility of phasing them out entirely. +# make -C test/core +# # No busted yet make -C test/lua +# make -C test/vis %files %{_bindir}/vis* From 0628f60235fe0b8c280899d7bcff44a48126e966630c4defcdcf52bc36b92105 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 15 Jun 2020 10:44:49 +0000 Subject: [PATCH 2/2] Add tests back. OBS-URL: https://build.opensuse.org/package/show/editors/vis?expand=0&rev=11 --- vis-test-0.4.tar.gz | 3 +++ vis.spec | 20 +++++++++++--------- 2 files changed, 14 insertions(+), 9 deletions(-) create mode 100644 vis-test-0.4.tar.gz diff --git a/vis-test-0.4.tar.gz b/vis-test-0.4.tar.gz new file mode 100644 index 0000000..6343b35 --- /dev/null +++ b/vis-test-0.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e206537893182d471efc4e77491fef78006d2f0c9ec12b1a2eaca3df06954d2c +size 98703 diff --git a/vis.spec b/vis.spec index 940649d..8ca0fb2 100644 --- a/vis.spec +++ b/vis.spec @@ -16,6 +16,7 @@ # +%define test_version 0.4 Name: vis Version: 0.6 Release: 0 @@ -23,7 +24,8 @@ Summary: An editor combining the strengths of both vi(m) and sam License: ISC Group: Productivity/Text/Editors URL: https://github.com/martanne/vis -Source: https://github.com/martanne/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz +Source0: https://github.com/martanne/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz +Source1: https://github.com/martanne/vis-test/releases/download/v%{test_version}/vis-test-%{test_version}.tar.gz BuildRequires: libtermkey-devel BuildRequires: lua-devel BuildRequires: lua-lpeg @@ -39,7 +41,8 @@ Vis aims to be a modern, legacy free, simple yet efficient editor combining the It extends vi's modal editing with built-in support for multiple cursors/selections and combines it with sam's structural regular expression based command language. %prep -%autosetup +%setup -q +tar -xC test/ --strip-components 1 -f %{SOURCE1} %build export CFLAGS="%{optflags} -fcommon" @@ -50,13 +53,12 @@ export CFLAGS="%{optflags} -fcommon" %make_install %check -# Tests not available in the released version. -# # According to the debian/rules: -# # The vim tests harness is not solid, let's skip them for the moment. -# # Upstream mentioned the possibility of phasing them out entirely. -# make -C test/core -# # No busted yet make -C test/lua -# make -C test/vis +# According to the debian/rules: +# The vim tests harness is not solid, let's skip them for the moment. +# Upstream mentioned the possibility of phasing them out entirely. +make -C test/core +# No busted yet make -C test/lua +make -C test/vis %files %{_bindir}/vis*