File kakoune.spec of Package kakoune

# spec file for package kakoune
# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
# 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

Name:           kakoune
Version:        2020.01.16
Release:        0
Summary:        A code editor heavily inspired by Vim
License:        Unlicense
Group:          Productivity/Text/Editors
BuildRequires:  asciidoc
BuildRequires:  fdupes
BuildRequires:  gcc-c++ >= 5.0
BuildRequires:  libboost_regex-devel >= 1.50
BuildRequires:  libxslt-tools
BuildRequires:  ncurses-devel >= 6.0

Kakoune is a code editor heavily inspired by Vim.
It's faster as in less keystrokes, supports multiple selections and uses orthogonal design.

%setup -q -n %{name}-%{version}/src

make %{?_smp_mflags} CXXFLAGS="%{optflags} -std=gnu++17"

make %{?_smp_mflags} install PREFIX=%{buildroot}%{_prefix}
rm -rf %{buildroot}%{_datadir}/doc
%fdupes %{buildroot}

LANG=en_US.utf8 make %{?_smp_mflags} test

%license ../UNLICENSE