kakoune.spec (3769B)
1 %bcond_without tests 2 3 # Enable LTO. Profit ~8% 4 %global optflags %{optflags} -flto 5 %global build_ldflags %{build_ldflags} -flto 6 7 Name: kakoune 8 Version: 2020.09.01 9 Release: 2%{?dist} 10 Summary: Code editor heavily inspired by Vim 11 12 License: Unlicense 13 URL: https://kakoune.org/ 14 Source0: https://github.com/mawww/kakoune/archive/v%{version}/%{name}-%{version}.tar.gz 15 16 BuildRequires: asciidoc 17 BuildRequires: gcc-c++ >= 7 18 BuildRequires: glibc-langpack-en 19 BuildRequires: pkgconfig(ncurses) >= 5.3 20 21 %description 22 - Modal editor 23 - Faster as in fewer keystrokes 24 - Multiple selections 25 - Orthogonal design 26 27 Kakoune is a code editor that implements Vi’s "keystrokes as a text editing 28 language" model. As it’s also a modal editor, it is somewhat similar to the Vim 29 editor (after which Kakoune was originally inspired). 30 31 Kakoune can operate in two modes, normal and insertion. In insertion mode, keys 32 are directly inserted into the current buffer. In normal mode, keys are used to 33 manipulate the current selection and to enter insertion mode. 34 35 Kakoune has a strong focus on interactivity, most commands provide immediate and 36 incremental results, while still being competitive (as in keystroke count) with 37 Vim. 38 39 Kakoune works on selections, which are oriented, inclusive ranges of characters. 40 Selections have an anchor and a cursor. Most commands move both of 41 them except when extending selections, where the anchor character stays fixed and 42 the cursor moves around. 43 44 45 %prep 46 %autosetup -p1 47 48 # Use default Fedora build flags 49 sed -i '/CXXFLAGS += -O3/d' src/Makefile 50 51 # Install doc files in proper location 52 sed -i 's|$(PREFIX)/share/doc/kak|$(PREFIX)/share/doc/%{name}|' src/Makefile 53 54 55 %build 56 %set_build_flags 57 pushd src 58 %make_build 59 popd 60 61 62 %install 63 pushd src 64 %make_install PREFIX=%{_prefix} 65 popd 66 67 68 %if %{with tests} 69 %check 70 %set_build_flags 71 pushd src 72 LANG=en_US.utf8 %make_build test 73 popd 74 %endif 75 76 77 %files 78 %license UNLICENSE 79 %doc README.asciidoc CONTRIBUTING VIMTOKAK 80 %{_bindir}/kak 81 %{_datadir}/kak/ 82 %{_mandir}/man1/* 83 %{_libexecdir}/kak/ 84 85 86 %changelog 87 * Fri Jan 1 2021 Jiri Konecny <jkonecny@redhat.com> - 2020.09.01-2 88 - Add new libexec dir to the spec file 89 90 * Wed Sep 2 2020 Jiri Konecny <jkonecny@redhat.com> - 2020.09.01-1 91 - Update to 2020.09.01 92 93 * Tue Aug 4 2020 Jiri Konecny <jkonecny@redhat.com> - 2020.08.04-1 94 - Update to 2020.08.04 95 96 * Thu Jan 16 2020 Artem Polishchuk <ego.cordatus@gmail.com> - 2020.01.16-1 97 - Update to 2020.01.16 98 99 * Tue Dec 10 2019 Artem Polishchuk <ego.cordatus@gmail.com> - 2019.12.10-1 100 - Update to 2019.12.10 101 102 * Tue Nov 26 2019 Artem Polishchuk <ego.cordatus@gmail.com> - 2019.07.01-4 103 - Add patch to pass tests with default Fedora build flags 104 105 * Fri Nov 22 2019 Artem Polishchuk <ego.cordatus@gmail.com> - 2019.07.01-2 106 - Packaging fixes 107 108 * Wed Apr 24 2019 Jiri Konecny <jkonecny@redhat.com> - v2019.01.20-1 109 - Add a new build dependency (glibc-langpack-en) required for Fedora 30 and later 110 - Update version 111 112 * Fri Oct 12 2018 Jiri Konecny <jkonecny@redhat.com> - v2018.09.04-1 113 - Update spec file to a new release 114 115 * Sat May 5 2018 Łukasz Jendrysik <scadu@disroot.org> - v2018.04.13 116 - Use tagged release 117 118 * Wed May 11 2016 jkonecny <jkonecny@redhat.com> - 0-208.20160511git84f62e6f 119 - Add LANG=en_US.UTF-8 to fix tests 120 - Update to git: 84f62e6f 121 122 * Thu Feb 11 2016 jkonecny <jkonecny@redhat.com> - 0-158.20160210git050484eb 123 - Add new build requires asciidoc 124 - Use new man pages 125 126 * Sat Mar 28 2015 jkonecny <jkonecny@redhat.com> - 0-5.20150328gitd1b81c8f 127 - Automated git update by dgroc script new hash: d1b81c8f 128 129 * Tue Mar 24 2015 Jiri Konecny <jkonecny@redhat.com> 0-1.7eaa697git 130 - Add tests 131 132 * Tue Mar 17 2015 Jiri Konecny <jkonecny@redhat.com> 0-1.12a732dgit 133 - Create first rpm for kakoune