From 4d1c352d90c2bb4a354db81898ea0de1f035ce21 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Thu, 2 Nov 2023 17:29:57 +0100 Subject: [PATCH] Bump sha1collisiondetection dependency from 0.2 to 0.3 --- openpgp-cert-d-fix-metadata.diff | 11 +++++++++++ rust-openpgp-cert-d.spec | 10 +++++++--- 2 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 openpgp-cert-d-fix-metadata.diff diff --git a/openpgp-cert-d-fix-metadata.diff b/openpgp-cert-d-fix-metadata.diff new file mode 100644 index 0000000..40765a3 --- /dev/null +++ b/openpgp-cert-d-fix-metadata.diff @@ -0,0 +1,11 @@ +--- openpgp-cert-d-0.1.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ openpgp-cert-d-0.1.0/Cargo.toml 2023-11-02T15:56:32.788405+00:00 +@@ -35,7 +35,7 @@ + default-features = false + + [dependencies.sha1collisiondetection] +-version = "0.2" ++version = "0.3" + default-features = false + + [dependencies.tempfile] diff --git a/rust-openpgp-cert-d.spec b/rust-openpgp-cert-d.spec index e82ea50..5c77f4a 100644 --- a/rust-openpgp-cert-d.spec +++ b/rust-openpgp-cert-d.spec @@ -1,4 +1,4 @@ -# Generated by rust2rpm 24 +# Generated by rust2rpm 25 # * files required for compiling tests are not included in published crates %bcond_with check %global debug_package %{nil} @@ -13,8 +13,12 @@ Summary: Shared OpenPGP Certificate Directory License: MIT URL: https://crates.io/crates/openpgp-cert-d Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * bump sha1collisiondetection dependency from 0.2 to 0.3: +# https://gitlab.com/sequoia-pgp/pgp-cert-d/-/merge_requests/58 +Patch: openpgp-cert-d-fix-metadata.diff -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Shared OpenPGP Certificate Directory.} @@ -48,7 +52,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