From b844a3cc78ffcf993d7174da63aa7616f79f2ca4 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Wed, 28 Aug 2024 15:17:36 +0200 Subject: [PATCH] Disable tests to avoid pulling in outdated dev-dependencies --- rust-humantime.spec | 9 +++++---- rust2rpm.toml | 4 ++++ 2 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 rust2rpm.toml diff --git a/rust-humantime.spec b/rust-humantime.spec index aa511f1..8d13426 100644 --- a/rust-humantime.spec +++ b/rust-humantime.spec @@ -1,5 +1,6 @@ -# Generated by rust2rpm 24 -%bcond_without check +# Generated by rust2rpm 26 +# * outdated dev-dependencies: rand ^0.6, time ^0.1 +%bcond_with check %global debug_package %{nil} %global crate humantime @@ -14,7 +15,7 @@ License: MIT OR Apache-2.0 URL: https://crates.io/crates/humantime Source: %{crates_source} -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: A parser and formatter for std::time::{Duration, SystemTime}.} @@ -49,7 +50,7 @@ use the "default" 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..b33688d --- /dev/null +++ b/rust2rpm.toml @@ -0,0 +1,4 @@ +[tests] +run = ["none"] +comments = ["outdated dev-dependencies: rand ^0.6, time ^0.1"] +