diff --git a/0001-port-from-pulldown-cmark-0.9-to-0.11.patch b/0001-port-from-pulldown-cmark-0.9-to-0.11.patch new file mode 100644 index 0000000..cb67b77 --- /dev/null +++ b/0001-port-from-pulldown-cmark-0.9-to-0.11.patch @@ -0,0 +1,33 @@ +From c3cd77fbb9e374e3133648048a6f0fa560296993 Mon Sep 17 00:00:00 2001 +From: Fabio Valentini +Date: Sat, 14 Sep 2024 17:21:08 +0200 +Subject: [PATCH] port from pulldown-cmark 0.9 to 0.11 + +--- + src/markdown_deps.rs | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/markdown_deps.rs b/src/markdown_deps.rs +index d39b0de..64d590a 100644 +--- a/src/markdown_deps.rs ++++ b/src/markdown_deps.rs +@@ -1,6 +1,6 @@ + #![cfg(feature = "markdown_deps_updated")] + use pulldown_cmark::CodeBlockKind::Fenced; +-use pulldown_cmark::{Event, Parser, Tag}; ++use pulldown_cmark::{Event, Parser, Tag, TagEnd}; + use semver::{Version, VersionReq}; + use toml::Value; + +@@ -78,7 +78,7 @@ fn find_toml_blocks(text: &str) -> Vec { + block.content.push_str(&code); + } + } +- Event::End(Tag::CodeBlock(_)) => { ++ Event::End(TagEnd::CodeBlock) => { + if let Some(block) = current_block.take() { + code_blocks.push(block); + } +-- +2.46.0 + diff --git a/rust-version-sync.spec b/rust-version-sync.spec index 82d126e..59c8e67 100644 --- a/rust-version-sync.spec +++ b/rust-version-sync.spec @@ -1,4 +1,4 @@ -# Generated by rust2rpm 25 +# Generated by rust2rpm 26 %bcond_without check %global debug_package %{nil} @@ -12,6 +12,13 @@ Summary: Simple crate for ensuring that version numbers in README files a License: MIT URL: https://crates.io/crates/version-sync Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * bump pulldown-cmark dependency from 0.9 to 0.11: +# https://github.com/mgeisler/version-sync/commit/cc74ef5 +# * bump toml dependency from 0.7.8 to 0.8: +# https://github.com/mgeisler/version-sync/commit/63ae792 +Patch: version-sync-fix-metadata.diff +Patch: 0001-port-from-pulldown-cmark-0.9-to-0.11.patch BuildRequires: cargo-rpm-macros >= 24 diff --git a/version-sync-fix-metadata.diff b/version-sync-fix-metadata.diff new file mode 100644 index 0000000..5b7900d --- /dev/null +++ b/version-sync-fix-metadata.diff @@ -0,0 +1,20 @@ +--- version-sync-0.9.5/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ version-sync-0.9.5/Cargo.toml 2024-09-14T15:17:25.471687+00:00 +@@ -32,7 +32,7 @@ + default-features = false + + [dependencies.pulldown-cmark] +-version = "0.9.1" ++version = "0.11" + optional = true + default-features = false + +@@ -60,7 +60,7 @@ + default-features = false + + [dependencies.toml] +-version = "0.7.8" ++version = "0.8" + optional = true + + [dependencies.url]