From f1649d9ac0ddd9e2cc1b6c8cf7698d7f190a909b Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Mon, 21 Mar 2022 13:11:26 +0100 Subject: [PATCH] Update to version 0.1.6; Fixes RHBZ#2065899 --- .gitignore | 1 + rust-utf8-width.spec | 25 +++++++++++-------------- sources | 2 +- 3 files changed, 13 insertions(+), 15 deletions(-) diff --git a/.gitignore b/.gitignore index 48dde6b..e1dc704 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /utf8-width-0.1.4.crate /utf8-width-0.1.5.crate +/utf8-width-0.1.6.crate diff --git a/rust-utf8-width.spec b/rust-utf8-width.spec index 6e88e16..01162f9 100644 --- a/rust-utf8-width.spec +++ b/rust-utf8-width.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 17 +# Generated by rust2rpm 21 %bcond_without check %global debug_package %{nil} %global crate utf8-width Name: rust-%{crate} -Version: 0.1.5 +Version: 0.1.6 Release: %autorelease Summary: Determine the width of a UTF-8 character by providing its first byte @@ -15,11 +15,8 @@ URL: https://crates.io/crates/utf8-width Source: %{crates_source} ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Determine the width of a UTF-8 character by providing its first byte.} @@ -32,13 +29,13 @@ 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 LICENSE -%doc README.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -46,11 +43,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 %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 diff --git a/sources b/sources index 2070f83..a746704 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (utf8-width-0.1.5.crate) = 9491b21ae7d516afc6015ce06fba94ba2916c4811bdb58b91b1d531603e978985473651abd56777285c58b8b0c7ed650a68fdab20423b623e0140aeab1bf3f6e +SHA512 (utf8-width-0.1.6.crate) = 2c51e38c7fa2a2c113ff74164067e49e2e615048144f3065c228a965804029447f7a1e65d926facccb8332a2ab2be02fffb7413d8eee6f883d941909b350844c