38395a9
Name:           vis
38395a9
Version:        0.5
61af3a0
Release:        3%{?dist}
38395a9
Summary:        A vim-like editor with structural regex from plan9
38395a9
38395a9
# The entire source code is ISC except for the following exceptions,
38395a9
# that are also found in the LICENSE-file of the project:
38395a9
# ./configure is MIT licensed
38395a9
# map.c and map.h are under CC0
38395a9
# libutf.c and libutf.h are MIT licensed
38395a9
# sam.c and sam.h are under a ISC-like license
38395a9
# All files under lua/lexers/ are MIT licensed
38395a9
License:        ISC and MIT and CC0
38395a9
URL:            https://github.com/martanne/%{name}/
38395a9
Source0:        https://github.com/martanne/%{name}/releases/download/v%{version}/%{name}-v%{version}.tar.gz
38395a9
38395a9
BuildRequires:  gcc
38395a9
BuildRequires:  pkgconfig(termkey)
38395a9
BuildRequires:  pkgconfig(ncursesw)
38395a9
BuildRequires:  pkgconfig(tre)
38395a9
BuildRequires:  pkgconfig(lua) >= 5.2
38395a9
BuildRequires:  libacl-devel
38395a9
BuildRequires:  pkgconfig(libselinux)
38395a9
Requires:       lua-lpeg >= 0.12
38395a9
38395a9
%description
38395a9
A Vim-like editor with structural regular expressions
38395a9
inspired by Plan9's Sam-editor.
38395a9
38395a9
%package doc
38395a9
Summary:        Docs for the Lua API of Vis
38395a9
BuildRequires:  lua-ldoc
38395a9
Requires:       %{name} = %{version}-%{release}
38395a9
BuildArch:      noarch
38395a9
38395a9
%description doc
38395a9
%{summary}
38395a9
38395a9
%prep
38395a9
%autosetup -n vis-v%{version}
38395a9
38395a9
%build
38395a9
%configure
38395a9
%make_build
38395a9
38395a9
# create Lua API docs
38395a9
%make_build luadoc-all
38395a9
38395a9
%install
38395a9
%make_install STRIP=/bin/true
38395a9
38395a9
%files
38395a9
%doc README.md
38395a9
%license LICENSE
38395a9
%{_bindir}/vis
38395a9
%{_bindir}/vis-clipboard
38395a9
%{_bindir}/vis-complete
38395a9
%{_bindir}/vis-digraph
38395a9
%{_bindir}/vis-menu
38395a9
%{_bindir}/vis-open
38395a9
%{_datadir}/%{name}
38395a9
%{_mandir}/man1/%{name}*.1.*
38395a9
%exclude %{_pkgdocdir}/LICENSE
38395a9
38395a9
%files doc
38395a9
%doc lua/doc/index.html lua/doc/ldoc_fixed.css
38395a9
38395a9
%changelog
61af3a0
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5-3
61af3a0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
61af3a0
1168210
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5-2
1168210
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
1168210
38395a9
* Sat Jul 07 2018 Jani Juhani Sinervo <jani@sinervo.fi> - 0.5-1
38395a9
- Initial attempt at official inclusion