# Generated by rust2rpm 28 # check disabled: dev-deps bincode 1.x (Fedora has 2.x) and tracing-tracy # (requires tracy-client C++ binding, not in Fedora) are unavailable %bcond check 0 %global debug_package %{nil} %global crate profiling Name: rust-profiling 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 Source: %{crates_source} # Remove optional deps unavailable in Fedora: optick, puffin, superluminal-perf, # tracy-client; and dev-deps: bincode 1.x, tracing-tracy (needs tracy-client) Patch: profiling-remove-unavailable-deps.patch 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 # FIXME: no license files detected %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}+procmacros-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+procmacros-devel %{_description} This package contains library source intended for building other packages which use the "procmacros" feature of the "%{crate}" crate. %files -n %{name}+procmacros-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}+profiling-procmacros-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+profiling-procmacros-devel %{_description} This package contains library source intended for building other packages which use the "profiling-procmacros" feature of the "%{crate}" crate. %files -n %{name}+profiling-procmacros-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+tracing-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+tracing-devel %{_description} This package contains library source intended for building other packages which use the "tracing" feature of the "%{crate}" crate. %files -n %{name}+tracing-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+type-check-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+type-check-devel %{_description} This package contains library source intended for building other packages which use the "type-check" feature of the "%{crate}" crate. %files -n %{name}+type-check-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog