# Generated by rust2rpm 28 %bcond check 1 %global debug_package %{nil} %global crate profiling-procmacros Name: rust-profiling-procmacros Version: 1.0.17 Release: %autorelease Summary: Very thin abstraction over other profiler crates License: MIT OR Apache-2.0 URL: https://crates.io/crates/profiling-procmacros Source: %{crates_source} # License files are not bundled in the crate; tracked upstream: # https://github.com/aclysma/profiling/issues/93 Source1: https://raw.githubusercontent.com/aclysma/profiling/master/LICENSE-MIT#/profiling-LICENSE-MIT Source2: https://raw.githubusercontent.com/aclysma/profiling/master/LICENSE-APACHE#/profiling-LICENSE-APACHE BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: This crate provides a very thin abstraction over other profiler crates.} %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 %{crate_instdir}/LICENSE-MIT %license %{crate_instdir}/LICENSE-APACHE %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 %package -n %{name}+profile-with-optick-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+profile-with-optick-devel %{_description} This package contains library source intended for building other packages which use the "profile-with-optick" feature of the "%{crate}" crate. %files -n %{name}+profile-with-optick-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+profile-with-puffin-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+profile-with-puffin-devel %{_description} This package contains library source intended for building other packages which use the "profile-with-puffin" feature of the "%{crate}" crate. %files -n %{name}+profile-with-puffin-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+profile-with-superluminal-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+profile-with-superluminal-devel %{_description} This package contains library source intended for building other packages which use the "profile-with-superluminal" feature of the "%{crate}" crate. %files -n %{name}+profile-with-superluminal-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+profile-with-tracing-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+profile-with-tracing-devel %{_description} This package contains library source intended for building other packages which use the "profile-with-tracing" feature of the "%{crate}" crate. %files -n %{name}+profile-with-tracing-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+profile-with-tracy-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+profile-with-tracy-devel %{_description} This package contains library source intended for building other packages which use the "profile-with-tracy" feature of the "%{crate}" crate. %files -n %{name}+profile-with-tracy-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 cp %{SOURCE1} LICENSE-MIT cp %{SOURCE2} LICENSE-APACHE %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install install -m 0644 LICENSE-MIT %{buildroot}/%{crate_instdir}/ install -m 0644 LICENSE-APACHE %{buildroot}/%{crate_instdir}/ %if %{with check} %check %cargo_test %endif %changelog %autochangelog