# Generated by rust2rpm %bcond_without check %global debug_package %{nil} %global crate dtoa-short Name: rust-%{crate} Version: 0.3.1 Release: 1%{?dist} Summary: Serialize float number and truncate to certain precision # https://github.com/upsuper/dtoa-short/pull/3 License: MPLv2.0 URL: https://crates.io/crates/dtoa-short Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging # [dependencies] BuildRequires: (crate(dtoa) >= 0.4.1 with crate(dtoa) < 0.5.0) %if %{with check} # [dev-dependencies] BuildRequires: (crate(float-cmp) >= 0.2.3 with crate(float-cmp) < 0.3.0) %endif %description %{summary}. %package devel Summary: %{summary} BuildArch: noarch %description devel Serialize float number and truncate to certain precision. 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 %{cargo_registry}/%{crate}-%{version}/ %changelog * Wed Jan 24 2018 Igor Gnatenko - 0.3.1-1 - Initial package