# Generated by rust2rpm 26 %bcond_without check %global debug_package %{nil} %global crate tree-sitter-bash Name: rust-tree-sitter-bash Version: 0.23.1 Release: %autorelease Summary: Bash grammar for tree-sitter License: MIT URL: https://crates.io/crates/tree-sitter-bash Source: %{crates_source} # * https://github.com/tree-sitter/tree-sitter-bash/commit/6861ab03bf19fbddd1d4bb95a76b23cb2092eb52 Source2: https://raw.githubusercontent.com/tree-sitter/tree-sitter-bash/refs/tags/v0.23.1/LICENSE # Manually created patch for downstream crate metadata changes Patch: tree-sitter-bash-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Bash grammar for tree-sitter.} %description %{_description} %package devel Summary: %{summary} BuildArch: noarch %description devel %{_description} This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel %license LICENSE %doc %{crate_instdir}/README.md %{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+default-devel %{_description} This package contains library source intended for building other packages which use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep # Add missing license cp -pav %{SOURCE2} . %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog