From c609653b03fd27d4a084432a714006888f4a24bd Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Mon, 30 Jan 2023 18:56:48 +0100 Subject: [PATCH] Ensure bindgen-cli is always linked to libclang --- bindgen-cli-fix-metadata.diff | 13 +++++++++++-- rust-bindgen-cli.spec | 5 ++--- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/bindgen-cli-fix-metadata.diff b/bindgen-cli-fix-metadata.diff index 39001b4..b68b723 100644 --- a/bindgen-cli-fix-metadata.diff +++ b/bindgen-cli-fix-metadata.diff @@ -1,6 +1,15 @@ --- bindgen-cli-0.63.0/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ bindgen-cli-0.63.0/Cargo.toml 2022-11-25T14:27:14.125964+00:00 -@@ -55,7 +55,6 @@ ++++ bindgen-cli-0.63.0/Cargo.toml 2023-01-30T17:45:54.622156+00:00 +@@ -37,6 +37,8 @@ + + [dependencies.bindgen] + version = "=0.63.0" ++features = ["logging", "which-rustfmt"] ++default-features = false + + [dependencies.clap] + version = "3" +@@ -55,7 +57,6 @@ [features] default = [ "logging", diff --git a/rust-bindgen-cli.spec b/rust-bindgen-cli.spec index caa267b..8f3c6b1 100644 --- a/rust-bindgen-cli.spec +++ b/rust-bindgen-cli.spec @@ -31,11 +31,10 @@ Obsoletes: bindgen < 0.61 # Apache-2.0 # Apache-2.0 OR MIT # BSD-3-Clause -# ISC # MIT # MIT OR Apache-2.0 # 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 MIT AND Unicode-DFS-2016 # LICENSE.dependencies contains a full license breakdown %description -n %{crate} %{_description} @@ -51,7 +50,7 @@ License: BSD-3-Clause AND Apache-2.0 AND ISC and MIT AND Unicode-DFS-2016 %cargo_prep %generate_buildrequires -%cargo_generate_buildrequires +%cargo_generate_buildrequires -a %build %cargo_build