# Generated by rust2rpm %bcond_without check %global debug_package %{nil} %global crate delta_e Name: rust-%{crate} Version: 0.2.0 Release: 1%{?dist} Summary: Pure-Rust implementation of the CIEDE2000 algorithm License: MIT URL: https://crates.io/crates/delta_e Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate # Initial patched metadata # * Bump lab to 0.6, https://github.com/elliotekj/DeltaE/pull/1 Patch0: delta_e-fix-metadata.diff ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging # [dependencies] BuildRequires: (crate(lab) >= 0.6.0 with crate(lab) < 0.7.0) %description %{summary}. %package devel Summary: %{summary} BuildArch: noarch %description devel DeltaE is a pure-Rust implementation of the CIEDE2000 algorithm. This package contains library source intended for building other packages which use %{crate} from crates.io. %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %files devel %license LICENSE %doc README.md CHANGELOG.md %{cargo_registry}/%{crate}-%{version}/ %changelog * Thu Oct 04 2018 Igor Gnatenko - 0.2.0-1 - Initial package