Enable qoi support now that rust-qoi is packaged in Fedora

epel9 imports/e9/rust-image-0.24.7-2.el9
Kalev Lember 2 years ago
parent ae6ce852e9
commit a01ef15add

@ -1,5 +1,5 @@
--- image-0.24.7/Cargo.toml 1970-01-01T00:00:01+00:00 --- 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 @@ @@ -122,9 +122,6 @@
[dev-dependencies.crc32fast] [dev-dependencies.crc32fast]
version = "1.2.0" version = "1.2.0"
@ -10,12 +10,11 @@
[dev-dependencies.glob] [dev-dependencies.glob]
version = "0.3" version = "0.3"
@@ -169,8 +166,6 @@ @@ -169,7 +166,6 @@
"dds", "dds",
"farbfeld", "farbfeld",
"jpeg_rayon", "jpeg_rayon",
- "openexr", - "openexr",
- "qoi", "qoi",
] ]
dxt = [] dxt = []
farbfeld = []

@ -15,7 +15,6 @@ Source: %{crates_source}
# Manually created patch for downstream crate metadata changes # Manually created patch for downstream crate metadata changes
# * drop unused, benchmark-only criterion dev-dependency to speed up builds # * drop unused, benchmark-only criterion dev-dependency to speed up builds
# * disable little-endian-only openexr feature # * disable little-endian-only openexr feature
# * disable qoi feature as we don't have rust-qoi packaged
Patch: image-fix-metadata.diff Patch: image-fix-metadata.diff
BuildRequires: rust-packaging >= 21 BuildRequires: rust-packaging >= 21
@ -185,6 +184,18 @@ use the "pnm" feature of the "%{crate}" crate.
%files -n %{name}+pnm-devel %files -n %{name}+pnm-devel
%ghost %{crate_instdir}/Cargo.toml %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 %package -n %{name}+tga-devel
Summary: %{summary} Summary: %{summary}
BuildArch: noarch BuildArch: noarch
@ -237,7 +248,7 @@ use the "webp" feature of the "%{crate}" crate.
%if %{with check} %if %{with check}
%check %check
# * skip tests with missing test files (not included in published crates) # * 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 %endif
%changelog %changelog

@ -13,4 +13,3 @@ unwanted-features =
openexr openexr
webp-encoder webp-encoder
exr exr
qoi

Loading…
Cancel
Save