diff --git a/rust-syntect.spec b/rust-syntect.spec index b97c870..1842a7b 100644 --- a/rust-syntect.spec +++ b/rust-syntect.spec @@ -14,6 +14,9 @@ Summary: Library for high quality syntax highlighting and code intelligen License: MIT URL: https://crates.io/crates/syntect Source: %{crates_source} +# Initial patched metadata +# * Update fancy-regex to 0.7, https://github.com/trishume/syntect/issues/343 +Patch0: syntect-fix-metadata.diff ExclusiveArch: %{rust_arches} %if %{__cargo_skip_build} diff --git a/syntect-fix-metadata.diff b/syntect-fix-metadata.diff new file mode 100644 index 0000000..de3f30d --- /dev/null +++ b/syntect-fix-metadata.diff @@ -0,0 +1,11 @@ +--- syntect-4.5.0/Cargo.toml 2020-12-09T23:32:03+00:00 ++++ syntect-4.5.0/Cargo.toml 2021-07-24T10:03:30.496025+00:00 +@@ -46,7 +46,7 @@ + version = "1.0.4" + + [dependencies.fancy-regex] +-version = "0.3.2" ++version = "0.7" + optional = true + + [dependencies.flate2]