From 3734bf1b6d3d72b37037d86744b0ea358e957ad6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Lauzier?= Date: Sat, 17 Jul 2021 20:14:51 -0400 Subject: [PATCH] Relax target-lexicon to version 0.12; Fixes RHBZ#1983368 --- cfg-expr-fix-metadata.diff | 11 +++++++++++ rust-cfg-expr.spec | 3 +++ 2 files changed, 14 insertions(+) create mode 100644 cfg-expr-fix-metadata.diff diff --git a/cfg-expr-fix-metadata.diff b/cfg-expr-fix-metadata.diff new file mode 100644 index 0000000..72e5d91 --- /dev/null +++ b/cfg-expr-fix-metadata.diff @@ -0,0 +1,11 @@ +--- cfg-expr-0.8.0/Cargo.toml 1970-01-01T00:00:00+00:00 ++++ cfg-expr-0.8.0/Cargo.toml 2021-07-18T00:12:44.244533+00:00 +@@ -26,7 +26,7 @@ + version = "1.6" + + [dependencies.target-lexicon] +-version = "0.12.1" ++version = "0.12" + optional = true + [dev-dependencies.difference] + version = "2.0" diff --git a/rust-cfg-expr.spec b/rust-cfg-expr.spec index b900587..6608d5b 100644 --- a/rust-cfg-expr.spec +++ b/rust-cfg-expr.spec @@ -13,6 +13,9 @@ Summary: Parser and evaluator for Rust `cfg()` expressions License: MIT or ASL 2.0 URL: https://crates.io/crates/cfg-expr Source: %{crates_source} +# Initial patched metadata +# * Relax target-lexicon to version 0.12 +Patch0: cfg-expr-fix-metadata.diff ExclusiveArch: %{rust_arches} %if %{__cargo_skip_build}