|
|
|
@ -1,23 +1,20 @@
|
|
|
|
|
# Generated by rust2rpm 21
|
|
|
|
|
# Generated by rust2rpm 24
|
|
|
|
|
%bcond_without check
|
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
|
|
|
|
|
%global crate eyre
|
|
|
|
|
|
|
|
|
|
Name: rust-%{crate}
|
|
|
|
|
Name: rust-eyre
|
|
|
|
|
Version: 0.6.8
|
|
|
|
|
Release: %autorelease
|
|
|
|
|
Summary: Flexible concrete Error Reporting type built on std::error::Error
|
|
|
|
|
Summary: Flexible concrete Error Reporting type with customizable Reports
|
|
|
|
|
|
|
|
|
|
# Upstream license specification: MIT OR Apache-2.0
|
|
|
|
|
License: MIT or ASL 2.0
|
|
|
|
|
License: MIT OR Apache-2.0
|
|
|
|
|
URL: https://crates.io/crates/eyre
|
|
|
|
|
Source: %{crates_source}
|
|
|
|
|
# Initial patched metadata
|
|
|
|
|
# Manually created patch for downstream crate metadata changes
|
|
|
|
|
# * drop optional pyo3 dependencies (version does not match what is in Fedora)
|
|
|
|
|
Patch0: eyre-fix-metadata.diff
|
|
|
|
|
|
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
|
Patch: eyre-fix-metadata.diff
|
|
|
|
|
|
|
|
|
|
BuildRequires: rust-packaging >= 21
|
|
|
|
|
|
|
|
|
@ -94,7 +91,9 @@ use the "track-caller" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%if %{with check}
|
|
|
|
|
%check
|
|
|
|
|
%cargo_test
|
|
|
|
|
# * some doctests fail to compile with thiserror 1.0.40:
|
|
|
|
|
# https://github.com/yaahc/eyre/issues/94
|
|
|
|
|
%cargo_test -- -- --skip "src/macros.rs"
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|