From 764c1af38257573099084b4d1914b13e0cbe8728 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Mon, 9 Dec 2024 20:39:17 +0100 Subject: [PATCH] Update to version 0.4.39; Fixes RHBZ#2331130 --- .gitignore | 1 + chrono-fix-metadata-auto.diff | 18 +++++++++--------- chrono-fix-metadata.diff | 10 +++++----- rust-chrono.spec | 6 +++--- rust2rpm.toml | 5 +++++ sources | 2 +- 6 files changed, 24 insertions(+), 18 deletions(-) create mode 100644 rust2rpm.toml diff --git a/.gitignore b/.gitignore index 6c88587..950b43c 100644 --- a/.gitignore +++ b/.gitignore @@ -25,3 +25,4 @@ /chrono-0.4.34.crate /chrono-0.4.35.crate /chrono-0.4.38.crate +/chrono-0.4.39.crate diff --git a/chrono-fix-metadata-auto.diff b/chrono-fix-metadata-auto.diff index 59f6084..d18b51d 100644 --- a/chrono-fix-metadata-auto.diff +++ b/chrono-fix-metadata-auto.diff @@ -1,6 +1,6 @@ ---- chrono-0.4.38/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ chrono-0.4.38/Cargo.toml 2024-04-15T16:54:13.063068+00:00 -@@ -90,7 +90,6 @@ +--- chrono-0.4.39/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ chrono-0.4.39/Cargo.toml 2024-12-09T19:37:10.552603+00:00 +@@ -109,7 +109,6 @@ clock = [ "winapi", "iana-time-zone", @@ -8,7 +8,7 @@ "now", ] default = [ -@@ -122,34 +121,11 @@ +@@ -141,34 +140,11 @@ std = ["alloc"] unstable-locales = ["pure-rust-locales"] wasmbind = [ @@ -17,18 +17,18 @@ ] -winapi = ["windows-targets"] - --[target."cfg(all(target_arch = \"wasm32\", not(any(target_os = \"emscripten\", target_os = \"wasi\"))))".dependencies.js-sys] +-[target.'cfg(all(target_arch = "wasm32", not(any(target_os = "emscripten", target_os = "wasi"))))'.dependencies.js-sys] -version = "0.3" -optional = true - --[target."cfg(all(target_arch = \"wasm32\", not(any(target_os = \"emscripten\", target_os = \"wasi\"))))".dependencies.wasm-bindgen] +-[target.'cfg(all(target_arch = "wasm32", not(any(target_os = "emscripten", target_os = "wasi"))))'.dependencies.wasm-bindgen] -version = "0.2" -optional = true - --[target."cfg(all(target_arch = \"wasm32\", not(any(target_os = \"emscripten\", target_os = \"wasi\"))))".dev-dependencies.wasm-bindgen-test] +-[target.'cfg(all(target_arch = "wasm32", not(any(target_os = "emscripten", target_os = "wasi"))))'.dev-dependencies.wasm-bindgen-test] -version = "0.3" - --[target."cfg(target_os = \"android\")".dependencies.android-tzdata] +-[target.'cfg(target_os = "android")'.dependencies.android-tzdata] -version = "0.1.1" -optional = true +winapi = [] @@ -43,4 +43,4 @@ -optional = true - -[target."cfg(windows)".dev-dependencies.windows-bindgen] --version = "0.56" +-version = "0.58" diff --git a/chrono-fix-metadata.diff b/chrono-fix-metadata.diff index 8b10c64..a4a51e6 100644 --- a/chrono-fix-metadata.diff +++ b/chrono-fix-metadata.diff @@ -1,6 +1,6 @@ ---- chrono-0.4.38/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ chrono-0.4.38/Cargo.toml 2024-04-15T16:55:22.385459+00:00 -@@ -85,10 +85,8 @@ +--- chrono-0.4.39/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ chrono-0.4.39/Cargo.toml 2024-12-09T19:37:10.554603+00:00 +@@ -104,10 +104,8 @@ version = "1" [features] @@ -11,7 +11,7 @@ "iana-time-zone", "now", ] -@@ -96,7 +94,6 @@ +@@ -115,7 +113,6 @@ "clock", "std", "oldtime", @@ -19,7 +19,7 @@ ] libc = [] now = ["std"] -@@ -120,9 +117,6 @@ +@@ -139,9 +136,6 @@ rkyv-validation = ["rkyv?/validation"] std = ["alloc"] unstable-locales = ["pure-rust-locales"] diff --git a/rust-chrono.spec b/rust-chrono.spec index 301d920..7dad084 100644 --- a/rust-chrono.spec +++ b/rust-chrono.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 26 -%bcond_without check +# Generated by rust2rpm 27 +%bcond check 1 %global debug_package %{nil} %global crate chrono Name: rust-chrono -Version: 0.4.38 +Version: 0.4.39 Release: %autorelease Summary: Date and time library for Rust diff --git a/rust2rpm.toml b/rust2rpm.toml new file mode 100644 index 0000000..4d401e7 --- /dev/null +++ b/rust2rpm.toml @@ -0,0 +1,5 @@ +[package] +cargo-toml-patch-comments = [ + "remove WASM- and Windows-specific features", +] + diff --git a/sources b/sources index 0b47cea..685e5b3 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (chrono-0.4.38.crate) = 858e47e3facebd5383e71898f26b27d92fe4a69027e2cc47da2af59975ead7767355e0b699f4228eabe76a3eff8b2519c7cecf8b60dc3fc60fbf9b28e2f3d4d9 +SHA512 (chrono-0.4.39.crate) = 5b258f76bea58ab9baa0fe8fb32c41928b8b655c76bb2fbaae9300ef8380cbb881296cee6b9e9886dce62b0759c73e84f6409e374a86cf0c80e3383512f98571