From a814a6b229625ae1dfc68697086a153022fe079d Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Sun, 10 Nov 2024 23:12:38 -0500 Subject: [PATCH] Update to version 0.23.0; Fixes RHBZ#2274162 --- .gitignore | 1 + rust-rstest_macros.spec | 24 ++++++++++++++++++------ rust2rpm.toml | 3 +++ sources | 2 +- 4 files changed, 23 insertions(+), 7 deletions(-) create mode 100644 rust2rpm.toml diff --git a/.gitignore b/.gitignore index a36eabc..237c447 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /rstest_macros-0.17.0.crate /rstest_macros-0.18.2.crate +/rstest_macros-0.23.0.crate diff --git a/rust-rstest_macros.spec b/rust-rstest_macros.spec index 4059df5..7698c64 100644 --- a/rust-rstest_macros.spec +++ b/rust-rstest_macros.spec @@ -1,12 +1,12 @@ -# Generated by rust2rpm 24 -# * tests can only be run in-tree +# Generated by rust2rpm 26 +# * Tests require the previous version of rstest. %bcond_with check %global debug_package %{nil} %global crate rstest_macros Name: rust-rstest_macros -Version: 0.18.2 +Version: 0.23.0 Release: %autorelease Summary: Rust fixture based test framework @@ -14,7 +14,7 @@ License: MIT OR Apache-2.0 URL: https://crates.io/crates/rstest_macros Source: %{crates_source} -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Rust fixture based test framework. It use procedural macro to implement @@ -32,8 +32,8 @@ This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel -%license %{crate_instdir}/LICENCE-MIT %license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT %doc %{crate_instdir}/README.md %{crate_instdir}/ @@ -61,8 +61,20 @@ use the "async-timeout" feature of the "%{crate}" crate. %files -n %{name}+async-timeout-devel %ghost %{crate_instdir}/Cargo.toml +%package -n %{name}+crate-name-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+crate-name-devel %{_description} + +This package contains library source intended for building other packages which +use the "crate-name" feature of the "%{crate}" crate. + +%files -n %{name}+crate-name-devel +%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..1e32ab1 --- /dev/null +++ b/rust2rpm.toml @@ -0,0 +1,3 @@ +[tests] +run = ["none"] +comments = ["Tests require the previous version of rstest."] diff --git a/sources b/sources index 01eaef7..fd7f706 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (rstest_macros-0.18.2.crate) = 614944fbd51de32b5e7ec1b485c12cd68ed9fae6ef296f9a9811de2495bc27887fa5ff8695c619255ac18da5af2b6ef8a557753d96b4c1ec3d711a9036bc7392 +SHA512 (rstest_macros-0.23.0.crate) = 5b404d73088bcf248e66bd58caee3c25a94fc614975996f52bc58e8be771e0152d093174e9c06440a73937bc682d896a0ec089b2a8cef8b6c8f5c6cd58e639b9