From d24fc9a7027606a05a00877c179a805878ea62f8 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Tue, 2 Aug 2022 15:44:22 +0200 Subject: [PATCH] Update to version 0.3.12; Fixes RHBZ#2112802 --- .gitignore | 1 + rust-time.spec | 14 ++++++-------- sources | 2 +- ...ix-metadata.diff => time-fix-metadata-auto.diff | 9 ++++++--- 4 files changed, 14 insertions(+), 12 deletions(-) rename time-fix-metadata.diff => time-fix-metadata-auto.diff (55%) diff --git a/.gitignore b/.gitignore index 24b98c0..67c0c66 100644 --- a/.gitignore +++ b/.gitignore @@ -17,3 +17,4 @@ /time-0.3.5.crate /time-0.3.9.crate /time-0.3.11.crate +/time-0.3.12.crate diff --git a/rust-time.spec b/rust-time.spec index e25de67..0a1f556 100644 --- a/rust-time.spec +++ b/rust-time.spec @@ -1,22 +1,20 @@ -# Generated by rust2rpm 21 +# Generated by rust2rpm 22 # * unit tests are excluded from published crates %bcond_with check %global debug_package %{nil} %global crate time -Name: rust-%{crate} -Version: 0.3.11 +Name: rust-time +Version: 0.3.12 Release: %autorelease Summary: Date and time library -# Upstream license specification: MIT OR Apache-2.0 -License: MIT or ASL 2.0 +License: MIT OR Apache-2.0 URL: https://crates.io/crates/time Source: %{crates_source} -# Initial patched metadata -# * drop internal and benchmark-only dependencies -Patch0: time-fix-metadata.diff +# Automatically generated patch to strip foreign dependencies +Patch: time-fix-metadata-auto.diff ExclusiveArch: %{rust_arches} diff --git a/sources b/sources index 586ba92..727c6c4 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (time-0.3.11.crate) = 214bb8c5573d3ee405a923f55e22ac3d659c30ba413f5e960e17d8f226d094133e2b52084e34efc6ece2311e13a862f2fcded9783937d69709d11144a8d6b48d +SHA512 (time-0.3.12.crate) = 74ac14877b0490669e025636901abd909d3b944f2506b196640f6e1dc524469a9eb6fb26867849a79ff038ed13da73a74d774fe2f308833579c8db2005039bb8 diff --git a/time-fix-metadata.diff b/time-fix-metadata-auto.diff similarity index 55% rename from time-fix-metadata.diff rename to time-fix-metadata-auto.diff index 43d29c0..e863163 100644 --- a/time-fix-metadata.diff +++ b/time-fix-metadata-auto.diff @@ -1,12 +1,15 @@ ---- time-0.3.11/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ time-0.3.11/Cargo.toml 2022-07-15T11:07:59.178449+00:00 -@@ -131,15 +131,6 @@ +--- time-0.3.12/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ time-0.3.12/Cargo.toml 1970-01-01T00:00:01+00:00 +@@ -134,18 +134,6 @@ ] std = ["alloc"] -[target."cfg(__ui_tests)".dev-dependencies.trybuild] -version = "1.0.63" - +-[target."cfg(all(target_arch = \"wasm32\", not(any(target_os = \"emscripten\", target_os = \"wasi\"))))".dependencies.js-sys] +-version = "0.3.58" +- -[target."cfg(bench)".dev-dependencies.criterion] -version = "0.3.5" -