diff --git a/bindgen-fix-metadata.diff b/bindgen-fix-metadata.diff new file mode 100644 index 0000000..089ba16 --- /dev/null +++ b/bindgen-fix-metadata.diff @@ -0,0 +1,10 @@ +--- bindgen-0.63.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ bindgen-0.63.0/Cargo.toml 2022-12-13T11:47:34.400282+00:00 +@@ -102,7 +102,6 @@ + [features] + default = [ + "logging", +- "runtime", + "which-rustfmt", + ] + logging = ["log"] diff --git a/rust-bindgen.spec b/rust-bindgen.spec index a7ccf79..4335a62 100644 --- a/rust-bindgen.spec +++ b/rust-bindgen.spec @@ -12,6 +12,9 @@ Summary: Automatically generates Rust FFI bindings to C and C++ libraries License: BSD-3-Clause URL: https://crates.io/crates/bindgen Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * default to linking with libclang instead of using dlopen +Patch: bindgen-fix-metadata.diff BuildRequires: rust-packaging >= 21