%global rust_toolchain_version 1.85.0 Name: neocmakelsp Version: 0.8.25 Release: 1%{?dist} Summary: The LSP for cmake License: MIT URL: https://github.com/neocmakelsp/neocmakelsp Source: %{url}/archive/refs/tags/v%{version}.tar.gz BuildRequires: cargo >= %{rust_toolchain_version} BuildRequires: rust >= %{rust_toolchain_version} BuildRequires: gcc BuildRequires: git-core BuildRequires: python3-devel %description Intelligent Code Completion: Provides precise code completions by analyzing CMake files, enhancing development efficiency. Real-time Error Detection: Integrates linting functionality to check for potential issues in your code, help maintaining code quality. Support for Neovim, Emacs, VSCode, Helix: Compatible with these popular editors, catering to diverse developer needs. Simple Configuration: Easy to set up and use, minimizing configuration time so you can focus on development. CLI Integration: Not only an LSP, but also includes command-line tools for code formatting, making it convenient for different environments. %global debug_package %{nil} %prep %autosetup # Change default optimizations #sed -i '/profile.release/d' Cargo.toml #sed -i '/lto = "thin"/d' Cargo.toml #echo -e '\n[profile.release]' >> Cargo.toml #echo 'opt-level = "s" # Optimize for size.' >> Cargo.toml #echo 'strip = "debuginfo"' >> Cargo.toml #echo 'lto = "thin"' >> Cargo.toml #echo 'codegen-units = 1' >> Cargo.toml %install cargo install --locked --root=%{buildroot}%{_prefix} --path=. rm -f %{buildroot}%{_prefix}/.crates.toml \ %{buildroot}%{_prefix}/.crates2.json strip --strip-all %{buildroot}%{_bindir}/* %files %license LICENSE %doc README.md %{_bindir}/neocmakelsp %changelog * Wed Sep 17 2025 Derek Douglas - 0.8.25-1 - Initial package