# Generated by rust2rpm 9 # * proptest-derive is not packaged %bcond_with check %global debug_package %{nil} %global crate sized-chunks Name: rust-%{crate} Version: 0.3.0 Release: 2%{?dist} Summary: Efficient sized chunk datatypes # Upstream license specification: MPL-2.0+ License: MPLv2.0 URL: https://crates.io/crates/sized-chunks Source: %{crates_source} ExclusiveArch: %{rust_arches} %if %{__cargo_skip_build} BuildArch: noarch %endif BuildRequires: rust-packaging %if ! %{__cargo_skip_build} 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 %endif %global _description %{expand: Efficient sized chunk datatypes.} %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 * Fri Jul 26 2019 Fedora Release Engineering - 0.3.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sun Jun 09 17:55:01 CEST 2019 Igor Gnatenko - 0.3.0-1 - Initial package