%global cargo_install_lib 0 %global commit 75581fae1016a852df1f26acaae51bb85427deb8 %global short_commit %(c=%{commit}; echo ${c:0:7}) %global commit_date 20260414 %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 SourceLicense: MIT License: %{shrink: MIT } URL: https://github.com/bilelmoussaoui/goblint Source: %{url}/archive/v%{version}.tar.gz # https://bugzilla.redhat.com/show_bug.cgi?id=2420885 Patch0001: goblint-0-fedora-tree-sitter-version.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 %license LICENSE %doc README.md %{_bindir}/goblint %changelog %autochangelog