2022-06-08 09:26:00 +02:00
#
# 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
2022-11-02 21:26:29 +01:00
Version : 0.8+git.1667311883.593a70b1
2022-06-08 09:26:00 +02:00
Release : 0
Summary : An editor combining the strengths of both vi(m) and sam
License : ISC
Group : Productivity/Text/Editors
2022-07-17 18:50:30 +02:00
URL : https://sr.ht/~martanne/vis
#!RemoteAssetUrl: git+https://git.sr.ht/~mcepl/vis#devel
#!RemoteAssetUrl: git+https://git.sr.ht/~martanne/vis-test#v0.5
2022-06-08 09:26:00 +02:00
Source99 : vis-rpmlintrc
2022-07-25 12:42:51 +02:00
BuildRequires : libacl-devel
2022-06-08 09:26:00 +02:00
BuildRequires : libselinux-devel
BuildRequires : libtermkey-devel
2022-07-25 12:42:51 +02:00
BuildRequires : libtre-devel
2022-06-08 09:26:00 +02:00
BuildRequires : ncurses-devel
2022-07-25 12:42:51 +02:00
BuildRequires : git
2022-06-08 09:26:00 +02:00
BuildRequires : tar
ExclusiveArch : x86_64 %{ix86}
%if 0%{?suse_version} > 1500
BuildRequires : lua54-devel
BuildRequires : lua54-lpeg
Requires : lua54
%else
BuildRequires : lua-devel
BuildRequires : lua-lpeg
Requires : lua
%endif
%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
2022-06-08 11:42:46 +02:00
%setup -q -n vis -c -T
2022-07-11 22:44:10 +02:00
( cd %{_sourcedir} /vis && git checkout -f devel )
2022-06-08 11:42:46 +02:00
cp -a %{_sourcedir} /vis/* .
cp -a %{_sourcedir} /vis-test/* test/
2022-06-08 09:26:00 +02:00
%build
export CFLAGS=" %{optflags} - f c o m m o n "
%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.
2022-07-17 19:44:43 +02:00
%make_build -C test/core
2022-06-08 09:26:00 +02:00
# No busted yet make -C test/lua
2022-07-17 19:44:43 +02:00
%make_build -C test/vis
2022-06-08 09:26:00 +02:00
%files
%{_bindir} /vis*
%{_datadir} /vis
%{_mandir} /man1/*
%dir %{_datadir} /doc/vis
%{_datadir} /doc/vis/LICENSE
%{_datadir} /doc/vis/README.md
%changelog