%global cargo_install_lib 0 %global commit 40dd7a7586275895bb5e0a0a1fe8f243b2b73829 %global short_commit %(c=%{commit}; echo ${c:0:7}) %global commit_date 20260413 %global commit_release .%{commit_date}git%{short_commit} Name: rust-goblint # TODO: Request a proper release. Version: 0 Release: 1%{commit_release}%{?dist} Summary: A tree-sitter-based linter for GObject/C applications # TODO: Project does not yet declare its license. SourceLicense: TBD License: %{shrink: TBD } URL: https://github.com/bilelmoussaoui/goblint Source: %{url}/archive/v%{version}.tar.gz # TODO: Kludge patches. Patch0001: goblint-no-tower-lsp.patch Patch0002: goblint-unlock.patch BuildRequires: cargo-rpm-macros %description A tree-sitter-based linter for GObject/C applications. %prep %autosetup -p1 -n goblint-%{version} %cargo_prep %generate_buildrequires %cargo_generate_buildrequires -t %build %cargo_build %{cargo_license_summary} %{cargo_license} > LICENSE.dependencies %install %cargo_install %check %cargo_test %files # TODO: Project does not yet declare its license. # %license LICENSE # %license LICENSE-dependencies %doc README.md %{_bindir}/goblint %changelog %autochangelog