# Generated by rust2rpm %bcond_without check %global debug_package %{nil} %global crate alga Name: rust-%{crate} Version: 0.7.1 Release: 1%{?dist} Summary: Abstract algebra for Rust # Upstream license specification: Apache-2.0 License: ASL 2.0 URL: https://crates.io/crates/alga Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate # Initial patched metadata # * Bump quickcheck to 0.7, https://github.com/sebcrozet/alga/pull/46 Patch0: alga-fix-metadata.diff ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging # [dependencies] BuildRequires: (crate(approx) >= 0.3.0 with crate(approx) < 0.4.0) BuildRequires: (crate(decimal) >= 2.0.0 with crate(decimal) < 3.0.0) BuildRequires: (crate(libm) >= 0.1.0 with crate(libm) < 0.2.0) BuildRequires: (crate(num-complex) >= 0.2.0 with crate(num-complex) < 0.3.0) BuildRequires: (crate(num-traits) >= 0.2.0 with crate(num-traits) < 0.3.0) %if %{with check} # [dev-dependencies] BuildRequires: (crate(alga_derive) >= 0.7.0 with crate(alga_derive) < 0.8.0) BuildRequires: (crate(quickcheck) >= 0.7.0 with crate(quickcheck) < 0.8.0) %endif %description %{summary}. %package devel Summary: %{summary} BuildArch: noarch %description devel Abstract algebra for Rust. 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 %{cargo_registry}/%{crate}-%{version}/ %changelog * Tue Sep 11 2018 Igor Gnatenko - 0.7.1-1 - Initial package