From 4f73f969dac9a209b52f7bf6f9221f7b5eef66cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Lauzier?= Date: Mon, 12 Jul 2021 12:41:20 -0400 Subject: [PATCH] Update for target-lexicon 0.12; Fixes RHBZ#1981348 --- cfg-expr-fix-metadata.diff | 11 +++++++++++ rust-cfg-expr.spec | 4 ++++ 2 files changed, 15 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..4697b35 --- /dev/null +++ b/cfg-expr-fix-metadata.diff @@ -0,0 +1,11 @@ +--- cfg-expr-0.7.4/Cargo.toml 1970-01-01T00:00:00+00:00 ++++ cfg-expr-0.7.4/Cargo.toml 2021-07-12T16:08:07.910502+00:00 +@@ -26,7 +26,7 @@ + version = "1.6" + + [dependencies.target-lexicon] +-version = "0.11.2" ++version = "0.12" + optional = true + [dev-dependencies.difference] + version = "2.0" diff --git a/rust-cfg-expr.spec b/rust-cfg-expr.spec index 3e35126..7ee1295 100644 --- a/rust-cfg-expr.spec +++ b/rust-cfg-expr.spec @@ -13,6 +13,10 @@ 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 +# * Update target-lexicon to version 0.12 +# https://github.com/EmbarkStudios/cfg-expr/pull/27 +Patch0: cfg-expr-fix-metadata.diff ExclusiveArch: %{rust_arches} %if %{__cargo_skip_build}