# Generated by rust2rpm 27 %bcond check 1 %global debug_package %{nil} %global crate tree-house-bindings Name: rust-tree-house-bindings Version: 0.2.1 Release: %autorelease Summary: Homey Rust bindings for the tree-sitter C library License: MPL-2.0 AND Unicode-DFS-2016 AND BSD-2-Clause AND BSD-3-Clause AND LicenseRef-Fedora-Public-Domain URL: https://crates.io/crates/tree-house-bindings Source: %{crates_source} BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Homey Rust bindings for the tree-sitter C library.} %description %{_description} %package devel Summary: %{summary} BuildArch: noarch # The create contains a bundled copy of the tree-sitter C library. # MIT Provides: bundled(tree-sitter) = 0.25.7 # The tree-sitter C library contains a small subset of files from the ICU library # Unicode-DFS-2016 AND BSD-2-Clause AND BSD-3-Clause AND LicenseRef-Fedora-Public-Domain Provides: bundled(icu) = 65.1 %description devel %{_description} This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel %license %{crate_instdir}/LICENSE %doc %{crate_instdir}/CHANGELOG.md %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 %package -n %{name}+ropey-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+ropey-devel %{_description} This package contains library source intended for building other packages which use the "ropey" feature of the "%{crate}" crate. %files -n %{name}+ropey-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog