From 6d888765623e9aaf892aa295d10816a794b9ff11 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Sat, 10 Dec 2022 20:30:34 +0100 Subject: [PATCH] Update to version 0.4.23; Fixes RHBZ#2142264 --- .gitignore | 1 + chrono-fix-metadata-auto.diff | 13 +++++-------- chrono-fix-metadata.diff | 29 +++++++++++++++-------------- rust-chrono.spec | 14 +++++++++++++- sources | 2 +- 5 files changed, 35 insertions(+), 24 deletions(-) diff --git a/.gitignore b/.gitignore index e1affb1..4de649c 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,4 @@ /chrono-0.4.19.crate /chrono-0.4.20.crate /chrono-0.4.22.crate +/chrono-0.4.23.crate diff --git a/chrono-fix-metadata-auto.diff b/chrono-fix-metadata-auto.diff index fa62ec6..8d74ca8 100644 --- a/chrono-fix-metadata-auto.diff +++ b/chrono-fix-metadata-auto.diff @@ -1,6 +1,6 @@ ---- chrono-0.4.22/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ chrono-0.4.22/Cargo.toml 1970-01-01T00:00:01+00:00 -@@ -115,7 +115,6 @@ +--- chrono-0.4.23/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ chrono-0.4.23/Cargo.toml 1970-01-01T00:00:01+00:00 +@@ -119,7 +119,6 @@ alloc = [] clock = [ "std", @@ -8,14 +8,14 @@ "iana-time-zone", ] default = [ -@@ -132,30 +131,7 @@ +@@ -136,27 +135,5 @@ "alloc", ] wasmbind = [ - "wasm-bindgen", - "js-sys", ] -- + -[target."cfg(all(target_arch = \"wasm32\", not(any(target_os = \"emscripten\", target_os = \"wasi\"))))".dependencies.js-sys] -version = "0.3" -optional = true @@ -36,6 +36,3 @@ - "timezoneapi", -] -optional = true - - [badges.appveyor] - repository = "chronotope/chrono" diff --git a/chrono-fix-metadata.diff b/chrono-fix-metadata.diff index 6081d7b..4cab67f 100644 --- a/chrono-fix-metadata.diff +++ b/chrono-fix-metadata.diff @@ -1,10 +1,9 @@ ---- chrono-0.4.22/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ chrono-0.4.22/Cargo.toml 2022-11-04T17:26:18.225342+00:00 -@@ -40,23 +40,6 @@ - +--- chrono-0.4.23/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ chrono-0.4.23/Cargo.toml 2022-12-10T19:27:26.376447+00:00 +@@ -40,26 +40,9 @@ [lib] name = "chrono" -- + -[[bench]] -name = "chrono" -harness = false @@ -18,13 +17,17 @@ - "serde", -] - --[dependencies.criterion] --version = "0.3" + [dependencies.arbitrary] + version = "1.0.0" + features = ["derive"] -optional = true +- +-[dependencies.criterion] +-version = "0.4.0" + optional = true [dependencies.iana-time-zone] - version = "0.1.44" -@@ -111,7 +94,6 @@ +@@ -115,7 +98,6 @@ [features] __doctest = [] @@ -32,7 +35,7 @@ alloc = [] clock = [ "std", -@@ -121,7 +103,6 @@ +@@ -125,7 +107,6 @@ "clock", "std", "oldtime", @@ -40,12 +43,10 @@ ] libc = [] oldtime = ["time"] -@@ -130,8 +111,6 @@ +@@ -134,6 +115,3 @@ "pure-rust-locales", "alloc", ] -wasmbind = [ -] - - [badges.appveyor] - repository = "chronotope/chrono" +- diff --git a/rust-chrono.spec b/rust-chrono.spec index 94b066c..ce55fcf 100644 --- a/rust-chrono.spec +++ b/rust-chrono.spec @@ -5,7 +5,7 @@ %global crate chrono Name: rust-chrono -Version: 0.4.22 +Version: 0.4.23 Release: %autorelease Summary: Date and time library for Rust @@ -67,6 +67,18 @@ use the "alloc" feature of the "%{crate}" crate. %files -n %{name}+alloc-devel %ghost %{crate_instdir}/Cargo.toml +%package -n %{name}+arbitrary-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+arbitrary-devel %{_description} + +This package contains library source intended for building other packages which +use the "arbitrary" feature of the "%{crate}" crate. + +%files -n %{name}+arbitrary-devel +%ghost %{crate_instdir}/Cargo.toml + %package -n %{name}+clock-devel Summary: %{summary} BuildArch: noarch diff --git a/sources b/sources index d66e4e3..e5a00e4 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (chrono-0.4.22.crate) = de856679ec16afe035176b22125a00ced532d49c8babac0a88fa5f6e4a3d9e526a34ee8bf51639653fc313a5703a202b1be013aa16fdd72a505151d7aafa7c44 +SHA512 (chrono-0.4.23.crate) = 697a78ee83eaf38d83011bdf2086b3149b830d3d270e8414828b98ed2426063df43ac6eb4324f2dd694662afb86e6e4f005dee6116dfdd97adaebedefffd43fa