2020-02-26 08:38:45 +00:00
#
# spec file for package vis
#
# Copyright (c) 2020 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/
#
Name : vis
2020-06-15 07:58:52 +00:00
Version : 0.6
2020-02-26 08:38:45 +00:00
Release : 0
Summary : An editor combining the strengths of both vi(m) and sam
2020-02-26 23:07:14 +00:00
License : ISC
2020-02-26 08:38:45 +00:00
Group : Productivity/Text/Editors
URL : https://github.com/martanne/vis
2020-06-15 07:58:52 +00:00
Source : https://github.com/martanne/%{name} /archive/v%{version} .tar.gz#/%{name}-%{version}.tar.gz
2020-02-26 08:38:45 +00:00
BuildRequires : libtermkey-devel
BuildRequires : lua-devel
BuildRequires : lua-lpeg
BuildRequires : ncurses-devel
BuildRequires : tar
BuildRequires : tre-devel
Requires : lua
ExclusiveArch : x86_64 %{ix86}
%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
%autosetup
%build
2020-06-15 07:58:52 +00:00
export CFLAGS=" %{optflags} - f c o m m o n "
%configure
2020-02-26 08:38:45 +00:00
%make_build debug
%install
2020-02-26 08:45:17 +00:00
%make_install
2020-02-26 08:38:45 +00:00
%check
2020-06-15 07:58:52 +00:00
# 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
2020-02-26 08:38:45 +00:00
%files
%{_bindir} /vis*
%{_datadir} /vis
%{_mandir} /man1/*
%dir %{_datadir} /doc/vis
%{_datadir} /doc/vis/LICENSE
%{_datadir} /doc/vis/README.md
%changelog