@ -1,19 +1,23 @@
# Generated by rust2rpm 24
%bcond_without check
# Generated by rust2rpm 27
%bcond check 1
%global debug_package %{nil}
%global crate displaydoc
Name: rust-displaydoc
Version: 0.2.4
Version: 0.2.5
Release: %autorelease
Summary: Derive macro for implementing the display Trait
License: MIT OR Apache-2.0
URL: https://crates.io/crates/displaydoc
Source: %{crates_source}
# Manually created patch for downstream crate metadata changes
# * Bump pretty_assertions dependency to 1.4.0:
# https://github.com/yaahc/displaydoc/pull/53
Patch: displaydoc-fix-metadata.diff
BuildRequires: rust-packaging >= 21
BuildRequires: cargo-rpm-macros >= 24
%global _description %{expand:
A derive macro for implementing the display Trait via a doc comment and
@ -62,7 +66,7 @@ use the "std" feature of the "%{crate}" crate.
%ghost %{crate_instdir}/Cargo.toml
%prep
%autosetup -n %{crate}-%{version_no_tilde } -p1
%autosetup -n %{crate}-%{version} -p1
%cargo_prep
%generate_buildrequires