From 84ced621e91d10fa146e54289070b8326b46989b Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Mon, 7 Nov 2022 13:31:47 +0100 Subject: [PATCH] Update to version 0.2.3; Fixes RHBZ#2140449 --- .gitignore | 1 + rust-sys-locale.spec | 16 +++++-------- sources | 2 +- ....diff => sys-locale-fix-metadata-auto.diff | 24 ++++++++++--------- 4 files changed, 21 insertions(+), 22 deletions(-) rename sys-locale-fix-metadata.diff => sys-locale-fix-metadata-auto.diff (50%) diff --git a/.gitignore b/.gitignore index 1c30224..ed365b8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /sys-locale-0.2.0.crate /sys-locale-0.2.1.crate +/sys-locale-0.2.3.crate diff --git a/rust-sys-locale.spec b/rust-sys-locale.spec index e0d79da..a602d0b 100644 --- a/rust-sys-locale.spec +++ b/rust-sys-locale.spec @@ -1,23 +1,19 @@ -# Generated by rust2rpm 21 +# Generated by rust2rpm 23 %bcond_without check %global debug_package %{nil} %global crate sys-locale -Name: rust-%{crate} -Version: 0.2.1 +Name: rust-sys-locale +Version: 0.2.3 Release: %autorelease Summary: Small and lightweight library to obtain the active system locale -# Upstream license specification: MIT OR Apache-2.0 -License: MIT or ASL 2.0 +License: MIT OR Apache-2.0 URL: https://crates.io/crates/sys-locale Source: %{crates_source} -# Initial patched metadata -# * drop non-linux dependencies -Patch0: sys-locale-fix-metadata.diff - -ExclusiveArch: %{rust_arches} +# Automatically generated patch to strip foreign dependencies +Patch: sys-locale-fix-metadata-auto.diff BuildRequires: rust-packaging >= 21 diff --git a/sources b/sources index a7b01ab..8c7cca1 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (sys-locale-0.2.1.crate) = c2d67165f609320692fc8938931996a775aeba7fb319246c8340010b33994fc2f637beff68a0c7fae26e7a3d8b19f43770e2585263df92f65bcad7f4666a0fa9 +SHA512 (sys-locale-0.2.3.crate) = 9346e721efcd1f3d7efed7f194f744fd09c9808595415cabbf91463fa44a7fbae9216f17b36912eeb572aaf3b54536eca2452562b225bb0235e52d834cccf805 diff --git a/sys-locale-fix-metadata.diff b/sys-locale-fix-metadata-auto.diff similarity index 50% rename from sys-locale-fix-metadata.diff rename to sys-locale-fix-metadata-auto.diff index da82b20..4ce1e63 100644 --- a/sys-locale-fix-metadata.diff +++ b/sys-locale-fix-metadata-auto.diff @@ -1,14 +1,9 @@ ---- 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 @@ +--- sys-locale-0.2.3/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ sys-locale-0.2.3/Cargo.toml 1970-01-01T00:00:01+00:00 +@@ -25,24 +25,3 @@ + license = "MIT OR Apache-2.0" 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" - @@ -17,9 +12,16 @@ - -[target."cfg(target_arch = \"wasm32\")".dependencies.web-sys] -version = "0.3" --features = ["Window", "WorkerGlobalScope", "Navigator", "WorkerNavigator"] +-features = [ +- "Window", +- "WorkerGlobalScope", +- "Navigator", +- "WorkerNavigator", +-] +- -[target."cfg(target_os = \"android\")".dependencies.libc] -version = "0.2" +- -[target."cfg(windows)".dependencies.winapi] -version = "0.3" -features = ["winnls"]