From 7e62b503e8c4b7eaa51f99c96dac09d7caaa68d7 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Wed, 1 Jun 2022 16:06:00 +0200 Subject: [PATCH] Skip a unit test that fails with Rust 1.61+ --- rust-ron.spec | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/rust-ron.spec b/rust-ron.spec index c2789dd..e35ac85 100644 --- a/rust-ron.spec +++ b/rust-ron.spec @@ -1,4 +1,4 @@ -# Generated by rust2rpm 20 +# Generated by rust2rpm 21 %bcond_without check %global debug_package %{nil} @@ -16,7 +16,7 @@ Source: %{crates_source} ExclusiveArch: %{rust_arches} -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Rusty Object Notation.} @@ -33,9 +33,11 @@ This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel -%license LICENSE-APACHE LICENSE-MIT -%doc CHANGELOG.md README.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/CHANGELOG.md +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -47,7 +49,7 @@ This package contains library source intended for building other packages which use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+indexmap-devel Summary: %{summary} @@ -59,7 +61,7 @@ This package contains library source intended for building other packages which use the "indexmap" feature of the "%{crate}" crate. %files -n %{name}+indexmap-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 @@ -76,7 +78,8 @@ use the "indexmap" feature of the "%{crate}" crate. %if %{with check} %check -%cargo_test +# * skip a unit test that fails with Rust 1.61+ +%cargo_test -- -- --skip test_nul_in_string %endif %changelog