From bed13dc450826d33521132361d8ac08a32e3ac45 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Sun, 15 Aug 2021 12:30:58 +0200 Subject: [PATCH] Update to version 0.3.6; Fixes RHBZ#1993452 --- .gitignore | 1 + rust-unicode-bidi.spec | 21 ++++++++++++++++----- sources | 2 +- unicode-bidi-fix-metadata.diff | 16 ++++++++-------- 4 files changed, 26 insertions(+), 14 deletions(-) diff --git a/.gitignore b/.gitignore index fefeb95..540e4e9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /unicode-bidi-0.3.4.crate /unicode-bidi-0.3.5.crate +/unicode-bidi-0.3.6.crate diff --git a/rust-unicode-bidi.spec b/rust-unicode-bidi.spec index 5bc5c82..e3af71c 100644 --- a/rust-unicode-bidi.spec +++ b/rust-unicode-bidi.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 17 +# Generated by rust2rpm 18 %bcond_without check %global debug_package %{nil} %global crate unicode-bidi Name: rust-%{crate} -Version: 0.3.5 +Version: 0.3.6 Release: %autorelease Summary: Implementation of the Unicode Bidirectional Algorithm @@ -14,7 +14,7 @@ License: MIT or ASL 2.0 URL: https://crates.io/crates/unicode-bidi Source: %{crates_source} # Initial patched metadata -# * drop flame_it feature with missing dependencies +# * drop unused flame_it feature with missing dependencies Patch0: unicode-bidi-fix-metadata.diff ExclusiveArch: %{rust_arches} @@ -79,6 +79,18 @@ which use "serde" feature of "%{crate}" crate. %files -n %{name}+serde-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%package -n %{name}+std-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+std-devel %{_description} + +This package contains library source intended for building other packages +which use "std" feature of "%{crate}" crate. + +%files -n %{name}+std-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + %package -n %{name}+unstable-devel Summary: %{summary} BuildArch: noarch @@ -118,8 +130,7 @@ which use "with_serde" feature of "%{crate}" crate. %if %{with check} %check -# Full tests miss files, https://github.com/servo/unicode-bidi/issues/43 -%cargo_test -- --doc +%cargo_test %endif %changelog diff --git a/sources b/sources index 3f3629a..f80dc4c 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (unicode-bidi-0.3.5.crate) = 4541d84db17eef16da6ea59f1ff7103549ff338d6ffabef21e75fbfcfdb1a3fd0f8e8fe18abab7b6117e997cefeaa5e87fb01fed8fedbcd0657fc913743de8ad +SHA512 (unicode-bidi-0.3.6.crate) = a1013539b0da1609d9c37cc1d8359efa93bd88b4ae176d25398e6c44d93b615835a54b184641f00313b14cf46542b1e92278b0dc1bd00dfca0566467b21857e7 diff --git a/unicode-bidi-fix-metadata.diff b/unicode-bidi-fix-metadata.diff index d45e4f0..9cb80ab 100644 --- a/unicode-bidi-fix-metadata.diff +++ b/unicode-bidi-fix-metadata.diff @@ -1,6 +1,6 @@ ---- unicode-bidi-0.3.5/Cargo.toml 1970-01-01T00:00:00+00:00 -+++ unicode-bidi-0.3.5/Cargo.toml 2021-04-30T10:41:10.301605+00:00 -@@ -25,13 +25,6 @@ +--- unicode-bidi-0.3.6/Cargo.toml 1970-01-01T00:00:00+00:00 ++++ unicode-bidi-0.3.6/Cargo.toml 2021-08-15T10:28:31.644755+00:00 +@@ -26,13 +26,6 @@ [lib] name = "unicode_bidi" @@ -12,13 +12,13 @@ -version = "0.4" -optional = true - [dependencies.matches] - version = "0.1" -@@ -46,7 +39,6 @@ + [dependencies.serde] + version = ">=0.8, <2.0" +@@ -45,7 +38,6 @@ [features] bench_it = [] - default = [] + default = ["std"] -flame_it = ["flame", "flamer"] + std = [] unstable = [] with_serde = ["serde"] - [badges.appveyor]