From 0121f1aa749913eb63c6f54bdee8a857eda6a6b1 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Mon, 18 Mar 2024 17:02:51 +0100 Subject: [PATCH] Update to version 0.2.11; Fixes RHBZ#2269915 --- .gitignore | 1 + rust-unsafe-libyaml.spec | 12 ++++++------ rust2rpm.toml | 3 +++ sources | 2 +- unsafe-libyaml-fix-metadata.diff | 10 ---------- 5 files changed, 11 insertions(+), 17 deletions(-) delete mode 100644 unsafe-libyaml-fix-metadata.diff diff --git a/.gitignore b/.gitignore index 1ef9ddd..af52ac9 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ /unsafe-libyaml-0.2.8.crate /unsafe-libyaml-0.2.9.crate /unsafe-libyaml-0.2.10.crate +/unsafe-libyaml-0.2.11.crate diff --git a/rust-unsafe-libyaml.spec b/rust-unsafe-libyaml.spec index 5509874..b07a96c 100644 --- a/rust-unsafe-libyaml.spec +++ b/rust-unsafe-libyaml.spec @@ -1,23 +1,23 @@ -# Generated by rust2rpm 25 +# Generated by rust2rpm 26 # * tests can only be run in-tree %bcond_with check %global debug_package %{nil} +# prevent executables from being installed +%global cargo_install_bin 0 + %global crate unsafe-libyaml Name: rust-unsafe-libyaml -Version: 0.2.10 +Version: 0.2.11 Release: %autorelease Summary: Libyaml transpiled to rust by c2rust License: MIT URL: https://crates.io/crates/unsafe-libyaml Source: %{crates_source} -# Manually created patch for downstream crate metadata changes -# * skip building unused test binaries -Patch: unsafe-libyaml-fix-metadata.diff -BuildRequires: cargo-rpm-macros >= 24 +BuildRequires: cargo-rpm-macros >= 26 %global _description %{expand: Libyaml transpiled to rust by c2rust.} diff --git a/rust2rpm.toml b/rust2rpm.toml index 553347c..0d7a1c5 100644 --- a/rust2rpm.toml +++ b/rust2rpm.toml @@ -1,3 +1,6 @@ +[package] +cargo-install-bin = false + [tests] run = ["none"] comments = ["tests can only be run in-tree"] diff --git a/sources b/sources index f6bbbcb..50f2b44 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (unsafe-libyaml-0.2.10.crate) = 9989fd93105ae343ce3ed097fc66e62ad9fcb64b8ace4ac2f7bcd374782f9919082ba0bc0f246a9a7071c35172f08953560a8108553076a819d9d1d7dce9a5aa +SHA512 (unsafe-libyaml-0.2.11.crate) = a42c95eaed1ae2e438d3ba19ccd92337327c34f6174a43db80e1f37c507154249c7510e93f81726890c6032c89fe21b1876582afb7fbb811e3931480c4727712 diff --git a/unsafe-libyaml-fix-metadata.diff b/unsafe-libyaml-fix-metadata.diff deleted file mode 100644 index da67ff2..0000000 --- a/unsafe-libyaml-fix-metadata.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- unsafe-libyaml-0.2.10/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ unsafe-libyaml-0.2.10/Cargo.toml 2023-12-27T20:03:18.259236+00:00 -@@ -26,6 +26,7 @@ - ] - license = "MIT" - repository = "https://github.com/dtolnay/unsafe-libyaml" -+autobins = false - - [package.metadata.docs.rs] - rustdoc-args = ["--generate-link-to-definition"]