# Generated by rust2rpm 18 %bcond_without check %global __cargo_skip_build 0 %global crate rbspy Name: rust-%{crate} Version: 0.8.1 Release: %autorelease Summary: Sampling CPU profiler for Ruby # Upstream license specification: MIT License: MIT URL: https://rbspy.github.io Source: %{crates_source} # Initial patched metadata # Drop non-Linux dependencies and add missing rbspy-testdata dependency Patch0: rbspy-fix-metadata.diff ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging %global _description %{expand: rbspy is a sampling CPU profiler for Ruby. rbspy lets you profile Ruby processes that are already running. You give it a PID, and it starts profiling. It's a sampling profiler, which means it's low overhead and safe to run in production. rbspy lets you record profiling data, save the raw profiling data to disk, and then analyze it in a variety of different ways later on.} %description %{_description} %package -n %{crate} Summary: %{summary} %description -n %{crate} %{_description} %files -n %{crate} %license License.md %doc README.md CONTRIBUTORS.md CODE_OF_CONDUCT.md ARCHITECTURE.md %{_bindir}/rbspy %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check # Skip tests failing in mock %cargo_test -- -- --skip core::initialize::test_current_thread_address --skip core::initialize::test_get_exec_trace --skip core::initialize::test_get_trace --skip test_spawn_record_children_subprocesses %endif %changelog %autochangelog