# Generated by rust2rpm # rustc-hash is not packaged %bcond_with check %global debug_package %{nil} %global crate hashbrown Name: rust-%{crate} Version: 0.1.8 Release: 1%{?dist} Summary: Rust port of Google's SwissTable hash map # Upstream license specification: Apache-2.0/MIT License: ASL 2.0 or MIT URL: https://crates.io/crates/hashbrown Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging BuildRequires: (crate(byteorder) >= 1.0.0 with crate(byteorder) < 2.0.0) BuildRequires: (crate(rayon/default) >= 1.0.0 with crate(rayon/default) < 2.0.0) BuildRequires: (crate(scopeguard) >= 0.3.0 with crate(scopeguard) < 0.4.0) BuildRequires: (crate(serde) >= 1.0.0 with crate(serde) < 2.0.0) %if %{with check} BuildRequires: (crate(lazy_static/default) >= 1.2.0 with crate(lazy_static/default) < 1.3.0) BuildRequires: (crate(rand/default) >= 0.5.1 with crate(rand/default) < 0.6.0) BuildRequires: (crate(rayon/default) >= 1.0.0 with crate(rayon/default) < 2.0.0) BuildRequires: (crate(rustc-hash/default) >= 1.0.0 with crate(rustc-hash/default) < 2.0.0) BuildRequires: (crate(serde_test/default) >= 1.0.0 with crate(serde_test/default) < 2.0.0) %endif %global _description \ A Rust port of Google's SwissTable hash map. %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-APACHE LICENSE-MIT %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 %package -n %{name}+rayon-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+rayon-devel %{_description} This package contains library source intended for building other packages which use "rayon" feature of "%{crate}" crate. %files -n %{name}+rayon-devel %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %package -n %{name}+serde-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+serde-devel %{_description} This package contains library source intended for building other packages which use "serde" feature of "%{crate}" crate. %files -n %{name}+serde-devel %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog * Mon Jan 14 2019 Josh Stone - 0.1.8-1 - Initial package