From fdda8cd81a52c65ed2c1ea7efd7a70b83318f50c Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Sun, 8 Aug 2021 21:51:48 +0200 Subject: [PATCH] Update to version 0.5.3; Fixes RHBZ#1989448 --- .gitignore | 1 + rust-num_enum.spec | 11 ++++++----- sources | 2 +- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index a82d7b7..836c589 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /num_enum-0.5.1.crate /num_enum-0.5.2.crate +/num_enum-0.5.3.crate diff --git a/rust-num_enum.spec b/rust-num_enum.spec index 3ad54a0..ccea4cc 100644 --- a/rust-num_enum.spec +++ b/rust-num_enum.spec @@ -5,7 +5,7 @@ %global crate num_enum Name: rust-%{crate} -Version: 0.5.2 +Version: 0.5.3 Release: %autorelease Summary: Procedural macros to make inter-operation between primitives and enums easier @@ -90,6 +90,11 @@ which use "std" feature of "%{crate}" crate. %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 +# remove tests that rely on files that are not shipped with crates +rm tests/renamed_num_enum.rs +# remove broken trybuild tests that rely on exact error messages +rm tests/try_build.rs +rm -r tests/try_build/* %cargo_prep %generate_buildrequires @@ -103,10 +108,6 @@ which use "std" feature of "%{crate}" crate. %if %{with check} %check -# Disable broken tests -rm tests/renamed_num_enum.rs \ - tests/try_build/compile_fail/conflicting_derive.rs \ - tests/try_build/compile_fail/unreachable_patterns.rs %cargo_test %endif diff --git a/sources b/sources index f27488d..23b4260 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (num_enum-0.5.2.crate) = d0f4a450cadaf0a845624c1710b976cd6e878eef0f298c196c0d40ec7e996ba1e715df7301d014b60d5769ee30bddd52cb95ca1f78bf14517b5997136cdbe0cf +SHA512 (num_enum-0.5.3.crate) = c3c3c4e91c55e6960f0e56a582f10657fbaeac5b819851cce7097353ef60865b50f250be231dbbf1de62b3a86d17ea4749e30a3127bd3ed4fafd1d141b15f5bf