From 95ec99ad9f8457f723d6ba23cbd285e76843d133 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Tue, 17 Dec 2019 09:51:48 +0100 Subject: [PATCH] Update rustversion to 1 Signed-off-by: Igor Gnatenko --- rust-structopt.spec | 3 +++ structopt-fix-metadata.diff | 11 +++++++++++ 2 files changed, 14 insertions(+) create mode 100644 structopt-fix-metadata.diff diff --git a/rust-structopt.spec b/rust-structopt.spec index 9d75810..61026d0 100644 --- a/rust-structopt.spec +++ b/rust-structopt.spec @@ -13,6 +13,9 @@ Summary: Parse command line argument by defining a struct License: ASL 2.0 or MIT URL: https://crates.io/crates/structopt Source: %{crates_source} +# Initial patched metadata +# * Update rustversion to 1, https://github.com/TeXitoi/structopt/pull/308 +Patch0: structopt-fix-metadata.diff ExclusiveArch: %{rust_arches} %if %{__cargo_skip_build} diff --git a/structopt-fix-metadata.diff b/structopt-fix-metadata.diff new file mode 100644 index 0000000..8f18294 --- /dev/null +++ b/structopt-fix-metadata.diff @@ -0,0 +1,11 @@ +--- structopt-0.3.5/Cargo.toml 1970-01-01T00:00:00+00:00 ++++ structopt-0.3.5/Cargo.toml 2019-12-17T08:47:33.531788+00:00 +@@ -29,7 +29,7 @@ + [dependencies.structopt-derive] + version = "0.3.5" + [dev-dependencies.rustversion] +-version = "0.1" ++version = "1" + + [dev-dependencies.trybuild] + version = "1.0.5"