Name: neovim Version: 0.12.2 Release: 4%{?dist} Summary: Vim-fork focused on extensibility and usability (AppImage repackage) License: Apache-2.0 URL: https://neovim.io/ AutoReqProv: no Provides: neovim = %{version} Provides: /usr/bin/nvim Provides: application() Provides: application(nvim.desktop) Provides: mimehandler(application/x-shellscript) Provides: mimehandler(text/english) Provides: mimehandler(text/plain) Provides: mimehandler(text/x-c) Provides: mimehandler(text/x-c++) Provides: mimehandler(text/x-c++hdr) Provides: mimehandler(text/x-c++src) Provides: mimehandler(text/x-chdr) Provides: mimehandler(text/x-csrc) Provides: mimehandler(text/x-java) Provides: mimehandler(text/x-makefile) Provides: mimehandler(text/x-moc) Provides: mimehandler(text/x-pascal) Provides: mimehandler(text/x-tcl) Provides: mimehandler(text/x-tex) Requires: /bin/sh Requires: /usr/bin/sh Recommends: tree-sitter-cli Source0: https://github.com/neovim/neovim/releases/download/v0.12.2/nvim-linux-x86_64.appimage Source1: https://github.com/neovim/neovim/releases/download/v0.12.2/nvim-linux-arm64.appimage Source2: https://raw.githubusercontent.com/neovim/neovim/refs/tags/v0.12.2/contrib/nvim.bash # Disable stripping so the AppImage SquashFS payload isn't corrupted %define debug_package %{nil} %define __os_install_post %{nil} %define __spec_install_post %{nil} %description A COPR repackage of the official Neovim AppImage. %prep %ifarch x86_64 mv %{SOURCE0} ./nvim.appimage %endif %ifarch aarch64 mv %{SOURCE1} ./nvim.appimage %endif chmod +x nvim.appimage ./nvim.appimage --appimage-extract %build %install mkdir -p %{buildroot}/opt mkdir -p %{buildroot}/usr/bin mkdir -p %{buildroot}/usr/share/applications mkdir -p %{buildroot}/usr/share/icons/hicolor/128x128/apps mkdir -p %{buildroot}/etc/bash_completion.d mkdir -p %{buildroot}/usr/share/man/man1 cp -r squashfs-root %{buildroot}/opt/%{name} ln -s /opt/neovim/AppRun %{buildroot}/usr/bin/nvim cp squashfs-root/usr/share/applications/nvim.desktop %{buildroot}/usr/share/applications/nvim.desktop cp squashfs-root/usr/share/icons/hicolor/128x128/apps/nvim.png %{buildroot}/usr/share/icons/hicolor/128x128/apps/nvim.png cp squashfs-root/usr/share/man/man1/nvim.1 %{buildroot}/usr/share/man/man1/nvim.1 cp %{SOURCE2} %{buildroot}/etc/bash_completion.d/nvim.bash %files /opt/%{name} /usr/bin/nvim /usr/share/applications/nvim.desktop /usr/share/icons/hicolor/128x128/apps/nvim.png /usr/share/man/man1/nvim.1 /etc/bash_completion.d/nvim.bash %changelog * Automated build tracking upstream tag v0.12.2