blob: 096d81877e0eb9fc27faf0c6f9483bcbd1348649 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
#
# spec file for package vis
#
# Copyright (c) 2022 SUSE LLC
#
# 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/
#
%define test_version 0.5
Name: vis
Version: 0.8+git.1679231334.c9737a7
Release: 0
Summary: An editor combining the strengths of both vi(m) and sam
License: ISC
Group: Productivity/Text/Editors
URL: https://sr.ht/~martanne/vis
#!RemoteAssetUrl: git+https://git.sr.ht/~mcepl/vis#master
#!RemoteAssetUrl: git+https://git.sr.ht/~martanne/vis-test#master
BuildRequires: libacl-devel
BuildRequires: libselinux-devel
BuildRequires: libtermkey-devel
BuildRequires: libtre-devel
BuildRequires: ncurses-devel
BuildRequires: git
BuildRequires: tar
# ExclusiveArch: x86_64 %%{ix86}
%if 0%{?suse_version} > 1550
BuildRequires: lua54-devel
BuildRequires: lua54-lpeg
Requires: lua54
Requires: lua54-lpeg
Suggests: lua54-editorconfig-core-lua
%else
BuildRequires: lua-devel
BuildRequires: lua-lpeg
Requires: lua
Requires: lua-lpeg
Suggests: lua-editorconfig-core-lua
%endif
Suggests: par_text
%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
%setup -q -n vis -c -T
cp -a %{_sourcedir}/vis/* .
cp -a %{_sourcedir}/vis-test/* test/
%build
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_build -C test/core
# No busted yet make -C test/lua
# %%make_build -C test/vis
%files
%{_bindir}/vis*
%{_datadir}/vis
%{_mandir}/man1/*
%dir %{_datadir}/doc/vis
%{_datadir}/doc/vis/LICENSE
%{_datadir}/doc/vis/README.md
%changelog
|