diff --git a/rust-zopfli.spec b/rust-zopfli.spec index 329e289..15d4730 100644 --- a/rust-zopfli.spec +++ b/rust-zopfli.spec @@ -15,6 +15,9 @@ Summary: Rust implementation of the Zopfli compression algorithm License: Apache-2.0 URL: https://crates.io/crates/zopfli Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * Allow proptest-derive 0.5.0 +Patch: zopfli-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 26 diff --git a/rust2rpm.toml b/rust2rpm.toml index 40f6dd4..3ca0ceb 100644 --- a/rust2rpm.toml +++ b/rust2rpm.toml @@ -2,6 +2,9 @@ # Don’t build the “zopfli” executable, which would conflict with the more # widely used one provided by https://src.fedoraproject.org/rpms/zopfli. cargo-install-bin = false +cargo-toml-patch-comments = [ + "Allow proptest-derive 0.5.0", +] [features] hide = [ diff --git a/zopfli-fix-metadata.diff b/zopfli-fix-metadata.diff new file mode 100644 index 0000000..560b5fc --- /dev/null +++ b/zopfli-fix-metadata.diff @@ -0,0 +1,11 @@ +--- zopfli-0.8.1/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ zopfli-0.8.1/Cargo.toml 2024-09-15T00:47:34.832733+00:00 +@@ -89,7 +89,7 @@ + version = "1.4.0" + + [dev-dependencies.proptest-derive] +-version = "0.4.0" ++version = ">=0.4.0, <0.6.0" + + [features] + default = [