## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 6; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global debug_package %{nil} Name: helix Version: 25.01 Release: %autorelease 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 %autosetup -c %install cargo build --profile opt HELIX_RUNTIME="$PWD/runtime" ./target/opt/hx --grammar fetch HELIX_RUNTIME="$PWD/runtime" ./target/opt/hx --grammar build rm -rf ./runtime/grammars/sources mkdir -p %{buildroot}%{_datadir}/helix mkdir -p %{buildroot}%{_libexecdir} mv ./runtime %{buildroot}%{_datadir}/helix mv ./target/opt/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 < - 25.01-6 - fix changelog * Sat Jan 04 2025 Taylor C. Richberger - 25.01-5 - change to autorelease and autochangelog * Sat Jan 04 2025 Taylor C. Richberger - 25.01-4 - fix things for an opt profile helix * Sat Jan 04 2025 Taylor C. Richberger - 25.01-3 - switch build from release to opt profile * Sat Jan 04 2025 Taylor C. Richberger - 25.01-2 - bump release to get an actual build * Sat Jan 04 2025 Taylor C. Richberger - 25.01-1 - make repo helix-only ## END: Generated by rpmautospec