|
|
|
@ -1,11 +1,11 @@
|
|
|
|
|
# Generated by rust2rpm 22
|
|
|
|
|
# Generated by rust2rpm 25
|
|
|
|
|
%bcond_without check
|
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
|
|
|
|
|
%global crate proc-macro2
|
|
|
|
|
|
|
|
|
|
Name: rust-proc-macro2
|
|
|
|
|
Version: 1.0.46
|
|
|
|
|
Version: 1.0.76
|
|
|
|
|
Release: %autorelease
|
|
|
|
|
Summary: Substitute implementation of the Rust compiler's proc_macro API
|
|
|
|
|
|
|
|
|
@ -13,13 +13,11 @@ License: MIT OR Apache-2.0
|
|
|
|
|
URL: https://crates.io/crates/proc-macro2
|
|
|
|
|
Source: %{crates_source}
|
|
|
|
|
|
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
|
|
|
|
|
|
BuildRequires: rust-packaging >= 21
|
|
|
|
|
BuildRequires: cargo-rpm-macros >= 24
|
|
|
|
|
|
|
|
|
|
%global _description %{expand:
|
|
|
|
|
Substitute implementation of the compiler's `proc_macro` API to decouple token-
|
|
|
|
|
based libraries from the procedural macro use case.}
|
|
|
|
|
A substitute implementation of the compiler's `proc_macro` API to
|
|
|
|
|
decouple token-based libraries from the procedural macro use case.}
|
|
|
|
|
|
|
|
|
|
%description %{_description}
|
|
|
|
|
|
|
|
|
@ -75,7 +73,7 @@ use the "span-locations" 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
|
|
|
|
@ -89,8 +87,8 @@ use the "span-locations" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%if %{with check}
|
|
|
|
|
%check
|
|
|
|
|
# skip doctests that don't compile
|
|
|
|
|
%cargo_test -- -- --skip "src/lib.rs"
|
|
|
|
|
# * skip doctests that don't compile
|
|
|
|
|
%cargo_test -- -- --skip 'src/lib.rs'
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|