diff --git a/libflate_lz77-fix-metadata.diff b/libflate_lz77-fix-metadata.diff new file mode 100644 index 0000000..9ba8cc5 --- /dev/null +++ b/libflate_lz77-fix-metadata.diff @@ -0,0 +1,18 @@ +--- libflate_lz77-2.1.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ libflate_lz77-2.1.0/Cargo.toml 2024-05-01T17:54:23.366782+00:00 +@@ -33,15 +33,10 @@ + [dependencies.rle-decode-fast] + version = "1.0.0" + +-[dev-dependencies.libflate] +-version = "2.0" +-default-features = false +- + [features] + default = ["std"] + std = [ + "core2/std", +- "libflate/std", + ] + + [badges.coveralls] diff --git a/rust-libflate_lz77.spec b/rust-libflate_lz77.spec index 23b3a13..6bb3107 100644 --- a/rust-libflate_lz77.spec +++ b/rust-libflate_lz77.spec @@ -12,6 +12,9 @@ Summary: LZ77 encoder for libflate crate License: MIT URL: https://crates.io/crates/libflate_lz77 Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * drop libflate to break circular dependency +Patch: libflate_lz77-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 @@ -73,7 +76,8 @@ use the "std" feature of the "%{crate}" crate. %if %{with check} %check -%cargo_test +# * Skip doc tests as they require libflate +%cargo_test -- --lib %endif %changelog diff --git a/rust2rpm.toml b/rust2rpm.toml new file mode 100644 index 0000000..86bed5b --- /dev/null +++ b/rust2rpm.toml @@ -0,0 +1,3 @@ +[tests] +run = ["lib"] +comments = ["Skip doc tests as they require libflate"]