From 67bbdb57cff5f3d3dab9083b9fc1aa5c5cca900f Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Mon, 6 Nov 2023 16:41:34 +0100 Subject: [PATCH] Update to version 0.3.30; Fixes RHBZ#2244157 --- .gitignore | 1 + rust-time.spec | 8 ++++---- sources | 2 +- time-fix-metadata-auto.diff | 11 ++++++++--- time-fix-metadata.diff | 8 ++++---- 5 files changed, 18 insertions(+), 12 deletions(-) diff --git a/.gitignore b/.gitignore index 46b290f..e4ec6cf 100644 --- a/.gitignore +++ b/.gitignore @@ -29,3 +29,4 @@ /time-0.3.23.crate /time-0.3.28.crate /time-0.3.29.crate +/time-0.3.30.crate diff --git a/rust-time.spec b/rust-time.spec index df9bc70..c9aea01 100644 --- a/rust-time.spec +++ b/rust-time.spec @@ -1,18 +1,18 @@ -# Generated by rust2rpm 24 +# Generated by rust2rpm 25 %bcond_without check %global debug_package %{nil} %global crate time Name: rust-time -Version: 0.3.29 +Version: 0.3.30 Release: %autorelease Summary: Date and time library License: MIT OR Apache-2.0 URL: https://crates.io/crates/time Source: %{crates_source} -# Automatically generated patch to strip foreign dependencies +# Automatically generated patch to strip dependencies and normalize metadata Patch: time-fix-metadata-auto.diff # Manually created patch for downstream crate metadata changes # * remove WASM-specific features @@ -199,7 +199,7 @@ use the "std" feature of the "%{crate}" crate. %ghost %{crate_instdir}/Cargo.toml %prep -%autosetup -n %{crate}-%{version_no_tilde} -p1 +%autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires diff --git a/sources b/sources index a4ddb2f..1e36414 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (time-0.3.29.crate) = e3d41b037fc190524d420adc581fa65a8f2aa61100df2a6d81291d7a65e04578c76dd97a5a48a96a6bacf026d2808dc2f82e4e9d559a6d0856d90c909effe115 +SHA512 (time-0.3.30.crate) = 268f0c779e2a44431932aa407f39878ff1412e287f9678574537fe7185f12faf7605c5ef433aa6d364bf77894e819ff3953f870ef7ad208b7203f1c58eccc4e5 diff --git a/time-fix-metadata-auto.diff b/time-fix-metadata-auto.diff index 2bbd064..4dad867 100644 --- a/time-fix-metadata-auto.diff +++ b/time-fix-metadata-auto.diff @@ -1,6 +1,6 @@ ---- time-0.3.29/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ time-0.3.29/Cargo.toml 2023-09-25T14:04:27.462156+00:00 -@@ -164,18 +164,7 @@ +--- time-0.3.30/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ time-0.3.30/Cargo.toml 2023-10-15T10:15:55.796572+00:00 +@@ -169,18 +169,7 @@ "alloc", "deranged/std", ] @@ -20,3 +20,8 @@ [target."cfg(target_family = \"unix\")".dependencies.libc] version = "0.2.98" +@@ -189,3 +178,4 @@ + [target."cfg(target_family = \"unix\")".dependencies.num_threads] + version = "0.1.2" + optional = true ++ diff --git a/time-fix-metadata.diff b/time-fix-metadata.diff index 9d0ee5b..9a808f9 100644 --- a/time-fix-metadata.diff +++ b/time-fix-metadata.diff @@ -1,5 +1,5 @@ ---- time-0.3.29/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ time-0.3.29/Cargo.toml 2023-09-25T14:04:39.547209+00:00 +--- time-0.3.30/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ time-0.3.30/Cargo.toml 2023-10-15T10:16:12.733610+00:00 @@ -52,15 +52,6 @@ [lib] @@ -15,8 +15,8 @@ -harness = false [dependencies.deranged] - version = "0.3.7" -@@ -164,7 +155,6 @@ + version = "0.3.9" +@@ -169,7 +160,6 @@ "alloc", "deranged/std", ]