diff --git a/rust-syn.spec b/rust-syn.spec index d10892e..d4644ac 100644 --- a/rust-syn.spec +++ b/rust-syn.spec @@ -12,6 +12,9 @@ Summary: Nom parser for Rust source code License: MIT or ASL 2.0 URL: https://crates.io/crates/syn Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate +# Initial patched metadata +# * Bump walkdir to 2, https://github.com/dtolnay/syn/pull/371 +Patch0: syn-0.12.14-fix-metadata.diff ExclusiveArch: %{rust_arches} @@ -23,7 +26,7 @@ BuildRequires: (crate(unicode-xid) >= 0.1.0 with crate(unicode-xid) < 0.2.0) %if %{with check} # [dev-dependencies] BuildRequires: (crate(rayon) >= 1.0.0 with crate(rayon) < 2.0.0) -BuildRequires: (crate(walkdir) >= 1.0.1 with crate(walkdir) < 2.0.0) +BuildRequires: (crate(walkdir) >= 2.0.0 with crate(walkdir) < 3.0.0) %endif %description diff --git a/syn-0.12.14-fix-metadata.diff b/syn-0.12.14-fix-metadata.diff new file mode 100644 index 0000000..c711590 --- /dev/null +++ b/syn-0.12.14-fix-metadata.diff @@ -0,0 +1,11 @@ +--- syn-0.12.14/Cargo.toml 1970-01-01T01:00:00+01:00 ++++ syn-0.12.14/Cargo.toml 2018-03-09T14:43:09.449662+01:00 +@@ -40,7 +40,7 @@ + version = "1.0.0" + + [dev-dependencies.walkdir] +-version = "1.0.1" ++version = "2" + + [features] + clone-impls = []