# Generated by rust2rpm-9-1.fc31 %bcond_with check %global debug_package %{nil} %global crate once_cell Name: rust-%{crate} Version: 0.1.8 Release: 3%{?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 Source: %{crates_source} # Initial patched metadata # * Exclude unnecessary files, https://github.com/matklad/once_cell/pull/12 # * Update parking_lot to 0.8, https://github.com/matklad/once_cell/pull/11 Patch0: once_cell-fix-metadata.diff # Make it work with new parking_lot Patch0001: 0001-chore-Update-parking_lot-to-0.8.patch ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging BuildRequires: (crate(parking_lot) >= 0.8.0 with crate(parking_lot) < 0.9.0) %if %{with check} BuildRequires: (crate(crossbeam-utils/default) >= 0.6.0 with crate(crossbeam-utils/default) < 0.7.0) %endif %global _description \ Single assignment cells and lazy static values without macros. %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}+parking_lot-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+parking_lot-devel %{_description} This package contains library source intended for building other packages which use "parking_lot" feature of "%{crate}" crate. %files -n %{name}+parking_lot-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 * Tue May 07 07:37:55 CEST 2019 Igor Gnatenko - 0.1.8-3 - Update parking_lot to 0.8 * Tue Feb 12 2019 Igor Gnatenko - 0.1.8-2 - Adapt to new packaging * Thu Feb 07 2019 Jan Stanek - 0.1.8-1 - Initial package