Summary: Automatically generates Rust FFI bindings to C and C++ libraries
@ -15,7 +15,7 @@ Source: %{crates_source}
# * default to linking with libclang instead of using dlopen
Patch: bindgen-cli-fix-metadata.diff
BuildRequires: rust-packaging >= 21
BuildRequires: cargo-rpm-macros >= 24
%global _description %{expand:
Automatically generates Rust FFI bindings to C and C++ libraries.}
@ -24,22 +24,26 @@ Automatically generates Rust FFI bindings to C and C++ libraries.}
%package -n %{crate}
Summary: %{summary}
# /usr/bin/bindgen was moved from bindgen to bindgen-cli with v0.61
Provides: bindgen = %{version}-%{release}
Obsoletes: bindgen < 0.61
# (MIT OR Apache-2.0) AND Unicode-DFS-2016
# Apache-2.0
# Apache-2.0 OR MIT
# Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT
# BSD-3-Clause
# MIT
# MIT OR Apache-2.0
# Unlicense OR MIT
License: BSD-3-Clause AND Apache-2.0 AND MIT AND Unicode-DFS-2016
License: BSD-3-Clause AND Apache-2.0 AND MIT AND Unicode-DFS-2016 AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND (Unlicense OR MIT)
# LICENSE.dependencies contains a full license breakdown
# /usr/bin/bindgen was moved from bindgen to bindgen-cli with v0.61
Provides: bindgen = %{version}-%{release}
Obsoletes: bindgen < 0.61
%description -n %{crate} %{_description}
%files -n %{crate}
%license LICENSE
%license LICENSE.dependencies
%doc README.md
%{_bindir}/bindgen
@ -48,10 +52,12 @@ License: BSD-3-Clause AND Apache-2.0 AND MIT AND Unicode-DFS-2016