You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rust-image/rust-image.spec

316 lines
9.2 KiB

# Generated by rust2rpm 26
%bcond_without check
%global debug_package %{nil}
%global crate image
Name: rust-image
Version: 0.25.5
Release: %autorelease
Summary: Imaging library
License: MIT OR Apache-2.0
URL: https://crates.io/crates/image
Source: %{crates_source}
# Manually created patch for downstream crate metadata changes
# * drop unused, benchmark-only criterion dev-dependency
Patch: image-fix-metadata.diff
BuildRequires: cargo-rpm-macros >= 24
%global _description %{expand:
Imaging library. Provides basic image processing and encoders/decoders
for common image formats.}
%description %{_description}
%package devel
Summary: %{summary}
BuildArch: noarch
%description devel %{_description}
This package contains library source intended for building other packages which
use the "%{crate}" crate.
%files devel
%license %{crate_instdir}/LICENSE-APACHE
%license %{crate_instdir}/LICENSE-MIT
%doc %{crate_instdir}/CHANGES.md
%doc %{crate_instdir}/README.md
%{crate_instdir}/
%package -n %{name}+default-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+default-devel %{_description}
This package contains library source intended for building other packages which
use the "default" feature of the "%{crate}" crate.
%files -n %{name}+default-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+avif-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+avif-devel %{_description}
This package contains library source intended for building other packages which
use the "avif" feature of the "%{crate}" crate.
%files -n %{name}+avif-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+bmp-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+bmp-devel %{_description}
This package contains library source intended for building other packages which
use the "bmp" feature of the "%{crate}" crate.
%files -n %{name}+bmp-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+color_quant-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+color_quant-devel %{_description}
This package contains library source intended for building other packages which
use the "color_quant" feature of the "%{crate}" crate.
%files -n %{name}+color_quant-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+dds-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+dds-devel %{_description}
This package contains library source intended for building other packages which
use the "dds" feature of the "%{crate}" crate.
%files -n %{name}+dds-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+default-formats-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+default-formats-devel %{_description}
This package contains library source intended for building other packages which
use the "default-formats" feature of the "%{crate}" crate.
%files -n %{name}+default-formats-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+exr-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+exr-devel %{_description}
This package contains library source intended for building other packages which
use the "exr" feature of the "%{crate}" crate.
%files -n %{name}+exr-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+ff-devel
5 years ago
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+ff-devel %{_description}
5 years ago
This package contains library source intended for building other packages which
use the "ff" feature of the "%{crate}" crate.
5 years ago
%files -n %{name}+ff-devel
%ghost %{crate_instdir}/Cargo.toml
5 years ago
%package -n %{name}+gif-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+gif-devel %{_description}
This package contains library source intended for building other packages which
use the "gif" feature of the "%{crate}" crate.
%files -n %{name}+gif-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+hdr-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+hdr-devel %{_description}
This package contains library source intended for building other packages which
use the "hdr" feature of the "%{crate}" crate.
%files -n %{name}+hdr-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+ico-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+ico-devel %{_description}
This package contains library source intended for building other packages which
use the "ico" feature of the "%{crate}" crate.
%files -n %{name}+ico-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+jpeg-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+jpeg-devel %{_description}
This package contains library source intended for building other packages which
use the "jpeg" feature of the "%{crate}" crate.
%files -n %{name}+jpeg-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+nasm-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+nasm-devel %{_description}
This package contains library source intended for building other packages which
use the "nasm" feature of the "%{crate}" crate.
%files -n %{name}+nasm-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+png-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+png-devel %{_description}
This package contains library source intended for building other packages which
use the "png" feature of the "%{crate}" crate.
%files -n %{name}+png-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+pnm-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+pnm-devel %{_description}
This package contains library source intended for building other packages which
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}+rayon-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+rayon-devel %{_description}
This package contains library source intended for building other packages which
use the "rayon" feature of the "%{crate}" crate.
%files -n %{name}+rayon-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+serde-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+serde-devel %{_description}
This package contains library source intended for building other packages which
use the "serde" feature of the "%{crate}" crate.
%files -n %{name}+serde-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+tga-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+tga-devel %{_description}
This package contains library source intended for building other packages which
use the "tga" feature of the "%{crate}" crate.
%files -n %{name}+tga-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+tiff-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+tiff-devel %{_description}
This package contains library source intended for building other packages which
use the "tiff" feature of the "%{crate}" crate.
%files -n %{name}+tiff-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+webp-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+webp-devel %{_description}
This package contains library source intended for building other packages which
use the "webp" feature of the "%{crate}" crate.
%files -n %{name}+webp-devel
%ghost %{crate_instdir}/Cargo.toml
%prep
%autosetup -n %{crate}-%{version} -p1
%cargo_prep
%generate_buildrequires
%cargo_generate_buildrequires
%build
%cargo_build
%install
%cargo_install
%if %{with check}
%check
# * skip tests that require files which are not included in published crates
%cargo_test -- -- --exact --skip codecs::bmp::decoder::test::read_rect --skip codecs::bmp::decoder::test::test_no_header --skip codecs::jpeg::decoder::tests::test_exif_orientation --skip codecs::openexr::test::compare_cropped --skip codecs::openexr::test::compare_exr_hdr --skip codecs::openexr::test::compare_rgba_rgb --skip codecs::png::tests::ensure_no_decoder_off_by_one --skip codecs::png::tests::underlying_error --skip codecs::qoi::tests::decode_test_image --skip codecs::tga::encoder::tests::compressed::round_trip_bw --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 imageops::tests::fast_blur_approximates_gaussian_blur_well
%endif
%changelog
%autochangelog