Summary: Automatically generates Rust FFI bindings to C and C++ libraries
Summary: Automatically generates Rust FFI bindings to C and C++ libraries
License: BSD-3-Clause
License: BSD-3-Clause
URL: https://crates.io/crates/bindgen-cli
URL: https://crates.io/crates/bindgen-cli
Source: %{crates_source}
Source: %{crates_source}
# Manually created patch for downstream crate metadata changes
# * default to linking with libclang instead of using dlopen
Patch: bindgen-cli-fix-metadata.diff
BuildRequires: rust-packaging >= 23
BuildRequires: cargo-rpm-macros >= 24
%global _description %{expand:
%global _description %{expand:
Automatically generates Rust FFI bindings to C and C++ libraries.}
Automatically generates Rust FFI bindings to C and C++ libraries.}
@ -24,20 +21,25 @@ Automatically generates Rust FFI bindings to C and C++ libraries.}
%package -n %{crate}
%package -n %{crate}
Summary: %{summary}
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
# (MIT OR Apache-2.0) AND Unicode-DFS-2016
# Apache-2.0
# Apache-2.0
# Apache-2.0 OR MIT
# Apache-2.0 OR MIT
# Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT
# BSD-3-Clause
# BSD-3-Clause
# ISC
# ISC
# MIT
# MIT
# MIT OR Apache-2.0
# MIT OR Apache-2.0
# Unlicense OR MIT
# Unlicense OR MIT
License: BSD-3-Clause AND Apache-2.0 AND ISC and MIT AND Unicode-DFS-2016
License: BSD-3-Clause AND Apache-2.0 AND ISC 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
# 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
# /usr/bin/bindgen requires libclang.so at runtime
Requires: clang-libs
%description -n %{crate} %{_description}
%description -n %{crate} %{_description}
%files -n %{crate}
%files -n %{crate}
@ -51,10 +53,11 @@ License: BSD-3-Clause AND Apache-2.0 AND ISC and MIT AND Unicode-DFS-2016