diff --git a/rust-exr.spec b/rust-exr.spec index 88b5254..76c5044 100644 --- a/rust-exr.spec +++ b/rust-exr.spec @@ -58,6 +58,15 @@ use the "default" feature of the "%{crate}" crate. find . -type f \( -name '*.md' -o -name '*.rs' \) -execdir dos2unix --keepdate '{}' '+' # Do not depend on bencher; it is needed only for benchmarks. tomcli set Cargo.toml del dev-dependencies.bencher +# Avoid a circular dependency on image. +tomcli set Cargo.toml del dev-dependencies.image +# These are the tests and examples that would have required the image crate. +rm tests/across_compression.rs +rm examples/6_extract_mip_map_pngs.rs +rm examples/1b_convert_exr_to_png.rs +rm examples/7_crop_alpha_rgba.rs +rm examples/7_crop_alpha_any_image.rs +rm examples/5b_extract_exr_layers_as_pngs.rs %generate_buildrequires %cargo_generate_buildrequires diff --git a/rust2rpm.toml b/rust2rpm.toml index 391b3ef..558d48b 100644 --- a/rust2rpm.toml +++ b/rust2rpm.toml @@ -10,6 +10,15 @@ prep.post = [ "find . -type f \\( -name '*.md' -o -name '*.rs' \\) -execdir dos2unix --keepdate '{}' '+'", "# Do not depend on bencher; it is needed only for benchmarks.", "tomcli set Cargo.toml del dev-dependencies.bencher", + "# Avoid a circular dependency on image.", + "tomcli set Cargo.toml del dev-dependencies.image", + "# These are the tests and examples that would have required the image crate.", + "rm tests/across_compression.rs", + "rm examples/6_extract_mip_map_pngs.rs", + "rm examples/1b_convert_exr_to_png.rs", + "rm examples/7_crop_alpha_rgba.rs", + "rm examples/7_crop_alpha_any_image.rs", + "rm examples/5b_extract_exr_layers_as_pngs.rs", ] [tests]