From b365ca2be088d83acf1e29f7b719ac5021cd905c Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Sat, 28 Jan 2023 22:22:37 +0100 Subject: [PATCH] Update to version 0.3.10; Fixes RHBZ#2162239 --- .gitignore | 1 + rust-unicode-bidi.spec | 16 +++++++--------- sources | 2 +- unicode-bidi-fix-metadata.diff | 13 +++++++++---- 4 files changed, 18 insertions(+), 14 deletions(-) diff --git a/.gitignore b/.gitignore index f9baf51..5d88fec 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /unicode-bidi-0.3.6.crate /unicode-bidi-0.3.7.crate /unicode-bidi-0.3.8.crate +/unicode-bidi-0.3.10.crate diff --git a/rust-unicode-bidi.spec b/rust-unicode-bidi.spec index e1e9a3c..567553a 100644 --- a/rust-unicode-bidi.spec +++ b/rust-unicode-bidi.spec @@ -1,23 +1,21 @@ -# Generated by rust2rpm 21 +# Generated by rust2rpm 23 %bcond_without check %global debug_package %{nil} %global crate unicode-bidi -Name: rust-%{crate} -Version: 0.3.8 +Name: rust-unicode-bidi +Version: 0.3.10 Release: %autorelease Summary: Implementation of the Unicode Bidirectional Algorithm -# 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/unicode-bidi Source: %{crates_source} -# Initial patched metadata +# Manually created patch for downstream crate metadata changes # * drop unused flame_it feature with missing dependencies -Patch0: unicode-bidi-fix-metadata.diff - -ExclusiveArch: %{rust_arches} +# * drop references to test files that are not shipped in published crates +Patch: unicode-bidi-fix-metadata.diff BuildRequires: rust-packaging >= 21 diff --git a/sources b/sources index 41d45e3..4fd8e20 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (unicode-bidi-0.3.8.crate) = 810b5be48159ecbca542c715496f279518285c3b09f7c39451986f94e6c259fab1057512a2148bf99ba9abf76e861a24456b547cc2273f0b45ed5d3ce9dfe3d5 +SHA512 (unicode-bidi-0.3.10.crate) = 70f81dcf3fb3ada1eb503cfda548e083cae6e7001dc445c0a481b8f467025f17dc26ac14e487edcdc2aba8b67f94a35eb4b5083a62d5b954dafca7b734edd3e3 diff --git a/unicode-bidi-fix-metadata.diff b/unicode-bidi-fix-metadata.diff index 3b350b3..d589f07 100644 --- a/unicode-bidi-fix-metadata.diff +++ b/unicode-bidi-fix-metadata.diff @@ -1,9 +1,14 @@ ---- unicode-bidi-0.3.8/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ unicode-bidi-0.3.8/Cargo.toml 2022-05-13T10:30:12.907041+00:00 -@@ -42,14 +42,6 @@ +--- unicode-bidi-0.3.10/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ unicode-bidi-0.3.10/Cargo.toml 2023-01-28T21:20:03.674828+00:00 +@@ -42,19 +42,6 @@ [lib] name = "unicode_bidi" +-[[test]] +-name = "conformance_tests" +-path = "tests/conformance_tests.rs" +-required-features = ["hardcoded-data"] +- -[dependencies.flame] -version = "0.2" -optional = true @@ -15,7 +20,7 @@ [dependencies.serde] version = ">=0.8, <2.0" features = ["derive"] -@@ -65,10 +57,6 @@ +@@ -70,10 +57,6 @@ "std", "hardcoded-data", ]