From a46c4ddaf5daeb7dca29865e40fd70759da09481 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Tue, 30 Jan 2024 13:41:51 +0100 Subject: [PATCH] Update to version 6.2.0; Fixes RHBZ#2259604 --- .gitignore | 1 + README.md | 3 --- rust-rustfft.spec | 11 +++++++---- rustfft-fix-metadata.diff | 24 ++++++++++++++++++++++++ sources | 2 +- 5 files changed, 33 insertions(+), 8 deletions(-) delete mode 100644 README.md create mode 100644 rustfft-fix-metadata.diff diff --git a/.gitignore b/.gitignore index da04346..05b17f5 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /rustfft-6.1.0.crate +/rustfft-6.2.0.crate diff --git a/README.md b/README.md deleted file mode 100644 index 01b97c6..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-rustfft - -The rust-rustfft package diff --git a/rust-rustfft.spec b/rust-rustfft.spec index 1eb2c24..820c04c 100644 --- a/rust-rustfft.spec +++ b/rust-rustfft.spec @@ -1,19 +1,22 @@ -# Generated by rust2rpm 23 +# Generated by rust2rpm 25 %bcond_without check %global debug_package %{nil} %global crate rustfft Name: rust-rustfft -Version: 6.1.0 +Version: 6.2.0 Release: %autorelease Summary: High-performance FFT library written in pure Rust License: MIT OR Apache-2.0 URL: https://crates.io/crates/rustfft Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * drop WASM-specific features and dependencies +Patch: rustfft-fix-metadata.diff -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: High-performance FFT library written in pure Rust.} @@ -86,7 +89,7 @@ use the "sse" 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/rustfft-fix-metadata.diff b/rustfft-fix-metadata.diff new file mode 100644 index 0000000..428261e --- /dev/null +++ b/rustfft-fix-metadata.diff @@ -0,0 +1,24 @@ +--- rustfft-6.2.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ rustfft-6.2.0/Cargo.toml 2024-01-30T12:39:04.735811+00:00 +@@ -56,16 +56,12 @@ + + [dev-dependencies.getrandom] + version = "^0.2" +-features = ["js"] + + [dev-dependencies.paste] + version = "1.0.9" + + [dev-dependencies.rand] + version = "0.8" +- +-[dev-dependencies.wasm-bindgen-test] +-version = "^0.3.36" + + [build-dependencies.version_check] + version = "0.9" +@@ -79,4 +75,3 @@ + ] + neon = [] + sse = [] +-wasm_simd = [] diff --git a/sources b/sources index 820bfae..d524dfe 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (rustfft-6.1.0.crate) = 7ca5a3c388ce17f0c05b1454d7f2ffeeaa626272fa7af202e75c2cf5a0b89f46d25447c3d04b5700c447050ac8e12f2bd575b5cc53c38ff5294326317c8bc2c6 +SHA512 (rustfft-6.2.0.crate) = c8f4bbf66f3c7c990af36bacd65240bca2c6334cb7139a3f92790e66ffcb5ea62757a469a7aff56ef602a79ebf2f860dc017a1ef8bd5a896f8383183f3b179ec