From b7d3ce946eaf1c31424978b165b821ef230ef007 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Thu, 25 Apr 2024 14:51:22 +0200 Subject: [PATCH] Update to version 2.0.2; Fixes RHBZ#2271251 --- .gitignore | 1 + fastrand-fix-metadata-auto.diff | 4 ++-- fastrand-fix-metadata.diff | 4 ++-- rust-fastrand.spec | 10 +++++----- rust2rpm.toml | 11 +++++++++++ sources | 2 +- 6 files changed, 22 insertions(+), 10 deletions(-) create mode 100644 rust2rpm.toml diff --git a/.gitignore b/.gitignore index 2662aae..879fe30 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ /fastrand-1.9.0.crate /fastrand-2.0.0.crate /fastrand-2.0.1.crate +/fastrand-2.0.2.crate diff --git a/fastrand-fix-metadata-auto.diff b/fastrand-fix-metadata-auto.diff index 6d898d5..0724968 100644 --- a/fastrand-fix-metadata-auto.diff +++ b/fastrand-fix-metadata-auto.diff @@ -1,5 +1,5 @@ ---- fastrand-2.0.1/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ fastrand-2.0.1/Cargo.toml 2023-09-26T16:53:36.810445+00:00 +--- fastrand-2.0.2/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ fastrand-2.0.2/Cargo.toml 2024-04-25T12:50:18.235116+00:00 @@ -50,18 +50,6 @@ default = ["std"] js = [ diff --git a/fastrand-fix-metadata.diff b/fastrand-fix-metadata.diff index b488b32..c55175d 100644 --- a/fastrand-fix-metadata.diff +++ b/fastrand-fix-metadata.diff @@ -1,5 +1,5 @@ ---- fastrand-2.0.1/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ fastrand-2.0.1/Cargo.toml 2023-09-26T16:53:47.491498+00:00 +--- fastrand-2.0.2/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ fastrand-2.0.2/Cargo.toml 2024-04-25T12:50:21.456132+00:00 @@ -48,8 +48,5 @@ [features] alloc = [] diff --git a/rust-fastrand.spec b/rust-fastrand.spec index a0cd768..37cdc56 100644 --- a/rust-fastrand.spec +++ b/rust-fastrand.spec @@ -1,4 +1,4 @@ -# Generated by rust2rpm 24 +# Generated by rust2rpm 26 # * missing dev-dependency: wyhash ^0.5 %bcond_with check %global debug_package %{nil} @@ -6,20 +6,20 @@ %global crate fastrand Name: rust-fastrand -Version: 2.0.1 +Version: 2.0.2 Release: %autorelease Summary: Simple and fast random number generator License: Apache-2.0 OR MIT URL: https://crates.io/crates/fastrand Source: %{crates_source} -# Automatically generated patch to strip foreign dependencies +# Automatically generated patch to strip dependencies and normalize metadata Patch: fastrand-fix-metadata-auto.diff # Manually created patch for downstream crate metadata changes # * remove WASM-specific "js" feature Patch: fastrand-fix-metadata.diff -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: A simple and fast random number generator.} @@ -79,7 +79,7 @@ use the "std" feature of the "%{crate}" crate. %ghost %{crate_instdir}/Cargo.toml %prep -%autosetup -n %{crate}-%{version_no_tilde} -p1 +%autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires diff --git a/rust2rpm.toml b/rust2rpm.toml new file mode 100644 index 0000000..b7cf0c7 --- /dev/null +++ b/rust2rpm.toml @@ -0,0 +1,11 @@ +[package] +cargo-toml-patch-comments = [ + "remove WASM-specific \"js\" feature", +] + +[tests] +run = ["none"] +comments = [ + "missing dev-dependency: wyhash ^0.5", +] + diff --git a/sources b/sources index 8994e9d..ae82a59 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (fastrand-2.0.1.crate) = 79a1e1b3f39264f037def236afbd87b732f5e0a2154b1d9e721b3c7990c52be45138320e2571fe628f482e0da7e3cf867abb745e3c277b19015fc031fd4410d9 +SHA512 (fastrand-2.0.2.crate) = 3ef9c21e4928071619adbad6421165ea82feb04c26ee18893b172f9f8a510b9a2097257ae31647a907680412b68d6662eff13cb27649ed9f5e68c374619701cf