# Generated by rust2rpm 22 %bcond_without check %global debug_package %{nil} %global crate backtrace Name: rust-backtrace Version: 0.3.66 Release: %autorelease Summary: Library to acquire a stack trace (backtrace) at runtime in a Rust program # Upstream license specification: MIT/Apache-2.0 License: MIT OR Apache-2.0 URL: https://crates.io/crates/backtrace Source: %{crates_source} # Automatically generated patch to strip foreign dependencies Patch: backtrace-fix-metadata-auto.diff # Manually created patch for downstream crate metadata changes # * drop accuracy test (requires crates to be built in dylib mode) # * exclude files for upstream CI Patch: backtrace-fix-metadata.diff ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging >= 21 %global _description %{expand: Library to acquire a stack trace (backtrace) at runtime in a Rust program.} %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-APACHE %license %{crate_instdir}/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 %package -n %{name}+cpp_demangle-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+cpp_demangle-devel %{_description} This package contains library source intended for building other packages which use the "cpp_demangle" feature of the "%{crate}" crate. %files -n %{name}+cpp_demangle-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+gimli-symbolize-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+gimli-symbolize-devel %{_description} This package contains library source intended for building other packages which use the "gimli-symbolize" feature of the "%{crate}" crate. %files -n %{name}+gimli-symbolize-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+libbacktrace-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+libbacktrace-devel %{_description} This package contains library source intended for building other packages which use the "libbacktrace" feature of the "%{crate}" crate. %files -n %{name}+libbacktrace-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+rustc-serialize-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+rustc-serialize-devel %{_description} This package contains library source intended for building other packages which use the "rustc-serialize" feature of the "%{crate}" crate. %files -n %{name}+rustc-serialize-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+serde-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+serde-devel %{_description} This package contains library source intended for building other packages which use the "serde" feature of the "%{crate}" crate. %files -n %{name}+serde-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+serialize-rustc-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+serialize-rustc-devel %{_description} This package contains library source intended for building other packages which use the "serialize-rustc" feature of the "%{crate}" crate. %files -n %{name}+serialize-rustc-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+serialize-serde-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+serialize-serde-devel %{_description} This package contains library source intended for building other packages which use the "serialize-serde" feature of the "%{crate}" crate. %files -n %{name}+serialize-serde-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+std-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+std-devel %{_description} This package contains library source intended for building other packages which use the "std" feature of the "%{crate}" crate. %files -n %{name}+std-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 # drop accuracy test (requires stuff to be built in dylib mode) rm -r tests/accuracy/ %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check # https://github.com/rust-lang/backtrace-rs/issues/204 # * smoke_test_frames: fails on all architectures # * backtrace_new_unresolved_should_start_with_call_site_trace: fails on aarch64, ppc64le, s390x %cargo_test -- -- --skip smoke_test_frames --skip backtrace_new_unresolved_should_start_with_call_site_trace %endif %changelog %autochangelog