# Generated by rust2rpm %bcond_without check %global debug_package %{nil} %global crate once_cell Name: rust-%{crate} Version: 0.1.8 Release: 1%{?dist} Summary: Single assignment cells and lazy static values without macros # Upstream license specification: MIT OR Apache-2.0 License: MIT or ASL 2.0 URL: https://crates.io/crates/once_cell Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate # Allow F29 builds Patch0: 0001-Loosen-parking_lot-dependency-constraints.patch Patch1: 0002-Exclude-unnecessary-files.patch ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging # [dependencies] BuildRequires: (crate(parking_lot) >= 0.6.4 with crate(parking_lot) < 0.8.0) %if %{with check} # [dev-dependencies] BuildRequires: (crate(crossbeam-utils/default) >= 0.6.0 with crate(crossbeam-utils/default) < 0.7.0) %endif %description %{summary}. %package devel Summary: %{summary} BuildArch: noarch %description devel Single assignment cells and lazy static values without macros. 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-APACHE LICENSE-MIT %doc README.md CHANGELOG.md %{cargo_registry}/%{crate}-%{version}/ %changelog * Thu Feb 07 2019 Jan Stanek - 0.1.8-1 - Initial package