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.
279 lines
8.4 KiB
279 lines
8.4 KiB
6 years ago
|
# Generated by rust2rpm
|
||
|
%bcond_with check
|
||
|
%global debug_package %{nil}
|
||
|
|
||
|
%global crate image
|
||
|
|
||
|
Name: rust-%{crate}
|
||
|
Version: 0.21.0
|
||
|
Release: 1%{?dist}
|
||
|
Summary: Imaging library written in Rust
|
||
|
|
||
|
License: MIT
|
||
|
URL: https://crates.io/crates/image
|
||
|
Source: %{crates_source}
|
||
|
|
||
|
ExclusiveArch: %{rust_arches}
|
||
|
|
||
|
BuildRequires: rust-packaging
|
||
|
BuildRequires: (crate(byteorder/default) >= 1.2.1 with crate(byteorder/default) < 2.0.0)
|
||
|
BuildRequires: (crate(gif/default) >= 0.10.0 with crate(gif/default) < 0.11.0)
|
||
|
BuildRequires: (crate(jpeg-decoder) >= 0.1.0 with crate(jpeg-decoder) < 0.2.0)
|
||
|
BuildRequires: (crate(jpeg-decoder/rayon) >= 0.1.0 with crate(jpeg-decoder/rayon) < 0.2.0)
|
||
|
BuildRequires: (crate(lzw/default) >= 0.10.0 with crate(lzw/default) < 0.11.0)
|
||
|
BuildRequires: (crate(num-iter/default) >= 0.1.32 with crate(num-iter/default) < 0.2.0)
|
||
|
BuildRequires: (crate(num-rational) >= 0.2.1 with crate(num-rational) < 0.3.0)
|
||
|
BuildRequires: (crate(num-traits/default) >= 0.2.0 with crate(num-traits/default) < 0.3.0)
|
||
|
BuildRequires: (crate(png/default) >= 0.14.0 with crate(png/default) < 0.15.0)
|
||
|
BuildRequires: (crate(safe-transmute/default) >= 0.10.1 with crate(safe-transmute/default) < 0.11.0)
|
||
|
BuildRequires: (crate(scoped_threadpool/default) >= 0.1.0 with crate(scoped_threadpool/default) < 0.2.0)
|
||
|
BuildRequires: (crate(tiff/default) >= 0.2.0 with crate(tiff/default) < 0.3.0)
|
||
|
%if %{with check}
|
||
|
BuildRequires: (crate(glob/default) >= 0.2.10 with crate(glob/default) < 0.3.0)
|
||
|
BuildRequires: (crate(num-complex/default) >= 0.2.0 with crate(num-complex/default) < 0.3.0)
|
||
|
BuildRequires: (crate(quickcheck/default) >= 0.6.2 with crate(quickcheck/default) < 0.7.0)
|
||
|
%endif
|
||
|
|
||
|
%global _description \
|
||
|
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}/
|
||
|
|
||
|
%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}/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}/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}/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}/Cargo.toml
|
||
|
|
||
|
%package -n %{name}+gif_codec-devel
|
||
|
Summary: %{summary}
|
||
|
BuildArch: noarch
|
||
|
|
||
|
%description -n %{name}+gif_codec-devel %{_description}
|
||
|
|
||
|
This package contains library source intended for building other packages
|
||
|
which use "gif_codec" feature of "%{crate}" crate.
|
||
|
|
||
|
%files -n %{name}+gif_codec-devel
|
||
|
%ghost %{cargo_registry}/%{crate}-%{version}/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}/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}/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}/Cargo.toml
|
||
|
|
||
|
%package -n %{name}+jpeg-decoder-devel
|
||
|
Summary: %{summary}
|
||
|
BuildArch: noarch
|
||
|
|
||
|
%description -n %{name}+jpeg-decoder-devel %{_description}
|
||
|
|
||
|
This package contains library source intended for building other packages
|
||
|
which use "jpeg-decoder" feature of "%{crate}" crate.
|
||
|
|
||
|
%files -n %{name}+jpeg-decoder-devel
|
||
|
%ghost %{cargo_registry}/%{crate}-%{version}/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}/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}/Cargo.toml
|
||
|
|
||
|
%package -n %{name}+png_codec-devel
|
||
|
Summary: %{summary}
|
||
|
BuildArch: noarch
|
||
|
|
||
|
%description -n %{name}+png_codec-devel %{_description}
|
||
|
|
||
|
This package contains library source intended for building other packages
|
||
|
which use "png_codec" feature of "%{crate}" crate.
|
||
|
|
||
|
%files -n %{name}+png_codec-devel
|
||
|
%ghost %{cargo_registry}/%{crate}-%{version}/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}/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}/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}/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}/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}/Cargo.toml
|
||
|
|
||
|
%prep
|
||
|
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
||
|
%cargo_prep
|
||
|
|
||
|
%build
|
||
|
%cargo_build
|
||
|
|
||
|
%install
|
||
|
%cargo_install
|
||
|
|
||
|
%if %{with check}
|
||
|
%check
|
||
|
%cargo_test
|
||
|
%endif
|
||
|
|
||
|
%changelog
|
||
|
* Fri Mar 15 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.21.0-1
|
||
|
- Initial package
|