From 988aea6c474d3a911364ce498ae08c0b1e4e62ad Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Mon, 28 Aug 2023 18:16:54 +0200 Subject: [PATCH] Update to version 0.3.1; Fixes RHBZ#2235205 --- .gitignore | 1 + rust-sys-locale.spec | 14 +------------- rust2rpm.conf | 3 +++ sources | 2 +- sys-locale-fix-metadata-auto.diff | 16 ++++++---------- 5 files changed, 12 insertions(+), 24 deletions(-) create mode 100644 rust2rpm.conf diff --git a/.gitignore b/.gitignore index 2bcaea0..4805ecf 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /sys-locale-0.2.3.crate /sys-locale-0.2.4.crate /sys-locale-0.3.0.crate +/sys-locale-0.3.1.crate diff --git a/rust-sys-locale.spec b/rust-sys-locale.spec index 4144ecf..81b2440 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.3.0 +Version: 0.3.1 Release: %autorelease Summary: Small and lightweight library to obtain the active system locale @@ -50,18 +50,6 @@ 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/rust2rpm.conf b/rust2rpm.conf new file mode 100644 index 0000000..efb2cac --- /dev/null +++ b/rust2rpm.conf @@ -0,0 +1,3 @@ +[DEFAULT] +unwanted-features = + js diff --git a/sources b/sources index 74b7a20..a0cba99 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (sys-locale-0.3.0.crate) = 47833c5c0974b394b55ca3a8d1c598a8ef1570a4e9f48ebb30d42c76a36a218a3746dadb185f37bc3f3ab189c9cde106124ac51987075fc83b0e058e20225c72 +SHA512 (sys-locale-0.3.1.crate) = c06ff352d5beb9d214f08e82b8d49acd8b83114e6b88c9685f0694d42bba079215e6afd1c5c75a8e8bfbcc72d99cb01de7a3d8f160196adb6db9c34bcf1a1ebd diff --git a/sys-locale-fix-metadata-auto.diff b/sys-locale-fix-metadata-auto.diff index 3cea701..8eb7b5b 100644 --- a/sys-locale-fix-metadata-auto.diff +++ b/sys-locale-fix-metadata-auto.diff @@ -1,6 +1,6 @@ ---- 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 @@ +--- sys-locale-0.3.1/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ sys-locale-0.3.1/Cargo.toml 2023-08-28T16:04:54.741904+00:00 +@@ -27,31 +27,5 @@ [features] js = [ @@ -27,12 +27,8 @@ -] -optional = true - +-[target."cfg(all(target_family = \"wasm\", not(unix)))".dev-dependencies.wasm-bindgen-test] +-version = "0.3" +- -[target."cfg(target_os = \"android\")".dependencies.libc] -version = "0.2" -- --[target."cfg(windows)".dependencies.windows-sys] --version = "0.45" --features = [ -- "Win32_Globalization", -- "Win32_System_SystemServices", --]