diff --git a/.gitignore b/.gitignore index b6daa7a..f9baf51 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /unicode-bidi-0.3.5.crate /unicode-bidi-0.3.6.crate /unicode-bidi-0.3.7.crate +/unicode-bidi-0.3.8.crate diff --git a/rust-unicode-bidi.spec b/rust-unicode-bidi.spec index 0ae6045..e1e9a3c 100644 --- a/rust-unicode-bidi.spec +++ b/rust-unicode-bidi.spec @@ -1,15 +1,15 @@ -# Generated by rust2rpm 18 +# Generated by rust2rpm 21 %bcond_without check %global debug_package %{nil} %global crate unicode-bidi Name: rust-%{crate} -Version: 0.3.7 +Version: 0.3.8 Release: %autorelease Summary: Implementation of the Unicode Bidirectional Algorithm -# Upstream license specification: MIT / Apache-2.0 +# Upstream license specification: MIT OR Apache-2.0 License: MIT or ASL 2.0 URL: https://crates.io/crates/unicode-bidi Source: %{crates_source} @@ -18,11 +18,8 @@ Source: %{crates_source} Patch0: unicode-bidi-fix-metadata.diff ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Implementation of the Unicode Bidirectional Algorithm.} @@ -35,13 +32,16 @@ BuildArch: noarch %description devel %{_description} -This package contains library source intended for building other packages -which use "%{crate}" crate. +This package contains library source intended for building other packages which +use the "%{crate}" crate. %files devel -%license COPYRIGHT LICENSE-MIT LICENSE-APACHE -%doc README.md AUTHORS -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/COPYRIGHT +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/AUTHORS +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -49,11 +49,11 @@ BuildArch: noarch %description -n %{name}+default-devel %{_description} -This package contains library source intended for building other packages -which use "default" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+bench_it-devel Summary: %{summary} @@ -61,11 +61,23 @@ BuildArch: noarch %description -n %{name}+bench_it-devel %{_description} -This package contains library source intended for building other packages -which use "bench_it" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "bench_it" feature of the "%{crate}" crate. %files -n %{name}+bench_it-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+hardcoded-data-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+hardcoded-data-devel %{_description} + +This package contains library source intended for building other packages which +use the "hardcoded-data" feature of the "%{crate}" crate. + +%files -n %{name}+hardcoded-data-devel +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+serde-devel Summary: %{summary} @@ -73,11 +85,11 @@ BuildArch: noarch %description -n %{name}+serde-devel %{_description} -This package contains library source intended for building other packages -which use "serde" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "serde" feature of the "%{crate}" crate. %files -n %{name}+serde-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+std-devel Summary: %{summary} @@ -85,11 +97,11 @@ 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. +This package contains library source intended for building other packages which +use the "std" feature of the "%{crate}" crate. %files -n %{name}+std-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+unstable-devel Summary: %{summary} @@ -97,11 +109,11 @@ BuildArch: noarch %description -n %{name}+unstable-devel %{_description} -This package contains library source intended for building other packages -which use "unstable" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "unstable" feature of the "%{crate}" crate. %files -n %{name}+unstable-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+with_serde-devel Summary: %{summary} @@ -109,11 +121,11 @@ BuildArch: noarch %description -n %{name}+with_serde-devel %{_description} -This package contains library source intended for building other packages -which use "with_serde" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "with_serde" feature of the "%{crate}" crate. %files -n %{name}+with_serde-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 diff --git a/sources b/sources index 879562a..41d45e3 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (unicode-bidi-0.3.7.crate) = 6eeafec87a504ac968b59dd3168714e555b5b374cfbb5a6a9c962445c423f82b68ee54d1b732c5939eb17fdbb804f9b3affe828745bf4ff34e8a1587df2bc8bf +SHA512 (unicode-bidi-0.3.8.crate) = 810b5be48159ecbca542c715496f279518285c3b09f7c39451986f94e6c259fab1057512a2148bf99ba9abf76e861a24456b547cc2273f0b45ed5d3ce9dfe3d5 diff --git a/unicode-bidi-fix-metadata.diff b/unicode-bidi-fix-metadata.diff index 123b7bb..3b350b3 100644 --- a/unicode-bidi-fix-metadata.diff +++ b/unicode-bidi-fix-metadata.diff @@ -1,9 +1,9 @@ ---- unicode-bidi-0.3.7/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ unicode-bidi-0.3.7/Cargo.toml 2021-11-07T14:39:04.569833+00:00 -@@ -25,13 +25,6 @@ - +--- 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 @@ [lib] name = "unicode_bidi" + -[dependencies.flame] -version = "0.2" -optional = true @@ -11,14 +11,18 @@ -[dependencies.flamer] -version = "0.4" -optional = true - +- [dependencies.serde] version = ">=0.8, <2.0" -@@ -44,7 +37,6 @@ - [features] - bench_it = [] - default = ["std"] --flame_it = ["flame", "flamer"] + features = ["derive"] +@@ -65,10 +57,6 @@ + "std", + "hardcoded-data", + ] +-flame_it = [ +- "flame", +- "flamer", +-] + hardcoded-data = [] std = [] unstable = [] - with_serde = ["serde"]