|
|
|
@ -1,26 +1,28 @@
|
|
|
|
|
# Generated by rust2rpm 20
|
|
|
|
|
# Generated by rust2rpm 22
|
|
|
|
|
%bcond_without check
|
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
|
|
|
|
|
%global crate backtrace
|
|
|
|
|
|
|
|
|
|
Name: rust-%{crate}
|
|
|
|
|
Version: 0.3.64
|
|
|
|
|
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 ASL 2.0
|
|
|
|
|
License: MIT OR Apache-2.0
|
|
|
|
|
URL: https://crates.io/crates/backtrace
|
|
|
|
|
Source: %{crates_source}
|
|
|
|
|
# Initial patched metadata
|
|
|
|
|
# * Drop windows-specific dependencies and features
|
|
|
|
|
# * Drop deprecated/internal features
|
|
|
|
|
Patch0: backtrace-fix-metadata.diff
|
|
|
|
|
# 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
|
|
|
|
|
BuildRequires: rust-packaging >= 21
|
|
|
|
|
|
|
|
|
|
%global _description %{expand:
|
|
|
|
|
Library to acquire a stack trace (backtrace) at runtime in a Rust program.}
|
|
|
|
@ -37,10 +39,10 @@ This package contains library source intended for building other packages which
|
|
|
|
|
use the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%license LICENSE-APACHE LICENSE-MIT
|
|
|
|
|
%doc README.md
|
|
|
|
|
%{cargo_registry}/%{crate}-%{version_no_tilde}/
|
|
|
|
|
%exclude %{cargo_registry}/%{crate}-%{version_no_tilde}/ci/
|
|
|
|
|
%license %{crate_instdir}/LICENSE-APACHE
|
|
|
|
|
%license %{crate_instdir}/LICENSE-MIT
|
|
|
|
|
%doc %{crate_instdir}/README.md
|
|
|
|
|
%{crate_instdir}/
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+default-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
@ -52,7 +54,7 @@ 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 %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+cpp_demangle-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
@ -64,7 +66,7 @@ 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 %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+gimli-symbolize-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
@ -76,7 +78,7 @@ 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 %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+libbacktrace-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
@ -88,7 +90,7 @@ 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 %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+rustc-serialize-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
@ -100,7 +102,7 @@ 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 %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+serde-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
@ -112,7 +114,7 @@ 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 %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+serialize-rustc-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
@ -124,7 +126,7 @@ 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 %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+serialize-serde-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
@ -136,7 +138,7 @@ 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 %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+std-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
@ -148,7 +150,7 @@ 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 %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
|
|
|
@ -168,12 +170,9 @@ rm -r tests/accuracy/
|
|
|
|
|
%if %{with check}
|
|
|
|
|
%check
|
|
|
|
|
# https://github.com/rust-lang/backtrace-rs/issues/204
|
|
|
|
|
%ifarch %{ix86} ppc64le aarch64 s390x
|
|
|
|
|
%cargo_test || :
|
|
|
|
|
%else
|
|
|
|
|
# some tests can't find symbols in release mode
|
|
|
|
|
%cargo_test -- -- --skip smoke_test_frames
|
|
|
|
|
%endif
|
|
|
|
|
# * 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
|
|
|
|
|