diff --git a/.gitignore b/.gitignore index 67c0c66..d2ee385 100644 --- a/.gitignore +++ b/.gitignore @@ -18,3 +18,4 @@ /time-0.3.9.crate /time-0.3.11.crate /time-0.3.12.crate +/time-0.3.13.crate diff --git a/rust-time.spec b/rust-time.spec index 0a1f556..939d0ff 100644 --- a/rust-time.spec +++ b/rust-time.spec @@ -6,7 +6,7 @@ %global crate time Name: rust-time -Version: 0.3.12 +Version: 0.3.13 Release: %autorelease Summary: Date and time library @@ -15,6 +15,9 @@ URL: https://crates.io/crates/time Source: %{crates_source} # Automatically generated patch to strip foreign dependencies Patch: time-fix-metadata-auto.diff +# Manually created patch for downstream crate metadata changes +# * remove WASM-specific features +Patch: time-fix-metadata.diff ExclusiveArch: %{rust_arches} diff --git a/sources b/sources index 727c6c4..1d9cd3d 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (time-0.3.12.crate) = 74ac14877b0490669e025636901abd909d3b944f2506b196640f6e1dc524469a9eb6fb26867849a79ff038ed13da73a74d774fe2f308833579c8db2005039bb8 +SHA512 (time-0.3.13.crate) = a6b667a6ea904b830d325b2d67fb129e27de965ba85f797547799efee1a0acb47a7273366bdd03911efcd0af2934f87e952f9a199f156e4f15b12b7bd0853b6b diff --git a/time-fix-metadata-auto.diff b/time-fix-metadata-auto.diff index e863163..99c80e2 100644 --- a/time-fix-metadata-auto.diff +++ b/time-fix-metadata-auto.diff @@ -1,21 +1,24 @@ ---- 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 @@ +--- time-0.3.13/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ time-0.3.13/Cargo.toml 1970-01-01T00:00:01+00:00 +@@ -133,20 +133,7 @@ + "parsing", ] std = ["alloc"] - +-wasm-bindgen = ["js-sys"] +- -[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" +-optional = true - -[target."cfg(bench)".dev-dependencies.criterion] -version = "0.3.5" - -[target."cfg(bench)".dev-dependencies.criterion-cycles-per-byte] -version = "0.1.2" -- ++wasm-bindgen = [] + [target."cfg(target_family = \"unix\")".dependencies.libc] version = "0.2.98" - diff --git a/time-fix-metadata.diff b/time-fix-metadata.diff new file mode 100644 index 0000000..526a21f --- /dev/null +++ b/time-fix-metadata.diff @@ -0,0 +1,10 @@ +--- time-0.3.13/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ time-0.3.13/Cargo.toml 2022-08-12T10:51:57.510459+00:00 +@@ -133,7 +133,6 @@ + "parsing", + ] + std = ["alloc"] +-wasm-bindgen = [] + + [target."cfg(target_family = \"unix\")".dependencies.libc] + version = "0.2.98"