From 18430cb1f0cb51470920596d9441c7d4fb27dd26 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Tue, 5 Sep 2023 22:55:17 +0200 Subject: [PATCH] Update to version 0.5.3; Fixes RHBZ#2237332 --- .gitignore | 1 + crypto-bigint-fix-metadata.diff | 6 +++--- rust-crypto-bigint.spec | 15 ++++++++++++++- rust2rpm.conf | 2 ++ sources | 2 +- 5 files changed, 21 insertions(+), 5 deletions(-) create mode 100644 rust2rpm.conf diff --git a/.gitignore b/.gitignore index 89cfa38..7488488 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /crypto-bigint-0.2.11.crate /crypto-bigint-0.5.2.crate +/crypto-bigint-0.5.3.crate diff --git a/crypto-bigint-fix-metadata.diff b/crypto-bigint-fix-metadata.diff index 483031a..6c4384d 100644 --- a/crypto-bigint-fix-metadata.diff +++ b/crypto-bigint-fix-metadata.diff @@ -1,5 +1,5 @@ ---- crypto-bigint-0.5.2/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ crypto-bigint-0.5.2/Cargo.toml 2023-05-30T13:10:48.720741+00:00 +--- crypto-bigint-0.5.3/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ crypto-bigint-0.5.3/Cargo.toml 2023-09-05T20:52:33.193935+00:00 @@ -63,11 +63,6 @@ version = "0.6.4" optional = true @@ -18,7 +18,7 @@ version = "1" - -[dev-dependencies.criterion] --version = "0.4" +-version = "0.5" -features = ["html_reports"] [dev-dependencies.hex-literal] diff --git a/rust-crypto-bigint.spec b/rust-crypto-bigint.spec index a50e213..2a400f5 100644 --- a/rust-crypto-bigint.spec +++ b/rust-crypto-bigint.spec @@ -5,7 +5,7 @@ %global crate crypto-bigint Name: rust-crypto-bigint -Version: 0.5.2 +Version: 0.5.3 Release: %autorelease Summary: Pure Rust bigint implementation for use in cryptographic applications @@ -14,6 +14,7 @@ URL: https://crates.io/crates/crypto-bigint Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * drop optional rlp dependency (not packaged yet) +# * drop unused, benchmark-only criterion dev-dependency to speed up builds Patch: crypto-bigint-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 @@ -79,6 +80,18 @@ use the "der" feature of the "%{crate}" crate. %files -n %{name}+der-devel %ghost %{crate_instdir}/Cargo.toml +%package -n %{name}+extra-sizes-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+extra-sizes-devel %{_description} + +This package contains library source intended for building other packages which +use the "extra-sizes" feature of the "%{crate}" crate. + +%files -n %{name}+extra-sizes-devel +%ghost %{crate_instdir}/Cargo.toml + %package -n %{name}+generic-array-devel Summary: %{summary} BuildArch: noarch diff --git a/rust2rpm.conf b/rust2rpm.conf new file mode 100644 index 0000000..5370a62 --- /dev/null +++ b/rust2rpm.conf @@ -0,0 +1,2 @@ +[DEFAULT] +summary = Pure Rust bigint implementation for use in cryptographic applications diff --git a/sources b/sources index de60db4..8735afb 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (crypto-bigint-0.5.2.crate) = 8f36c974789faea7e8e0ee45978cd59d8fea85394948499ba9431f2f8c75a503e327ea7e0a123c810863ae454ba62944fe1a4a4575908e4958fa071337999205 +SHA512 (crypto-bigint-0.5.3.crate) = 62b079b0020830649ba8991494981e0fb9133317b4279f6229e9adef87dd394a7cfc8c713ca80185303ef254b423e1c33953a266984bfa21d247890172f29624