2022-06-08 09:26:00 +02:00
#
# spec file for package vis
#
2023-04-18 20:11:48 +02:00
# Copyright (c) 2023 SUSE LLC
2022-06-08 09:26:00 +02: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/
#
%define test_version 0.5
Name : vis
2023-08-13 09:15:50 +02:00
Version : 0.8+git.1691882787.adc803f
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
2023-04-18 20:11:48 +02:00
BuildRequires : git
2023-08-12 07:06:15 +02:00
#!RemoteAssetUrl: git+https://git.sr.ht/~mcepl/vis#devel
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
BuildRequires : tar
2023-04-18 20:11:48 +02:00
Suggests : par_text
2023-02-23 01:48:50 +01:00
# ExclusiveArch: x86_64 %%{ix86}
2022-11-05 00:36:30 +01:00
%if 0%{?suse_version} > 1550
2023-06-21 09:07:07 +02:00
BuildRequires : python3-Sphinx
BuildRequires : python3-breathe
2023-08-12 08:47:20 +02:00
BuildRequires : doxygen
2023-04-18 20:11:48 +02:00
BuildRequires : lua54-busted
2022-06-08 09:26:00 +02:00
BuildRequires : lua54-devel
2023-08-11 22:14:25 +02:00
BuildRequires : lua54-luafilesystem
2022-06-08 09:26:00 +02:00
BuildRequires : lua54-lpeg
Requires : lua54
2023-02-19 14:08:14 +01:00
Requires : lua54-lpeg
2023-04-02 00:46:26 +02:00
Suggests : lua54-editorconfig-core-lua
2022-06-08 09:26:00 +02:00
%else
2023-04-18 20:11:48 +02:00
BuildRequires : lua-busted
2022-06-08 09:26:00 +02:00
BuildRequires : lua-devel
2023-08-11 22:14:25 +02:00
BuildRequires : lua-luafilesystem
2022-06-08 09:26:00 +02:00
BuildRequires : lua-lpeg
Requires : lua
2023-02-19 14:08:14 +01:00
Requires : lua-lpeg
2023-04-02 00:46:26 +02:00
Suggests : lua-editorconfig-core-lua
2022-06-08 09:26:00 +02:00
%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
2022-06-08 11:42:46 +02:00
cp -a %{_sourcedir} /vis/* .
2022-06-08 09:26:00 +02:00
%build
export CFLAGS=" %{optflags} - f c o m m o n "
%configure
%make_build debug
2023-08-12 08:47:20 +02:00
%if 0%{?suse_version} > 1550
2023-06-21 09:07:07 +02:00
make -C doc singlehtml epub
2023-06-21 12:31:31 +02:00
cp doc/build/sphinx/singlehtml/{index,VisEditor}.html
2023-08-12 08:47:20 +02:00
%endif
2023-06-21 09:07:07 +02:00
2022-06-08 09:26:00 +02:00
%install
%make_install
2023-06-21 12:31:31 +02:00
rm -r %{buildroot} %{_datadir} /doc/vis
2023-08-12 08:47:20 +02:00
%if 0%{?suse_version} > 1550
2023-06-21 12:31:31 +02:00
find doc/build -name \*.htm\*
find . -name \*.htm\*
2023-08-12 08:47:20 +02:00
%endif
2022-06-08 09:26:00 +02:00
%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
2023-04-14 18:55:41 +02:00
%make_build -C test/lua
%make_build -C test/vis
2022-06-08 09:26:00 +02:00
2023-06-21 12:31:31 +02:00
%clean
2022-06-08 09:26:00 +02:00
%files
%{_bindir} /vis*
%{_datadir} /vis
%{_mandir} /man1/*
2023-06-21 12:31:31 +02:00
%doc README.md LICENSE
2023-08-12 08:47:20 +02:00
%if 0%{?suse_version} > 1550
2023-06-21 12:31:31 +02:00
%doc doc/build/sphinx/epub/VisEditor.epub
%doc doc/build/sphinx/singlehtml/VisEditor.html
2023-08-12 08:47:20 +02:00
%endif
2022-06-08 09:26:00 +02:00
%changelog