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.
274 lines
7.5 KiB
274 lines
7.5 KiB
# Generated by rust2rpm 16
|
|
%bcond_without check
|
|
%global debug_package %{nil}
|
|
|
|
%global crate image
|
|
|
|
Name: rust-%{crate}
|
|
Version: 0.23.14
|
|
Release: %autorelease
|
|
Summary: Imaging library written in Rust
|
|
|
|
# Upstream license specification: MIT
|
|
License: MIT
|
|
URL: https://crates.io/crates/image
|
|
Source: %{crates_source}
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
%if %{__cargo_skip_build}
|
|
BuildArch: noarch
|
|
%endif
|
|
|
|
BuildRequires: rust-packaging
|
|
|
|
%global _description %{expand:
|
|
Imaging library written in Rust. Provides basic filters and decoders for the
|
|
most 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 "%{crate}" crate.
|
|
|
|
%files devel
|
|
%license LICENSE
|
|
%doc README.md CHANGES.md
|
|
%{cargo_registry}/%{crate}-%{version_no_tilde}/
|
|
|
|
%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 "default" feature of "%{crate}" crate.
|
|
|
|
%files -n %{name}+default-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%package -n %{name}+benchmarks-devel
|
|
Summary: %{summary}
|
|
BuildArch: noarch
|
|
|
|
%description -n %{name}+benchmarks-devel %{_description}
|
|
|
|
This package contains library source intended for building other packages
|
|
which use "benchmarks" feature of "%{crate}" crate.
|
|
|
|
%files -n %{name}+benchmarks-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 "bmp" feature of "%{crate}" crate.
|
|
|
|
%files -n %{name}+bmp-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 "dds" feature of "%{crate}" crate.
|
|
|
|
%files -n %{name}+dds-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%package -n %{name}+dxt-devel
|
|
Summary: %{summary}
|
|
BuildArch: noarch
|
|
|
|
%description -n %{name}+dxt-devel %{_description}
|
|
|
|
This package contains library source intended for building other packages
|
|
which use "dxt" feature of "%{crate}" crate.
|
|
|
|
%files -n %{name}+dxt-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%package -n %{name}+farbfeld-devel
|
|
Summary: %{summary}
|
|
BuildArch: noarch
|
|
|
|
%description -n %{name}+farbfeld-devel %{_description}
|
|
|
|
This package contains library source intended for building other packages
|
|
which use "farbfeld" feature of "%{crate}" crate.
|
|
|
|
%files -n %{name}+farbfeld-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%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 "gif" feature of "%{crate}" crate.
|
|
|
|
%files -n %{name}+gif-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 "hdr" feature of "%{crate}" crate.
|
|
|
|
%files -n %{name}+hdr-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 "ico" feature of "%{crate}" crate.
|
|
|
|
%files -n %{name}+ico-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 "jpeg" feature of "%{crate}" crate.
|
|
|
|
%files -n %{name}+jpeg-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%package -n %{name}+jpeg_rayon-devel
|
|
Summary: %{summary}
|
|
BuildArch: noarch
|
|
|
|
%description -n %{name}+jpeg_rayon-devel %{_description}
|
|
|
|
This package contains library source intended for building other packages
|
|
which use "jpeg_rayon" feature of "%{crate}" crate.
|
|
|
|
%files -n %{name}+jpeg_rayon-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 "png" feature of "%{crate}" crate.
|
|
|
|
%files -n %{name}+png-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 "pnm" feature of "%{crate}" crate.
|
|
|
|
%files -n %{name}+pnm-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%package -n %{name}+scoped_threadpool-devel
|
|
Summary: %{summary}
|
|
BuildArch: noarch
|
|
|
|
%description -n %{name}+scoped_threadpool-devel %{_description}
|
|
|
|
This package contains library source intended for building other packages
|
|
which use "scoped_threadpool" feature of "%{crate}" crate.
|
|
|
|
%files -n %{name}+scoped_threadpool-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 "tga" feature of "%{crate}" crate.
|
|
|
|
%files -n %{name}+tga-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 "tiff" feature of "%{crate}" crate.
|
|
|
|
%files -n %{name}+tiff-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 "webp" feature of "%{crate}" crate.
|
|
|
|
%files -n %{name}+webp-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%prep
|
|
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
|
%cargo_prep
|
|
|
|
%generate_buildrequires
|
|
%cargo_generate_buildrequires
|
|
|
|
%build
|
|
%cargo_build
|
|
|
|
%install
|
|
%cargo_install
|
|
|
|
%if %{with check}
|
|
%check
|
|
# Missing test files
|
|
%cargo_test -- -- \
|
|
--skip dynimage::test::image_dimensions \
|
|
--skip dynimage::test::open_16bpc_png \
|
|
--skip imageops::sample::tests::resize_transparent_image \
|
|
--skip png::tests::ensure_no_decoder_off_by_one \
|
|
--skip png::tests::underlying_error
|
|
%endif
|
|
|
|
%changelog
|
|
%autochangelog
|