diff --git a/image-fix-metadata.diff b/image-fix-metadata.diff index 80c2967..e1faf86 100644 --- a/image-fix-metadata.diff +++ b/image-fix-metadata.diff @@ -1,5 +1,5 @@ --- image-0.24.7/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ image-0.24.7/Cargo.toml 2023-08-12T10:26:21.869073+00:00 ++++ image-0.24.7/Cargo.toml 2023-08-23T11:36:37.984256+00:00 @@ -122,9 +122,6 @@ [dev-dependencies.crc32fast] version = "1.2.0" @@ -10,12 +10,11 @@ [dev-dependencies.glob] version = "0.3" -@@ -169,8 +166,6 @@ +@@ -169,7 +166,6 @@ "dds", "farbfeld", "jpeg_rayon", - "openexr", -- "qoi", + "qoi", ] dxt = [] - farbfeld = [] diff --git a/rust-image.spec b/rust-image.spec index 49b3b87..2af620d 100644 --- a/rust-image.spec +++ b/rust-image.spec @@ -15,7 +15,6 @@ Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * drop unused, benchmark-only criterion dev-dependency to speed up builds # * disable little-endian-only openexr feature -# * disable qoi feature as we don't have rust-qoi packaged Patch: image-fix-metadata.diff BuildRequires: rust-packaging >= 21 @@ -185,6 +184,18 @@ use the "pnm" feature of the "%{crate}" crate. %files -n %{name}+pnm-devel %ghost %{crate_instdir}/Cargo.toml +%package -n %{name}+qoi-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+qoi-devel %{_description} + +This package contains library source intended for building other packages which +use the "qoi" feature of the "%{crate}" crate. + +%files -n %{name}+qoi-devel +%ghost %{crate_instdir}/Cargo.toml + %package -n %{name}+tga-devel Summary: %{summary} BuildArch: noarch @@ -237,7 +248,7 @@ use the "webp" feature of the "%{crate}" crate. %if %{with check} %check # * skip tests with missing test files (not included in published crates) -%cargo_test -- -- --skip codecs::bmp::decoder::test::read_rect --skip codecs::png::tests::ensure_no_decoder_off_by_one --skip codecs::png::tests::underlying_error --skip dynimage::test::image_dimensions --skip dynimage::test::open_16bpc_png --skip imageops::sample::tests::resize_transparent_image --skip imageops::sample::tests::test_resize_same_size --skip imageops::sample::tests::test_sample_bilinear --skip imageops::sample::tests::test_sample_nearest --skip codecs::bmp::decoder::test::test_no_header +%cargo_test -- -- --skip codecs::bmp::decoder::test::read_rect --skip codecs::png::tests::ensure_no_decoder_off_by_one --skip codecs::png::tests::underlying_error --skip codecs::qoi::tests::decode_test_image --skip dynimage::test::image_dimensions --skip dynimage::test::open_16bpc_png --skip imageops::sample::tests::resize_transparent_image --skip imageops::sample::tests::test_resize_same_size --skip imageops::sample::tests::test_sample_bilinear --skip imageops::sample::tests::test_sample_nearest --skip codecs::bmp::decoder::test::test_no_header %endif %changelog diff --git a/rust2rpm.conf b/rust2rpm.conf index 5512d3b..3e79f64 100644 --- a/rust2rpm.conf +++ b/rust2rpm.conf @@ -13,4 +13,3 @@ unwanted-features = openexr webp-encoder exr - qoi