# Generated by rust2rpm 28 %bcond check 1 %global crate rbspy Name: rust-rbspy Version: 0.42.1 Release: %autorelease Summary: Sampling CPU profiler for Ruby License: MIT URL: https://crates.io/crates/rbspy Source: %{crates_source} # Automatically generated patch to strip dependencies and normalize metadata Patch: rbspy-fix-metadata-auto.diff BuildRequires: cargo-rpm-macros >= 24 %if %{with check} BuildRequires: ruby BuildRequires: rubygems %endif %global _description %{expand: Sampling CPU profiler for Ruby.} %description %{_description} %package -n %{crate} Summary: %{summary} # FIXME: paste output of %%cargo_license_summary here License: # FIXME # LICENSE.dependencies contains a full license breakdown %description -n %{crate} %{_description} %files -n %{crate} %license License.md %license LICENSE.dependencies %doc ARCHITECTURE.md %doc CODE_OF_CONDUCT.md %doc CONTRIBUTORS.md %doc NEW_RUBY_VERSION_CHECKLIST.md %doc README.md %doc RELEASE_CHECKLIST.md %{_bindir}/rbspy %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.md %doc %{crate_instdir}/ARCHITECTURE.md %doc %{crate_instdir}/CODE_OF_CONDUCT.md %doc %{crate_instdir}/CONTRIBUTORS.md %doc %{crate_instdir}/NEW_RUBY_VERSION_CHECKLIST.md %doc %{crate_instdir}/README.md %doc %{crate_instdir}/RELEASE_CHECKLIST.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 %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %{cargo_license_summary} %{cargo_license} > LICENSE.dependencies %install %cargo_install %if %{with check} %check # * skip tests that load a Ruby script which is not included in published crates %{cargo_test -- -- %{shrink: --skip core::ruby_spy::tests::test_get_trace --skip core::ruby_spy::tests::test_get_trace_when_process_has_exited --skip sampler::tests::test_sample_single_process_with_time_limit --skip sampler::tests::test_sample_single_process --skip sampler::tests::test_sample_subprocesses }} %endif %changelog %autochangelog