From 96d22bfee7e21b3e64c76f142ef270b4d16d37d0 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Tue, 18 Jun 2024 15:07:32 +0200 Subject: [PATCH] Update to version 4.0.10; Fixes RHBZ#2255134 --- .gitignore | 1 + rust-wmidi.spec | 10 +++++----- rust2rpm.toml | 5 +++++ sources | 2 +- wmidi-fix-metadata.diff | 17 +++++++++++------ 5 files changed, 23 insertions(+), 12 deletions(-) create mode 100644 rust2rpm.toml diff --git a/.gitignore b/.gitignore index 76339f7..cd37c0f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /wmidi-4.0.6.crate /wmidi-4.0.8.crate +/wmidi-4.0.10.crate diff --git a/rust-wmidi.spec b/rust-wmidi.spec index 3588df6..5bfaa7d 100644 --- a/rust-wmidi.spec +++ b/rust-wmidi.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 24 +# Generated by rust2rpm 26 %bcond_without check %global debug_package %{nil} %global crate wmidi Name: rust-wmidi -Version: 4.0.8 +Version: 4.0.10 Release: %autorelease Summary: Midi parsing library @@ -13,10 +13,10 @@ License: MIT URL: https://crates.io/crates/wmidi Source: %{crates_source} # Manually created patch for downstream crate metadata changes -# * drop unused, benchmark-only criterion dev-dependency to speed up builds +# * drop unused, benchmark-only criterion dev-dependency Patch: wmidi-fix-metadata.diff -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Midi parsing library.} @@ -62,7 +62,7 @@ use the "std" 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..2cd7101 --- /dev/null +++ b/rust2rpm.toml @@ -0,0 +1,5 @@ +[package] +cargo-toml-patch-comments = [ + "drop unused, benchmark-only criterion dev-dependency", +] + diff --git a/sources b/sources index 5efc2af..d3020ef 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (wmidi-4.0.8.crate) = fe78c35c584df63de7fe0742fa823ff5b006f4113a3366a94902092912f7e91a12473133ba3af7ca6017d27361daefcce850e1a5fcbb2c2a43e3979c585cfa46 +SHA512 (wmidi-4.0.10.crate) = b3ce5715dc319e3224df3edbd5649b6aaee26d01e0bbc099f304f1573cc344765d6372ee193056a77924ed771401daa6f22c720b82369b92f7e05024cf24b1e7 diff --git a/wmidi-fix-metadata.diff b/wmidi-fix-metadata.diff index 435ba40..6639a50 100644 --- a/wmidi-fix-metadata.diff +++ b/wmidi-fix-metadata.diff @@ -1,12 +1,17 @@ ---- wmidi-4.0.8/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ wmidi-4.0.8/Cargo.toml 2023-08-30T13:29:10.154544+00:00 -@@ -35,9 +35,6 @@ +--- wmidi-4.0.10/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ wmidi-4.0.10/Cargo.toml 2024-06-18T13:02:36.236028+00:00 +@@ -29,14 +29,7 @@ + [lib] + bench = false +-[[bench]] +-name = "bench" +-harness = false +- [dependencies] - +- -[dev-dependencies.criterion] -version = "0.3" -- + [features] default = ["std"] - std = []