2019-12-18 18:06:17 +03:00
|
|
|
|
%bcond_without tests
|
|
|
|
|
|
2020-01-16 14:25:16 +03:00
|
|
|
|
# Enable LTO. Profit ~8%
|
2019-12-18 18:06:17 +03:00
|
|
|
|
%global optflags %{optflags} -flto
|
|
|
|
|
%global build_ldflags %{build_ldflags} -flto
|
|
|
|
|
|
2015-03-24 23:13:27 +03:00
|
|
|
|
Name: kakoune
|
2020-09-02 15:57:59 +03:00
|
|
|
|
Version: 2020.09.01
|
2021-01-01 23:46:14 +03:00
|
|
|
|
Release: 2%{?dist}
|
2019-12-18 18:06:17 +03:00
|
|
|
|
Summary: Code editor heavily inspired by Vim
|
2015-03-24 23:13:27 +03:00
|
|
|
|
|
|
|
|
|
License: Unlicense
|
2019-12-18 18:06:17 +03:00
|
|
|
|
URL: https://kakoune.org/
|
|
|
|
|
Source0: https://github.com/mawww/kakoune/archive/v%{version}/%{name}-%{version}.tar.gz
|
2015-03-24 23:13:27 +03:00
|
|
|
|
|
2016-02-11 11:43:52 +03:00
|
|
|
|
BuildRequires: asciidoc
|
2019-12-18 18:06:17 +03:00
|
|
|
|
BuildRequires: gcc-c++ >= 7
|
2019-04-24 17:41:13 +03:00
|
|
|
|
BuildRequires: glibc-langpack-en
|
2019-12-18 18:06:17 +03:00
|
|
|
|
BuildRequires: pkgconfig(ncurses) >= 5.3
|
2015-03-24 23:13:27 +03:00
|
|
|
|
|
|
|
|
|
%description
|
2019-12-18 18:06:17 +03:00
|
|
|
|
- Modal editor
|
|
|
|
|
- Faster as in fewer keystrokes
|
|
|
|
|
- Multiple selections
|
|
|
|
|
- Orthogonal design
|
|
|
|
|
|
|
|
|
|
Kakoune is a code editor that implements Vi’s "keystrokes as a text editing
|
|
|
|
|
language" model. As it’s also a modal editor, it is somewhat similar to the Vim
|
|
|
|
|
editor (after which Kakoune was originally inspired).
|
|
|
|
|
|
|
|
|
|
Kakoune can operate in two modes, normal and insertion. In insertion mode, keys
|
|
|
|
|
are directly inserted into the current buffer. In normal mode, keys are used to
|
|
|
|
|
manipulate the current selection and to enter insertion mode.
|
|
|
|
|
|
2020-01-16 14:25:16 +03:00
|
|
|
|
Kakoune has a strong focus on interactivity, most commands provide immediate and
|
|
|
|
|
incremental results, while still being competitive (as in keystroke count) with
|
|
|
|
|
Vim.
|
2019-12-18 18:06:17 +03:00
|
|
|
|
|
2020-09-09 21:00:59 +03:00
|
|
|
|
Kakoune works on selections, which are oriented, inclusive ranges of characters.
|
|
|
|
|
Selections have an anchor and a cursor. Most commands move both of
|
|
|
|
|
them except when extending selections, where the anchor character stays fixed and
|
|
|
|
|
the cursor moves around.
|
2019-12-18 18:06:17 +03:00
|
|
|
|
|
2015-03-24 23:13:27 +03:00
|
|
|
|
|
|
|
|
|
%prep
|
2019-12-18 18:06:17 +03:00
|
|
|
|
%autosetup -p1
|
|
|
|
|
|
2020-01-16 14:25:16 +03:00
|
|
|
|
# Use default Fedora build flags
|
2019-12-18 18:06:17 +03:00
|
|
|
|
sed -i '/CXXFLAGS += -O3/d' src/Makefile
|
|
|
|
|
|
2020-01-16 14:25:16 +03:00
|
|
|
|
# Install doc files in proper location
|
|
|
|
|
sed -i 's|$(PREFIX)/share/doc/kak|$(PREFIX)/share/doc/%{name}|' src/Makefile
|
2019-12-18 18:06:17 +03:00
|
|
|
|
|
2015-03-24 23:13:27 +03:00
|
|
|
|
|
|
|
|
|
%build
|
2019-12-18 18:06:17 +03:00
|
|
|
|
%set_build_flags
|
|
|
|
|
pushd src
|
|
|
|
|
%make_build
|
|
|
|
|
popd
|
2015-03-24 23:13:27 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
2019-12-18 18:06:17 +03:00
|
|
|
|
pushd src
|
|
|
|
|
%make_install PREFIX=%{_prefix}
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with tests}
|
|
|
|
|
%check
|
|
|
|
|
%set_build_flags
|
|
|
|
|
pushd src
|
|
|
|
|
LANG=en_US.utf8 %make_build test
|
|
|
|
|
popd
|
|
|
|
|
%endif
|
|
|
|
|
|
2015-03-24 23:13:27 +03:00
|
|
|
|
|
2015-06-03 00:14:24 +03:00
|
|
|
|
%files
|
2019-12-18 18:06:17 +03:00
|
|
|
|
%license UNLICENSE
|
|
|
|
|
%doc README.asciidoc CONTRIBUTING VIMTOKAK
|
|
|
|
|
%{_bindir}/kak
|
|
|
|
|
%{_datadir}/kak/
|
|
|
|
|
%{_mandir}/man1/*
|
2021-01-01 23:46:14 +03:00
|
|
|
|
%{_libexecdir}/kak/
|
2019-12-18 18:06:17 +03:00
|
|
|
|
|
2015-06-03 00:14:24 +03:00
|
|
|
|
|
2015-03-24 23:13:27 +03:00
|
|
|
|
%changelog
|
2021-01-01 23:46:14 +03:00
|
|
|
|
* Fri Jan 1 2021 Jiri Konecny <jkonecny@redhat.com> - 2020.09.01-2
|
|
|
|
|
- Add new libexec dir to the spec file
|
|
|
|
|
|
2020-09-02 15:57:59 +03:00
|
|
|
|
* Wed Sep 2 2020 Jiri Konecny <jkonecny@redhat.com> - 2020.09.01-1
|
|
|
|
|
- Update to 2020.09.01
|
|
|
|
|
|
2020-08-04 17:26:23 +03:00
|
|
|
|
* Tue Aug 4 2020 Jiri Konecny <jkonecny@redhat.com> - 2020.08.04-1
|
|
|
|
|
- Update to 2020.08.04
|
|
|
|
|
|
2020-01-16 14:25:16 +03:00
|
|
|
|
* Thu Jan 16 2020 Artem Polishchuk <ego.cordatus@gmail.com> - 2020.01.16-1
|
|
|
|
|
- Update to 2020.01.16
|
|
|
|
|
|
2019-12-18 18:06:17 +03:00
|
|
|
|
* Tue Dec 10 2019 Artem Polishchuk <ego.cordatus@gmail.com> - 2019.12.10-1
|
|
|
|
|
- Update to 2019.12.10
|
|
|
|
|
|
|
|
|
|
* Tue Nov 26 2019 Artem Polishchuk <ego.cordatus@gmail.com> - 2019.07.01-4
|
|
|
|
|
- Add patch to pass tests with default Fedora build flags
|
|
|
|
|
|
|
|
|
|
* Fri Nov 22 2019 Artem Polishchuk <ego.cordatus@gmail.com> - 2019.07.01-2
|
|
|
|
|
- Packaging fixes
|
|
|
|
|
|
2019-04-24 17:41:13 +03:00
|
|
|
|
* Wed Apr 24 2019 Jiri Konecny <jkonecny@redhat.com> - v2019.01.20-1
|
|
|
|
|
- Add a new build dependency (glibc-langpack-en) required for Fedora 30 and later
|
|
|
|
|
- Update version
|
|
|
|
|
|
|
|
|
|
* Fri Oct 12 2018 Jiri Konecny <jkonecny@redhat.com> - v2018.09.04-1
|
2018-10-12 11:51:38 +03:00
|
|
|
|
- Update spec file to a new release
|
|
|
|
|
|
2018-05-05 23:56:36 +03:00
|
|
|
|
* Sat May 5 2018 Łukasz Jendrysik <scadu@disroot.org> - v2018.04.13
|
|
|
|
|
- Use tagged release
|
|
|
|
|
|
2016-05-11 15:51:34 +03:00
|
|
|
|
* Wed May 11 2016 jkonecny <jkonecny@redhat.com> - 0-208.20160511git84f62e6f
|
|
|
|
|
- Add LANG=en_US.UTF-8 to fix tests
|
|
|
|
|
- Update to git: 84f62e6f
|
|
|
|
|
|
2016-02-11 11:43:52 +03:00
|
|
|
|
* Thu Feb 11 2016 jkonecny <jkonecny@redhat.com> - 0-158.20160210git050484eb
|
|
|
|
|
- Add new build requires asciidoc
|
|
|
|
|
- Use new man pages
|
|
|
|
|
|
2015-03-28 11:47:08 +03:00
|
|
|
|
* Sat Mar 28 2015 jkonecny <jkonecny@redhat.com> - 0-5.20150328gitd1b81c8f
|
|
|
|
|
- Automated git update by dgroc script new hash: d1b81c8f
|
|
|
|
|
|
2015-03-24 23:13:27 +03:00
|
|
|
|
* Tue Mar 24 2015 Jiri Konecny <jkonecny@redhat.com> 0-1.7eaa697git
|
|
|
|
|
- Add tests
|
2015-03-28 11:47:08 +03:00
|
|
|
|
|
2015-03-24 23:13:27 +03:00
|
|
|
|
* Tue Mar 17 2015 Jiri Konecny <jkonecny@redhat.com> 0-1.12a732dgit
|
|
|
|
|
- Create first rpm for kakoune
|