From 7cc85d2439c9f1c710ee8520a18646c7a32d67b6 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Thu, 3 Oct 2024 16:18:22 +0200 Subject: [PATCH] Update to version 0.2.0; Fixes RHBZ#2313640 --- .gitignore | 1 + rust-unicode-width.spec | 18 ++++++++++++++---- sources | 2 +- unicode-width-fix-metadata.diff | 19 ++++++++----------- 4 files changed, 24 insertions(+), 16 deletions(-) diff --git a/.gitignore b/.gitignore index f5d304c..db09ff6 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ /unicode-width-0.1.11.crate /unicode-width-0.1.12.crate /unicode-width-0.1.13.crate +/unicode-width-0.2.0.crate diff --git a/rust-unicode-width.spec b/rust-unicode-width.spec index b794824..5a197a7 100644 --- a/rust-unicode-width.spec +++ b/rust-unicode-width.spec @@ -3,11 +3,9 @@ %global debug_package %{nil} %global crate unicode-width -%global crate_version 0.1.12 -%global version_no_tilde 0.1.12 Name: rust-unicode-width -Version: 0.1.13+really0.1.12 +Version: 0.2.0 Release: %autorelease Summary: Determine displayed width of 'char' and 'str' types @@ -54,6 +52,18 @@ use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel %ghost %{crate_instdir}/Cargo.toml +%package -n %{name}+cjk-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+cjk-devel %{_description} + +This package contains library source intended for building other packages which +use the "cjk" feature of the "%{crate}" crate. + +%files -n %{name}+cjk-devel +%ghost %{crate_instdir}/Cargo.toml + %package -n %{name}+no_std-devel Summary: %{summary} BuildArch: noarch @@ -67,7 +77,7 @@ use the "no_std" feature of the "%{crate}" crate. %ghost %{crate_instdir}/Cargo.toml %prep -%autosetup -n %{crate}-%{crate_version} -p1 +%autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires diff --git a/sources b/sources index 964b462..746a459 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (unicode-width-0.1.12.crate) = 0bafd7a69bdf49c849e7c063ebf0487eca8a76244e3bc18c9a5f4609465dc0e5d482daceb6a9a6f4125b801bf7063cb8225fdb55173e5dc55e7bf278300df1b4 +SHA512 (unicode-width-0.2.0.crate) = 38149ad512a44fc79b2c991c6b5667da2e8f8b442ab6bb7e4f404e7fbb034f7540c7e0e8b9e72a1ff6117b899d6034862239f43b6423fa89d55dcf489caff37d diff --git a/unicode-width-fix-metadata.diff b/unicode-width-fix-metadata.diff index 0e28a61..c933ba6 100644 --- a/unicode-width-fix-metadata.diff +++ b/unicode-width-fix-metadata.diff @@ -1,14 +1,11 @@ ---- unicode-width-0.1.12/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ unicode-width-0.1.12/Cargo.toml 2024-06-10T14:43:09.392221+00:00 -@@ -17,10 +17,7 @@ - "kwantam ", +--- unicode-width-0.2.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ unicode-width-0.2.0/Cargo.toml 2024-10-03T14:16:08.633652+00:00 +@@ -18,7 +18,7 @@ "Manish Goregaokar ", ] --exclude = [ -- "target/*", -- "Cargo.lock", --] + build = false +-exclude = ["/.github/*"] +exclude = ["/scripts/*"] - description = """ - Determine displayed width of `char` and `str` types - according to Unicode Standard Annex #11 rules. + autobins = false + autoexamples = false + autotests = false