From 95e62254c6680cafe37516eb5fc695236f8700c6 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Wed, 28 Aug 2024 00:49:08 +0200 Subject: [PATCH] Disable tests to avoid pulling in outdated dev-dependencies --- rust-simd-adler32.spec | 12 +++++------- rust2rpm.toml | 4 ++++ simd-adler32-fix-metadata.diff | 31 ------------------------------- 3 files changed, 9 insertions(+), 38 deletions(-) create mode 100644 rust2rpm.toml delete mode 100644 simd-adler32-fix-metadata.diff diff --git a/rust-simd-adler32.spec b/rust-simd-adler32.spec index 55a4a10..eb136de 100644 --- a/rust-simd-adler32.spec +++ b/rust-simd-adler32.spec @@ -1,5 +1,6 @@ -# Generated by rust2rpm 24 -%bcond_without check +# Generated by rust2rpm 26 +# * outdated dev-dependency: adler32 +%bcond_with check %global debug_package %{nil} %global crate simd-adler32 @@ -12,11 +13,8 @@ Summary: SIMD-accelerated Adler-32 hash algorithm implementation License: MIT URL: https://crates.io/crates/simd-adler32 Source: %{crates_source} -# Manually created patch for downstream crate metadata changes -# * drop unused, benchmark-only criterion dev-dependency to speed up builds -Patch: simd-adler32-fix-metadata.diff -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: A SIMD-accelerated Adler-32 hash algorithm implementation.} @@ -87,7 +85,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..15b25b4 --- /dev/null +++ b/rust2rpm.toml @@ -0,0 +1,4 @@ +[tests] +run = ["none"] +comments = ["outdated dev-dependency: adler32"] + diff --git a/simd-adler32-fix-metadata.diff b/simd-adler32-fix-metadata.diff deleted file mode 100644 index 8a0c488..0000000 --- a/simd-adler32-fix-metadata.diff +++ /dev/null @@ -1,31 +0,0 @@ ---- simd-adler32-0.3.7/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ simd-adler32-0.3.7/Cargo.toml 2023-07-27T14:59:12.584721+00:00 -@@ -31,28 +31,11 @@ - license = "MIT" - repository = "https://github.com/mcountryman/simd-adler32" - --[profile.release] --opt-level = 2 --debug = 2 -- --[[bench]] --name = "alts" --path = "bench/alts.rs" --harness = false -- --[[bench]] --name = "variants" --path = "bench/variants.rs" --harness = false -- - [dev-dependencies.adler] - version = "1.0.2" - - [dev-dependencies.adler32] - version = "1.2.0" -- --[dev-dependencies.criterion] --version = "0.3" - - [dev-dependencies.rand] - version = "0.8"