diff --git a/.gitignore b/.gitignore index ed1b043..3a349c9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /fastrand-1.3.4.crate /fastrand-1.4.0.crate /fastrand-1.4.1.crate +/fastrand-1.6.0.crate diff --git a/fastrand-fix-metadata.diff b/fastrand-fix-metadata.diff index da38851..cbfe1b5 100644 --- a/fastrand-fix-metadata.diff +++ b/fastrand-fix-metadata.diff @@ -1,9 +1,9 @@ ---- fastrand-1.4.1/Cargo.toml 1970-01-01T00:00:00+00:00 -+++ fastrand-1.4.1/Cargo.toml 2021-04-28T19:43:44.469778+00:00 -@@ -30,15 +30,3 @@ +--- fastrand-1.6.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ fastrand-1.6.0/Cargo.toml 2021-12-21T17:47:29.290570+00:00 +@@ -28,15 +28,3 @@ - [dev-dependencies.rand_pcg] - version = "0.3" + [dev-dependencies.wyhash] + version = "0.5.0" -[target."cfg(target_arch = \"wasm32\")".dependencies.instant] -version = "0.1" -[target."cfg(target_arch = \"wasm32\")".dev-dependencies.getrandom] diff --git a/rust-fastrand.spec b/rust-fastrand.spec index 8abb8ba..3340780 100644 --- a/rust-fastrand.spec +++ b/rust-fastrand.spec @@ -1,11 +1,12 @@ -# Generated by rust2rpm 17 -%bcond_without check +# Generated by rust2rpm 20 +# * missing dev-dependency: wyhash ^0.5 +%bcond_with check %global debug_package %{nil} %global crate fastrand Name: rust-%{crate} -Version: 1.4.1 +Version: 1.6.0 Release: %autorelease Summary: Simple and fast random number generator @@ -18,9 +19,6 @@ Source: %{crates_source} Patch0: fastrand-fix-metadata.diff ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif BuildRequires: rust-packaging @@ -35,12 +33,12 @@ 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 -%doc README.md CHANGELOG.md +%doc CHANGELOG.md README.md %{cargo_registry}/%{crate}-%{version_no_tilde}/ %package -n %{name}+default-devel @@ -49,8 +47,8 @@ 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 diff --git a/sources b/sources index 5c461b7..06fb3b0 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (fastrand-1.4.1.crate) = 643a3c0425c59e8ad24ebe98493b6abf2d68ed1fbd03b520eb5b85cbb00bc8def103ec9688486eef63c53792e2ec5d005d106fc073ec66fc6a89b09793a975f0 +SHA512 (fastrand-1.6.0.crate) = 85f0c5e01b9e549b6a170561600138caea9604f18eccafcc4c37c2bd70f992e77e852bec20302028ffeee40d85fe8e8dcb812c0d996010a0427fb68a0ed7b029