From d555597bc08a5aff61869bcea794856afc994d0d Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Wed, 10 Aug 2022 23:39:48 +0200 Subject: [PATCH] Update to version 0.2.4; Fixes RHBZ#2066007 --- .gitignore | 1 + constant_time_eq-fix-metadata.diff | 13 +++++++++++ rust-constant_time_eq.spec | 35 +++++++++++++++--------------- sources | 2 +- 4 files changed, 33 insertions(+), 18 deletions(-) create mode 100644 constant_time_eq-fix-metadata.diff diff --git a/.gitignore b/.gitignore index b072cb7..39e019c 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /constant_time_eq-0.1.5.crate +/constant_time_eq-0.2.4.crate diff --git a/constant_time_eq-fix-metadata.diff b/constant_time_eq-fix-metadata.diff new file mode 100644 index 0000000..3216c8f --- /dev/null +++ b/constant_time_eq-fix-metadata.diff @@ -0,0 +1,13 @@ +--- constant_time_eq-0.2.4/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ constant_time_eq-0.2.4/Cargo.toml 2022-08-10T21:38:31.152983+00:00 +@@ -30,10 +30,3 @@ + [[bench]] + name = "bench" + harness = false +- +-[dev-dependencies.criterion] +-version = "0.3" +-features = [ +- "cargo_bench_support", +- "html_reports", +-] diff --git a/rust-constant_time_eq.spec b/rust-constant_time_eq.spec index f58f290..89203af 100644 --- a/rust-constant_time_eq.spec +++ b/rust-constant_time_eq.spec @@ -1,25 +1,24 @@ -# Generated by rust2rpm 17 +# Generated by rust2rpm 22 %bcond_without check %global debug_package %{nil} %global crate constant_time_eq -Name: rust-%{crate} -Version: 0.1.5 +Name: rust-constant_time_eq +Version: 0.2.4 Release: %autorelease Summary: Compares two equal-sized byte strings in constant time -# Upstream license specification: CC0-1.0 -License: CC0 +License: CC0-1.0 OR MIT-0 OR Apache-2.0 URL: https://crates.io/crates/constant_time_eq Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * drop unused, benchmark-only criterion dev-dependency to speed up builds +Patch: constant_time_eq-fix-metadata.diff ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Compares two equal-sized byte strings in constant time.} @@ -32,13 +31,15 @@ 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.txt -%doc README -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-CC0 +%license %{crate_instdir}/LICENSE-MIT0 +%doc %{crate_instdir}/README +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -46,11 +47,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 6ec4954..eb2ea47 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (constant_time_eq-0.1.5.crate) = a4e0155a7ad72babcfd418d832d362b3fca7333aaaf36c246b00e948983837c3c93378b86e37c5fa7626fe137e3b6d77276ccc61624a7f4ab914605905a88a01 +SHA512 (constant_time_eq-0.2.4.crate) = 61f201f6d51b4c07607ea23701f340e6a204ff04073ee71b4102c2ef8119a2629d89cacb1fb86060a3eb7cd5efbe577d33e15a6e7b5c121d1abb519f95c3b79a