diff --git a/oxipng-fix-metadata.diff b/oxipng-fix-metadata.diff new file mode 100644 index 0000000..078d449 --- /dev/null +++ b/oxipng-fix-metadata.diff @@ -0,0 +1,20 @@ +--- oxipng-5.0.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ oxipng-5.0.0/Cargo.toml 2021-07-12T05:29:27.914572+00:00 +@@ -51,7 +51,7 @@ + optional = true + + [dependencies.crc] +-version = "^2.0.0" ++version = "^1.9.0" + + [dependencies.crossbeam-channel] + version = "0.5.0" +@@ -100,7 +100,7 @@ + version = "^0.4.0" + optional = true + [build-dependencies.rustc_version] +-version = "0.4" ++version = "0.3" + + [features] + binary = ["clap", "wild", "stderrlog"] diff --git a/rust-oxipng.spec b/rust-oxipng.spec index 917c6f1..dd6c532 100644 --- a/rust-oxipng.spec +++ b/rust-oxipng.spec @@ -12,6 +12,10 @@ Summary: Lossless PNG compression optimizer License: MIT URL: https://crates.io/crates/oxipng Source: %{crates_source} +# Initial patched metadata +# * Downgrade crc to version 1.9.0 +# * Downgrade rustc_version to version 0.3 +Patch0: oxipng-fix-metadata.diff ExclusiveArch: %{rust_arches} %if %{__cargo_skip_build}