2020-02-26 09:38:45 +01:00
#
# spec file for package vis
#
2023-02-28 12:12:24 +01:00
# Copyright (c) 2023 SUSE LLC
2020-02-26 09:38:45 +01:00
#
# 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 https://bugs.opensuse.org/
#
- Update to the released version 0.7:
This is mostly a bug fix release with fixes for a few cases of
undefined behavior and preliminary work for experimentation with
different core text management data structures and general editor
architecture.
- fix UB in core text management data structure
- text refactoring, splitting out reusable text iterator and I/O
components
- new *at() variants taking directory descriptor for file load/save
API
- more efficient initial file read, avoiding spurious syscalls and
copy
- text API cleanups, const correctness improvements
- increased test coverage for core text data structure
- support for Lua 5.4
- Lua API improvements: vis.mark, vis.register, vis.win.file.modified
- and support for terminal CSI events
- NetBSD support
- new :set ignorecase option to search case independently
- new visual mode mapping <C-a> to select all matching selections
- fix mappings involving non-leading <C-c>
- minor file detection fixes for racket, node.js modules, Typescript
and liliypond
- new lexers for Zig, meson build system, Mikrotik RouterOS scripts,
Gemini
- improved inner word text object and its use for <C-n> in normal mode
- improved <C-n> behavior in visual mode
- removed ie, ae inner/outer entire text object, use :, as shorthand
for :0,$
- removed pairwise selection combinators z>, z<, z-, z+, z&, z|
OBS-URL: https://build.opensuse.org/package/show/editors/vis?expand=0&rev=13
2020-12-08 19:46:59 +01:00
%define test_version 0.5
2020-02-26 09:38:45 +01:00
Name : vis
2024-07-10 14:19:17 +02:00
Version : 0.9
2020-02-26 09:38:45 +01:00
Release : 0
Summary : An editor combining the strengths of both vi(m) and sam
2020-02-27 00:07:14 +01:00
License : ISC
2020-02-26 09:38:45 +01:00
Group : Productivity/Text/Editors
2024-07-10 14:19:17 +02:00
URL : https://sr.ht/~martanne/vis/
Source0 : https://git.sr.ht/~martanne/vis/archive/v%{version} .tar.gz
Source1 : https://git.sr.ht/~martanne/vis-test/archive/v%{test_version} .tar.gz
# PATCH-FIX-UPSTREAM vis-test-builtin_strncpy-bounds.patch mcepl@suse.com
# patch from https://git.sr.ht/~martanne/vis-test/commit/efafa3c17826
Patch0 : vis-test-builtin_strncpy-bounds.patch
2021-02-06 00:00:53 +01:00
BuildRequires : libselinux-devel
2020-02-26 09:38:45 +01:00
BuildRequires : libtermkey-devel
BuildRequires : lua-devel
BuildRequires : lua-lpeg
BuildRequires : ncurses-devel
BuildRequires : tar
BuildRequires : tre-devel
Requires : lua
2023-07-20 12:33:11 +02:00
Suggests : par_text
2020-02-26 09:38:45 +01:00
ExclusiveArch : x86_64 %{ix86}
2023-02-28 12:12:24 +01:00
Suggests : par_text
2020-02-26 09:38:45 +01:00
%description
Vis aims to be a modern, legacy free, simple yet efficient editor combining the strengths of both vi(m) and sam.
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
2024-07-10 14:19:17 +02:00
%setup -q -n %{name} -v%{version}
2023-02-28 12:12:24 +01:00
2020-06-15 12:44:49 +02:00
tar -xC test/ --strip-components 1 -f %{SOURCE1}
2020-02-26 09:38:45 +01:00
2024-07-10 14:19:17 +02:00
%patch -p1 -P 0
2020-02-26 09:38:45 +01:00
%build
2020-06-15 09:58:52 +02:00
export CFLAGS=" %{optflags} - f c o m m o n "
%configure
2020-02-26 09:38:45 +01:00
%make_build debug
%install
2020-02-26 09:45:17 +01:00
%make_install
2020-02-26 09:38:45 +01:00
%check
2021-02-06 00:00:53 +01:00
# According to the debian/rules:
2020-06-15 12:44:49 +02:00
# The vim tests harness is not solid, let's skip them for the moment.
# Upstream mentioned the possibility of phasing them out entirely.
2023-07-20 12:33:11 +02:00
%make_build -C test/core
2020-06-15 12:44:49 +02:00
# No busted yet make -C test/lua
2023-07-20 12:33:11 +02:00
%make_build -C test/vis
2020-02-26 09:38:45 +01:00
%files
%{_bindir} /vis*
%{_datadir} /vis
%{_mandir} /man1/*
%dir %{_datadir} /doc/vis
%{_datadir} /doc/vis/LICENSE
%{_datadir} /doc/vis/README.md
%changelog