|
|
|
@ -1,23 +1,19 @@
|
|
|
|
|
# Generated by rust2rpm 27
|
|
|
|
|
%bcond check 1
|
|
|
|
|
# Generated by rust2rpm 24
|
|
|
|
|
%bcond_without check
|
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
|
|
|
|
|
%global crate displaydoc
|
|
|
|
|
|
|
|
|
|
Name: rust-displaydoc
|
|
|
|
|
Version: 0.2.5
|
|
|
|
|
Version: 0.2.4
|
|
|
|
|
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: cargo-rpm-macros >= 24
|
|
|
|
|
BuildRequires: rust-packaging >= 21
|
|
|
|
|
|
|
|
|
|
%global _description %{expand:
|
|
|
|
|
A derive macro for implementing the display Trait via a doc comment and
|
|
|
|
@ -66,7 +62,7 @@ use the "std" feature of the "%{crate}" crate.
|
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{crate}-%{version} -p1
|
|
|
|
|
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
|
|
|
|
%cargo_prep
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
|