%global debug_package %{nil} Name: helix Version: 23.10 Release: 1%{?dist} Summary: A post-modern modal text editor. License: MPL-2.0 URL: https://github.com/helix-editor/helix Source0: %{url}/releases/download/%{version}/helix-%{version}-source.tar.xz BuildRequires: cargo BuildRequires: rust BuildRequires: gcc-c++ BuildRequires: git %description A kakoune / neovim inspired editor, written in Rust. The editing model is very heavily based on kakoune. Features include Vim-like modal editing, multiple selections, built-in language server support and smart, incremental syntax highlighting and code editing via tree-sitter %prep tar -xf %{_sourcedir}/helix-%{version}-source.tar.xz -C %{_builddir} %install cargo build --release rm -rf ./runtime/grammars/sources mkdir -p %{buildroot}%{_datadir}/helix mkdir -p %{buildroot}%{_libexecdir} mv ./runtime %{buildroot}%{_datadir}/helix mv ./target/release/hx %{buildroot}%{_libexecdir}/hx strip --strip-all %{buildroot}%{_libexecdir}/hx mkdir -p %{buildroot}%{_datadir}/licenses/helix mv ./LICENSE %{buildroot}%{_datadir}/licenses/helix/LICENSE mkdir -p %{buildroot}%{_docdir}/helix mv README.md %{buildroot}%{_docdir}/helix/README.md mkdir -p %{buildroot}%{_bindir} touch %{buildroot}%{_bindir}/hx cat >> %{buildroot}%{_bindir}/hx <