From 9d63738680c19e2693694366037c8cf8cd974c2e Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Wed, 3 Jan 2024 18:07:39 +0100 Subject: [PATCH] Update to version 1.0.22; Fixes RHBZ#2254419 --- .gitignore | 1 + rust-ref-cast.spec | 8 ++++---- rust2rpm.toml | 4 ++++ sources | 2 +- 4 files changed, 10 insertions(+), 5 deletions(-) create mode 100644 rust2rpm.toml diff --git a/.gitignore b/.gitignore index 997b5ae..daf54dc 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,4 @@ /ref-cast-1.0.18.crate /ref-cast-1.0.19.crate /ref-cast-1.0.20.crate +/ref-cast-1.0.22.crate diff --git a/rust-ref-cast.spec b/rust-ref-cast.spec index 56af91b..e7e0ff2 100644 --- a/rust-ref-cast.spec +++ b/rust-ref-cast.spec @@ -1,4 +1,4 @@ -# Generated by rust2rpm 24 +# Generated by rust2rpm 25 # * tests can only be run in-tree %bcond_with check %global debug_package %{nil} @@ -6,7 +6,7 @@ %global crate ref-cast Name: rust-ref-cast -Version: 1.0.20 +Version: 1.0.22 Release: %autorelease Summary: Safely cast &T to &U where the struct U contains a single field of type T @@ -14,7 +14,7 @@ License: MIT OR Apache-2.0 URL: https://crates.io/crates/ref-cast Source: %{crates_source} -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Safely cast &T to &U where the struct U contains a single field of type @@ -50,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..553347c --- /dev/null +++ b/rust2rpm.toml @@ -0,0 +1,4 @@ +[tests] +run = ["none"] +comments = ["tests can only be run in-tree"] + diff --git a/sources b/sources index ae55f1c..a7b3b08 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (ref-cast-1.0.20.crate) = 24225657d846b605a4fae93625402d78238b2049b153719c42cc9d7153dc93805c526c0c589ec4df0a8a0b3cd2014cba162d27b12031079b4230f2f80665f76f +SHA512 (ref-cast-1.0.22.crate) = eeab91cfdc68bd4f24ee3e3e89cd67c721763fe94c0746d220ea98504c0f9ef3ceb6341b48a90fd8701aa3150ac8b27af2078d00e7206fbd929dae6c35e8ff99