From afc605cfe7fbfca3aadac49922f19561ba8f30a6 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Sun, 1 Sep 2024 17:59:36 +0200 Subject: [PATCH] Disable tests to avoid pulling in outdated dev-dependencies --- base64-fix-metadata.diff | 12 ------------ rust-base64_0.13.spec | 12 +++++------- rust2rpm.toml | 4 ++++ 3 files changed, 9 insertions(+), 19 deletions(-) delete mode 100644 base64-fix-metadata.diff create mode 100644 rust2rpm.toml diff --git a/base64-fix-metadata.diff b/base64-fix-metadata.diff deleted file mode 100644 index 51c7382..0000000 --- a/base64-fix-metadata.diff +++ /dev/null @@ -1,12 +0,0 @@ ---- base64-0.13.1/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ base64-0.13.1/Cargo.toml 2023-02-23T15:49:25.031941+00:00 -@@ -38,9 +38,6 @@ - name = "benchmarks" - harness = false - --[dev-dependencies.criterion] --version = "=0.3.2" -- - [dev-dependencies.rand] - version = "0.6.1" - diff --git a/rust-base64_0.13.spec b/rust-base64_0.13.spec index c1fcb61..5a5f5e4 100644 --- a/rust-base64_0.13.spec +++ b/rust-base64_0.13.spec @@ -1,5 +1,6 @@ -# Generated by rust2rpm 24 -%bcond_without check +# Generated by rust2rpm 26 +# * outdated dev-dependencies: rand ^0.6, structopt +%bcond_with check %global debug_package %{nil} %global crate base64 @@ -13,11 +14,8 @@ Summary: Encodes and decodes base64 as bytes or utf8 License: MIT OR Apache-2.0 URL: https://crates.io/crates/base64 Source: %{crates_source} -# Manually created patch for downstream crate metadata changes -# * drop unused, benchmark-only criterion dev-dependency to speed up builds -Patch: base64-fix-metadata.diff -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Encodes and decodes base64 as bytes or utf8.} @@ -77,7 +75,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..27d517f --- /dev/null +++ b/rust2rpm.toml @@ -0,0 +1,4 @@ +[tests] +run = ["none"] +comments = ["outdated dev-dependencies: rand ^0.6, structopt"] +