From 0667b01dc0155ab8222c9e00a466fc8a808ec7ce Mon Sep 17 00:00:00 2001 From: Igor Raits Date: May 14 2020 06:12:34 +0000 Subject: Link with libclang instead of runtime detection Signed-off-by: Igor Raits --- diff --git a/bindgen-fix-metadata.diff b/bindgen-fix-metadata.diff new file mode 100644 index 0000000..e7f9901 --- /dev/null +++ b/bindgen-fix-metadata.diff @@ -0,0 +1,11 @@ +--- bindgen-0.53.2/Cargo.toml 2020-03-09T23:18:21+00:00 ++++ bindgen-0.53.2/Cargo.toml 2020-05-14T06:11:52.686170+00:00 +@@ -100,7 +100,7 @@ + version = "0.1" + + [features] +-default = ["logging", "clap", "runtime", "which-rustfmt"] ++default = ["logging", "clap", "which-rustfmt"] + logging = ["env_logger", "log"] + runtime = ["clang-sys/runtime"] + static = ["clang-sys/static"] diff --git a/rust-bindgen.spec b/rust-bindgen.spec index c68f575..60a03dd 100644 --- a/rust-bindgen.spec +++ b/rust-bindgen.spec @@ -5,13 +5,18 @@ Name: rust-%{crate} Version: 0.53.2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Automatically generates Rust FFI bindings to C and C++ libraries # Upstream license specification: BSD-3-Clause License: BSD URL: https://crates.io/crates/bindgen Source: %{crates_source} +# Initial patched metadata +# * No "runtime" feature by default. We can afford linking directly to libclang +# and rebuild it for each SONAME change. This just makes it better integrated +# in distribution context. +Patch0: bindgen-fix-metadata.diff ExclusiveArch: %{rust_arches} %if %{__cargo_skip_build} @@ -262,6 +267,9 @@ which use "which-rustfmt" feature of "%{crate}" crate. %endif %changelog +* Thu May 14 08:11:52 CEST 2020 Igor Raits - 0.53.2-2 +- Link with libclang instead of runtime detection + * Tue Mar 10 2020 Josh Stone - 0.53.2-1 - Update to 0.53.2