From 4a40bbf59e0f4520413aa47e634095ff4c796cbb Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Tue, 23 May 2023 00:14:57 +0200 Subject: [PATCH] Update to version 0.7.42; Fixes RHBZ#2203535 --- .gitignore | 1 + rkyv-fix-metadata.diff | 11 +++++++++++ rust-rkyv.spec | 43 +++++------------------------------------- sources | 2 +- 4 files changed, 18 insertions(+), 39 deletions(-) create mode 100644 rkyv-fix-metadata.diff diff --git a/.gitignore b/.gitignore index 56f878f..e054660 100644 --- a/.gitignore +++ b/.gitignore @@ -18,3 +18,4 @@ /rkyv-0.7.39.crate /rkyv-0.7.40.crate /rkyv-0.7.41.crate +/rkyv-0.7.42.crate diff --git a/rkyv-fix-metadata.diff b/rkyv-fix-metadata.diff new file mode 100644 index 0000000..1f0314c --- /dev/null +++ b/rkyv-fix-metadata.diff @@ -0,0 +1,11 @@ +--- rkyv-0.7.42/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ rkyv-0.7.42/Cargo.toml 2023-05-22T22:06:59.468045+00:00 +@@ -45,7 +45,7 @@ + default-features = false + + [dependencies.bytecheck] +-version = "=0.6.11" ++version = "0.6.11" + optional = true + default-features = false + diff --git a/rust-rkyv.spec b/rust-rkyv.spec index a9e195e..bd9f5dc 100644 --- a/rust-rkyv.spec +++ b/rust-rkyv.spec @@ -5,15 +5,18 @@ %global crate rkyv Name: rust-rkyv -Version: 0.7.41 +Version: 0.7.42 Release: %autorelease Summary: Zero-copy deserialization framework for Rust License: MIT URL: https://crates.io/crates/rkyv Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * relax bytecheck dependency from =0.6.11 to ^0.6.11 +Patch: rkyv-fix-metadata.diff -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Zero-copy deserialization framework for Rust.} @@ -119,18 +122,6 @@ use the "bitvec" feature of the "%{crate}" crate. %files -n %{name}+bitvec-devel %ghost %{crate_instdir}/Cargo.toml -%package -n %{name}+bitvec_alloc-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+bitvec_alloc-devel %{_description} - -This package contains library source intended for building other packages which -use the "bitvec_alloc" feature of the "%{crate}" crate. - -%files -n %{name}+bitvec_alloc-devel -%ghost %{crate_instdir}/Cargo.toml - %package -n %{name}+bytecheck-devel Summary: %{summary} BuildArch: noarch @@ -287,18 +278,6 @@ use the "tinyvec" feature of the "%{crate}" crate. %files -n %{name}+tinyvec-devel %ghost %{crate_instdir}/Cargo.toml -%package -n %{name}+tinyvec_alloc-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+tinyvec_alloc-devel %{_description} - -This package contains library source intended for building other packages which -use the "tinyvec_alloc" feature of the "%{crate}" crate. - -%files -n %{name}+tinyvec_alloc-devel -%ghost %{crate_instdir}/Cargo.toml - %package -n %{name}+uuid-devel Summary: %{summary} BuildArch: noarch @@ -311,18 +290,6 @@ use the "uuid" feature of the "%{crate}" crate. %files -n %{name}+uuid-devel %ghost %{crate_instdir}/Cargo.toml -%package -n %{name}+uuid_std-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+uuid_std-devel %{_description} - -This package contains library source intended for building other packages which -use the "uuid_std" feature of the "%{crate}" crate. - -%files -n %{name}+uuid_std-devel -%ghost %{crate_instdir}/Cargo.toml - %package -n %{name}+validation-devel Summary: %{summary} BuildArch: noarch diff --git a/sources b/sources index 59cb902..03e75e3 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (rkyv-0.7.41.crate) = ea1078b0cd055df5686ced2be9581f5c557a20e6a70a526d008b111978d855028e1e70f0c41b9241b8a53572d1d865d3146ea4c167576073d50495b210e31087 +SHA512 (rkyv-0.7.42.crate) = e14e7ed994057fd196ad9fc7624e8b22d7f23efe09232754af435e894db3a69f6de4c906ce4a3f75ae8138dd1f12d099680ef2f21bdb33856a39e4d535913fc1