From b44f87ab8139d60d539fcddf3b6c62205fea527a Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Mon, 12 Dec 2022 20:20:45 +0100 Subject: [PATCH] Update to version 0.3.0; Fixes RHBZ#2125175 --- .gitignore | 1 + rust-idna.spec | 31 +++++++++++++------------------ sources | 2 +- 3 files changed, 15 insertions(+), 19 deletions(-) diff --git a/.gitignore b/.gitignore index 2ee1b2b..2d04a71 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ /idna-0.2.1.crate /idna-0.2.2.crate /idna-0.2.3.crate +/idna-0.3.0.crate diff --git a/rust-idna.spec b/rust-idna.spec index 3ff74b5..d5fca27 100644 --- a/rust-idna.spec +++ b/rust-idna.spec @@ -1,25 +1,19 @@ -# Generated by rust2rpm 17 +# Generated by rust2rpm 23 %bcond_without check %global debug_package %{nil} %global crate idna -Name: rust-%{crate} -Version: 0.2.3 +Name: rust-idna +Version: 0.3.0 Release: %autorelease Summary: IDNA (Internationalizing Domain Names in Applications) and Punycode -# Upstream license specification: MIT/Apache-2.0 -License: MIT or ASL 2.0 +License: MIT OR Apache-2.0 URL: https://crates.io/crates/idna Source: %{crates_source} -ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: IDNA (Internationalizing Domain Names in Applications) and Punycode.} @@ -32,12 +26,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-APACHE LICENSE-MIT -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -45,11 +40,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 6a50337..21e322c 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (idna-0.2.3.crate) = 1278bd561ce329e1dc7a6f24a10f83d9a068af5d15a088414f3921c6728b0d54f4d60d6f4d0d5a786596ad226263e1e50c3842f192d5758aa4665ba4ed5c269f +SHA512 (idna-0.3.0.crate) = 9b7cee27811ee52ed9bb39fe82f724742eef2e5370642b6c756bd134c8cbc20bb6faa9f296053672dba8a66f7356a08b2ca99f176407b173e2d566d85d066441