From c627bfb72a37d13f0caff7a41b4f52d80dba9de9 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Wed, 27 Jul 2022 20:43:53 +0200 Subject: [PATCH] Update to version 1.8.0; Fixes RHBZ#2110109 --- .gitignore | 1 + ...ta.diff => fastrand-fix-metadata-auto.diff | 9 ++++--- rust-fastrand.spec | 26 +++++++++---------- sources | 2 +- 4 files changed, 20 insertions(+), 18 deletions(-) rename fastrand-fix-metadata.diff => fastrand-fix-metadata-auto.diff (76%) diff --git a/.gitignore b/.gitignore index d3b1e4f..a9469e2 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /fastrand-1.4.1.crate /fastrand-1.6.0.crate /fastrand-1.7.0.crate +/fastrand-1.8.0.crate diff --git a/fastrand-fix-metadata.diff b/fastrand-fix-metadata-auto.diff similarity index 76% rename from fastrand-fix-metadata.diff rename to fastrand-fix-metadata-auto.diff index 56bdc56..b18b38c 100644 --- a/fastrand-fix-metadata.diff +++ b/fastrand-fix-metadata-auto.diff @@ -1,11 +1,12 @@ ---- fastrand-1.7.0/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ fastrand-1.7.0/Cargo.toml 2022-01-26T16:48:51.680012+00:00 -@@ -29,15 +29,3 @@ - +--- fastrand-1.8.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ fastrand-1.8.0/Cargo.toml 1970-01-01T00:00:01+00:00 +@@ -38,16 +38,3 @@ [dev-dependencies.wyhash] version = "0.5" + -[target."cfg(target_arch = \"wasm32\")".dependencies.instant] -version = "0.1" +- -[target."cfg(target_arch = \"wasm32\")".dev-dependencies.getrandom] -version = "0.2" -features = ["js"] diff --git a/rust-fastrand.spec b/rust-fastrand.spec index 6962bf1..d12fc31 100644 --- a/rust-fastrand.spec +++ b/rust-fastrand.spec @@ -1,26 +1,24 @@ -# Generated by rust2rpm 20 +# Generated by rust2rpm 22 # * missing dev-dependency: wyhash ^0.5 %bcond_with check %global debug_package %{nil} %global crate fastrand -Name: rust-%{crate} -Version: 1.7.0 +Name: rust-fastrand +Version: 1.8.0 Release: %autorelease Summary: Simple and fast random number generator -# Upstream license specification: Apache-2.0 OR MIT -License: ASL 2.0 or MIT +License: Apache-2.0 OR MIT URL: https://crates.io/crates/fastrand Source: %{crates_source} -# Initial patched metadata -# * drop WASM-specific dependencies -Patch0: fastrand-fix-metadata.diff +# Automatically generated patch to strip foreign dependencies +Patch: fastrand-fix-metadata-auto.diff ExclusiveArch: %{rust_arches} -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Simple and fast random number generator.} @@ -37,9 +35,11 @@ This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel -%license LICENSE-APACHE LICENSE-MIT -%doc CHANGELOG.md README.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/CHANGELOG.md +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -51,7 +51,7 @@ 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 760cca3..c73c355 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (fastrand-1.7.0.crate) = 6a1a8cd4f6f9bfff07a4ca18ef84839e4427ca9bf9b6733bb15b1b70cf2439820d6a770ae9f3e5e10166a6144449e37e6f3f6ed9acb761688207fd7c53d2c673 +SHA512 (fastrand-1.8.0.crate) = 82cbc2b29b97fa3fa2c9372d3e8c390586a7b39f6c7d8c45f9b779bdfdaa2e8a3b44bc7bfcb3367c18120726facc753c9827cf63a8fb4ddc2667509b16333cb1