From 26d1a7464c07914758804148d4c75b65fe64250e Mon Sep 17 00:00:00 2001 From: Igor Raits Date: Thu, 20 Feb 2020 20:51:53 +0100 Subject: [PATCH] Link patch with upstream commit Signed-off-by: Igor Raits --- rust-serde_repr.spec | 7 +++---- ...-rustversion-dep.patch => serde_repr-fix-metadata.diff | 8 +++----- 2 files changed, 6 insertions(+), 9 deletions(-) rename 00-bump-rustversion-dep.patch => serde_repr-fix-metadata.diff (51%) diff --git a/rust-serde_repr.spec b/rust-serde_repr.spec index accc0ea..7e93354 100644 --- a/rust-serde_repr.spec +++ b/rust-serde_repr.spec @@ -13,9 +13,9 @@ Summary: Derive Serialize and Deserialize for C-like enums License: MIT or ASL 2.0 URL: https://crates.io/crates/serde_repr Source: %{crates_source} - -# rustversion in fedora is too new (1.0), but seems to be compatible -Patch0: 00-bump-rustversion-dep.patch +# Initial patched metadata +# * Update rustversion to 1.0, https://github.com/dtolnay/serde-repr/commit/c0bdb4bc6290c678ae74125434af1b4deeb3871c +Patch0: serde_repr-fix-metadata.diff ExclusiveArch: %{rust_arches} %if %{__cargo_skip_build} @@ -77,4 +77,3 @@ which use "default" feature of "%{crate}" crate. %changelog * Mon Jan 27 2020 Fabio Valentini - 0.1.5-1 - Initial package - diff --git a/00-bump-rustversion-dep.patch b/serde_repr-fix-metadata.diff similarity index 51% rename from 00-bump-rustversion-dep.patch rename to serde_repr-fix-metadata.diff index de6353f..5b1386b 100644 --- a/00-bump-rustversion-dep.patch +++ b/serde_repr-fix-metadata.diff @@ -1,8 +1,6 @@ -diff --git a/Cargo.toml b/Cargo.toml -index cb4d121..6e96d91 100644 ---- a/Cargo.toml -+++ b/Cargo.toml -@@ -32,7 +32,7 @@ version = "1.0" +--- serde_repr-0.1.5/Cargo.toml 1970-01-01T00:00:00+00:00 ++++ serde_repr-0.1.5/Cargo.toml 2020-02-20T19:51:11.838292+00:00 +@@ -32,7 +32,7 @@ [dependencies.syn] version = "1.0" [dev-dependencies.rustversion]