# Generated by rust2rpm-9-1.fc30 # proptest-derive isn't packaged yet %bcond_with check %global debug_package %{nil} %global crate sized-chunks Name: rust-%{crate} Version: 0.3.0 Release: 1%{?dist} Summary: Efficient sized chunk datatypes # Upstream license specification: MPL-2.0+ License: MPL-2.0+ URL: https://crates.io/crates/sized-chunks Source: %{crates_source} ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging BuildRequires: (crate(typenum/default) >= 1.10.0 with crate(typenum/default) < 2.0.0) %if %{with check} BuildRequires: (crate(proptest-derive/default) >= 0.1.0 with crate(proptest-derive/default) < 0.2.0) BuildRequires: (crate(proptest/default) >= 0.9.1 with crate(proptest/default) < 0.10.0) %endif %global _description %{expand: This crate provides the core building blocks for the immutable data structures in immutable.rs: a sized array with O(1) amortised double ended push/pop and smarter insert/remove performance (used by im::Vector and im::OrdMap), and a fixed size sparse array (used by im::HashMap).} %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 LICENCE.md %doc README.md CHANGELOG.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 %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog * Thu Jun 06 18:25:29 PDT 2019 Josh Stone - 0.3.0-1 - Initial package