# Generated by rust2rpm 25 %bcond_without check %global debug_package %{nil} %global crate divan-macros Name: rust-divan-macros Version: 0.1.3 Release: %autorelease Summary: Macros for Divan, a statistically-comfy benchmarking library License: MIT OR Apache-2.0 URL: https://crates.io/crates/divan-macros Source0: %{crates_source} # From upstream Source1: https://raw.githubusercontent.com/nvzqz/divan/v%{version}/LICENSE-APACHE#/%{name}-LICENSE-APACHE Source2: https://raw.githubusercontent.com/nvzqz/divan/v%{version}/LICENSE-MIT#/%{name}-LICENSE-MIT BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Macros for Divan, a statistically-comfy benchmarking library.} %description %{_description} %package devel Summary: %{summary} BuildArch: noarch %description devel %{_description} This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel %license LICENSE-APACHE LICENSE-MIT %doc %{crate_instdir}/README.md %{crate_instdir}/ %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 the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep cp %{S:1} LICENSE-APACHE cp %{S:2} LICENSE-MIT %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog