diff --git a/libdeflater-fix-metadata.diff b/libdeflater-fix-metadata.diff index ca3d7cd..6fe2aa8 100644 --- a/libdeflater-fix-metadata.diff +++ b/libdeflater-fix-metadata.diff @@ -1,6 +1,14 @@ --- libdeflater-1.19.0/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ libdeflater-1.19.0/Cargo.toml 2024-01-05T18:52:52.684801+00:00 -@@ -43,9 +43,6 @@ ++++ libdeflater-1.19.0/Cargo.toml 2024-01-06T20:33:14.597662+00:00 +@@ -32,6 +32,7 @@ + ] + license = "Apache-2.0" + repository = "https://github.com/adamkewley/libdeflater" ++exclude = ["/scripts"] + + [[bench]] + name = "benchmarks" +@@ -43,9 +44,6 @@ [dev-dependencies.adler32] version = "1.2.0" diff --git a/rust-libdeflater.spec b/rust-libdeflater.spec index 33e0ebe..b22d45f 100644 --- a/rust-libdeflater.spec +++ b/rust-libdeflater.spec @@ -14,6 +14,8 @@ URL: https://crates.io/crates/libdeflater Source: %{crates_source} # Manually created patch for downstream crate metadata changes # - Do not depend on criterion; it is needed only for benchmarks. +# - Exclude the scripts directory to avoid generating an unwanted and +# unnecessary dependency on ruby from the -devel subpackage Patch: libdeflater-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24