From 0b93697c6404506ea1de26612aff56c53ecf64fc Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: Thu, 18 May 2023 15:28:36 -0500 Subject: [PATCH] Update to 0.80.0 Signed-off-by: Michel Alexandre Salim --- .gitignore | 1 + rust-sys-locale.spec | 14 +++++++++++++- sources | 2 +- sys-locale-fix-metadata-auto.diff | 24 ++++++++++++++++-------- 4 files changed, 31 insertions(+), 10 deletions(-) diff --git a/.gitignore b/.gitignore index 9138531..2bcaea0 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /sys-locale-0.2.1.crate /sys-locale-0.2.3.crate /sys-locale-0.2.4.crate +/sys-locale-0.3.0.crate diff --git a/rust-sys-locale.spec b/rust-sys-locale.spec index 1d6ac98..4144ecf 100644 --- a/rust-sys-locale.spec +++ b/rust-sys-locale.spec @@ -5,7 +5,7 @@ %global crate sys-locale Name: rust-sys-locale -Version: 0.2.4 +Version: 0.3.0 Release: %autorelease Summary: Small and lightweight library to obtain the active system locale @@ -50,6 +50,18 @@ use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel %ghost %{crate_instdir}/Cargo.toml +%package -n %{name}+js-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+js-devel %{_description} + +This package contains library source intended for building other packages which +use the "js" feature of the "%{crate}" crate. + +%files -n %{name}+js-devel +%ghost %{crate_instdir}/Cargo.toml + %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep diff --git a/sources b/sources index 5fcd33d..74b7a20 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (sys-locale-0.2.4.crate) = 6967fa9caf7be31e7469bd49c5fc3fb70679c51b8de7abacc6d884093f2f47b9120f2f3c98e4b168dc1c7134ab6e4078c316971146c5fa2c6a9b170b76fbe896 +SHA512 (sys-locale-0.3.0.crate) = 47833c5c0974b394b55ca3a8d1c598a8ef1570a4e9f48ebb30d42c76a36a218a3746dadb185f37bc3f3ab189c9cde106124ac51987075fc83b0e058e20225c72 diff --git a/sys-locale-fix-metadata-auto.diff b/sys-locale-fix-metadata-auto.diff index e857922..3cea701 100644 --- a/sys-locale-fix-metadata-auto.diff +++ b/sys-locale-fix-metadata-auto.diff @@ -1,16 +1,23 @@ ---- sys-locale-0.2.4/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ sys-locale-0.2.4/Cargo.toml 2023-03-07T22:21:45.681793+00:00 -@@ -25,27 +25,3 @@ - license = "MIT OR Apache-2.0" - repository = "https://github.com/1Password/sys-locale" +--- sys-locale-0.3.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ sys-locale-0.3.0/Cargo.toml 2023-05-18T20:28:03.527912+00:00 +@@ -27,35 +27,5 @@ --[target."cfg(target_arch = \"wasm32\")".dependencies.js-sys] + [features] + js = [ +- "js-sys", +- "wasm-bindgen", +- "web-sys", + ] + +-[target."cfg(all(target_family = \"wasm\", not(unix)))".dependencies.js-sys] -version = "0.3" +-optional = true - --[target."cfg(target_arch = \"wasm32\")".dependencies.wasm-bindgen] +-[target."cfg(all(target_family = \"wasm\", not(unix)))".dependencies.wasm-bindgen] -version = "0.2" +-optional = true - --[target."cfg(target_arch = \"wasm32\")".dependencies.web-sys] +-[target."cfg(all(target_family = \"wasm\", not(unix)))".dependencies.web-sys] -version = "0.3" -features = [ - "Window", @@ -18,6 +25,7 @@ - "Navigator", - "WorkerNavigator", -] +-optional = true - -[target."cfg(target_os = \"android\")".dependencies.libc] -version = "0.2"