From 6c4cb6a8a2ae4f2fa9475f26c5111a669868b6d4 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Wed, 27 Dec 2023 21:06:19 +0100 Subject: [PATCH] Update to version 0.2.10; Fixes RHBZ#2254629 --- .gitignore | 1 + rust-unsafe-libyaml.spec | 8 ++++---- rust2rpm.toml | 4 ++++ sources | 2 +- unsafe-libyaml-fix-metadata.diff | 4 ++-- 5 files changed, 12 insertions(+), 7 deletions(-) create mode 100644 rust2rpm.toml diff --git a/.gitignore b/.gitignore index 8bfb57b..1ef9ddd 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ /unsafe-libyaml-0.2.7.crate /unsafe-libyaml-0.2.8.crate /unsafe-libyaml-0.2.9.crate +/unsafe-libyaml-0.2.10.crate diff --git a/rust-unsafe-libyaml.spec b/rust-unsafe-libyaml.spec index 26b65ae..5509874 100644 --- a/rust-unsafe-libyaml.spec +++ b/rust-unsafe-libyaml.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 unsafe-libyaml Name: rust-unsafe-libyaml -Version: 0.2.9 +Version: 0.2.10 Release: %autorelease Summary: Libyaml transpiled to rust by c2rust @@ -17,7 +17,7 @@ Source: %{crates_source} # * skip building unused test binaries Patch: unsafe-libyaml-fix-metadata.diff -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Libyaml transpiled to rust by c2rust.} @@ -51,7 +51,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 9da2a39..f6bbbcb 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (unsafe-libyaml-0.2.9.crate) = 31e803c321475364c6df65cec149a044bf7941379e9e66f47a698ab324eef0b1a3c32092ccf060e73a350b4c87e4e8bd908a1ad0cccf7b75fd86da679300663e +SHA512 (unsafe-libyaml-0.2.10.crate) = 9989fd93105ae343ce3ed097fc66e62ad9fcb64b8ace4ac2f7bcd374782f9919082ba0bc0f246a9a7071c35172f08953560a8108553076a819d9d1d7dce9a5aa diff --git a/unsafe-libyaml-fix-metadata.diff b/unsafe-libyaml-fix-metadata.diff index 2e8f936..da67ff2 100644 --- a/unsafe-libyaml-fix-metadata.diff +++ b/unsafe-libyaml-fix-metadata.diff @@ -1,5 +1,5 @@ ---- unsafe-libyaml-0.2.9/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ unsafe-libyaml-0.2.9/Cargo.toml 2023-07-29T15:28:36.795538+00:00 +--- 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"