# Repackages upstream's official Linux build (LuaJIT, tree-sitter, its parsers and utf8proc linked in), so every chroot # gets the same binary and no distro has to provide matching libraries. %global debug_package %{nil} %global __strip /bin/true %global __os_install_post %{nil} %global _build_id_links none Name: neovim Version: 0.12.6 Release: 1%{?dist} Summary: Vim-fork focused on extensibility and agility License: Apache-2.0 AND Vim AND MIT URL: https://neovim.io # Corresponding source: https://github.com/neovim/neovim/tree/v%%{version} Source0: nvim-linux-x86_64-%{version}.tar.gz Source1: LICENSE.txt ExclusiveArch: x86_64 # Same files as Fedora's and EPEL's neovim Conflicts: neovim-nightly Recommends: xsel Recommends: wl-clipboard Recommends: ripgrep Recommends: inotify-tools %description Neovim is a refactor - and sometimes redactor - in the tradition of Vim, which itself derives from Stevie. It is not a rewrite, but a continuation and extension of Vim. Many rewrites, clones, emulators and imitators exist; some are very clever, but none are Vim. Neovim strives to be a superset of Vim, notwithstanding some intentionally removed misfeatures; excepting those few and carefully-considered excisions, Neovim is Vim. It is built for users who want the good parts of Vim, without compromise, and more. %prep %setup -q -n nvim-linux-x86_64 cp %{SOURCE1} . %build %install install -d %{buildroot}%{_prefix} cp -a bin lib share %{buildroot}%{_prefix}/ find %{buildroot}%{_datadir} \( -name "*.bat" -o -name "*.awk" \) -exec chmod -x '{}' + # Refresh documentation helptags. %transfiletriggerin -- %{_datadir}/nvim/runtime/doc NVIM_LOG_FILE=/dev/null %{_bindir}/nvim -u NONE -es -c ":helptags %{_datadir}/nvim/runtime/doc" -c ":q" &> /dev/null || : %transfiletriggerpostun -- %{_datadir}/nvim/runtime/doc > %{_datadir}/nvim/runtime/doc/tags || : NVIM_LOG_FILE=/dev/null %{_bindir}/nvim -u NONE -es -c ":helptags %{_datadir}/nvim/runtime/doc" -c ":q" &> /dev/null || : %files %license LICENSE.txt %{_bindir}/nvim %{_prefix}/lib/nvim/ %{_mandir}/man1/nvim.1* %{_datadir}/applications/nvim.desktop %{_datadir}/icons/hicolor/128x128/apps/nvim.png %{_datadir}/nvim/ %changelog %autochangelog