diff --git a/.gitignore b/.gitignore index 3562aa6..1c30224 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /sys-locale-0.2.0.crate +/sys-locale-0.2.1.crate diff --git a/rust-sys-locale.spec b/rust-sys-locale.spec index 590eb6c..e0d79da 100644 --- a/rust-sys-locale.spec +++ b/rust-sys-locale.spec @@ -5,7 +5,7 @@ %global crate sys-locale Name: rust-%{crate} -Version: 0.2.0 +Version: 0.2.1 Release: %autorelease Summary: Small and lightweight library to obtain the active system locale @@ -13,8 +13,9 @@ Summary: Small and lightweight library to obtain the active system locale License: MIT or ASL 2.0 URL: https://crates.io/crates/sys-locale Source: %{crates_source} -# Drop dependencies for non-Linux targets -Patch: sys-locale-fix-metadata.diff +# Initial patched metadata +# * drop non-linux dependencies +Patch0: sys-locale-fix-metadata.diff ExclusiveArch: %{rust_arches} diff --git a/sources b/sources index 79da5e2..a7b01ab 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (sys-locale-0.2.0.crate) = f3b7fad804090511e55d16fed6415894ce5e76a68196d2e7920a7567a00f0108127c2eb91e7a2fd992e2ae63516b39a4b3ae71f80226c4c60db7c32797e15886 +SHA512 (sys-locale-0.2.1.crate) = c2d67165f609320692fc8938931996a775aeba7fb319246c8340010b33994fc2f637beff68a0c7fae26e7a3d8b19f43770e2585263df92f65bcad7f4666a0fa9 diff --git a/sys-locale-fix-metadata.diff b/sys-locale-fix-metadata.diff index 96c95d7..da82b20 100644 --- a/sys-locale-fix-metadata.diff +++ b/sys-locale-fix-metadata.diff @@ -1,17 +1,23 @@ ---- sys-locale-0.2.0/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ sys-locale-0.2.0/Cargo.toml 2022-04-04T23:17:37.714971+00:00 -@@ -20,16 +20,4 @@ +--- sys-locale-0.2.1/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ sys-locale-0.2.1/Cargo.toml 2022-07-16T11:20:26.239014+00:00 +@@ -20,22 +20,3 @@ repository = "https://github.com/1Password/sys-locale" [build-dependencies.cc] version = "1.0" -[target."cfg(any(target_os = \"macos\", target_os = \"ios\"))".dependencies.cstr_core] -version = "0.2" - +- -[target."cfg(any(target_os = \"macos\", target_os = \"ios\"))".dependencies.libc] -version = "0.2" +-[target."cfg(target_arch = \"wasm32\")".dependencies.js-sys] +-version = "0.3" +- +-[target."cfg(target_arch = \"wasm32\")".dependencies.wasm-bindgen] +-version = "0.2" +- -[target."cfg(target_arch = \"wasm32\")".dependencies.web-sys] -version = "0.3" --features = ["Window", "Navigator"] +-features = ["Window", "WorkerGlobalScope", "Navigator", "WorkerNavigator"] -[target."cfg(target_os = \"android\")".dependencies.libc] -version = "0.2" -[target."cfg(windows)".dependencies.winapi]