|
|
@ -1,11 +1,11 @@
|
|
|
|
# Generated by rust2rpm 26
|
|
|
|
# Generated by rust2rpm 27
|
|
|
|
%bcond_without check
|
|
|
|
%bcond check 1
|
|
|
|
%global debug_package %{nil}
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
|
|
|
|
|
|
|
%global crate proc-macro2
|
|
|
|
%global crate proc-macro2
|
|
|
|
|
|
|
|
|
|
|
|
Name: rust-proc-macro2
|
|
|
|
Name: rust-proc-macro2
|
|
|
|
Version: 1.0.89
|
|
|
|
Version: 1.0.92
|
|
|
|
Release: %autorelease
|
|
|
|
Release: %autorelease
|
|
|
|
Summary: Substitute implementation of the Rust compiler's proc_macro API
|
|
|
|
Summary: Substitute implementation of the Rust compiler's proc_macro API
|
|
|
|
|
|
|
|
|
|
|
@ -15,7 +15,7 @@ Source: %{crates_source}
|
|
|
|
# Manually created patch for downstream crate metadata changes
|
|
|
|
# Manually created patch for downstream crate metadata changes
|
|
|
|
# * remove superfluous dev-dependencies that are only present for a noop doctest
|
|
|
|
# * remove superfluous dev-dependencies that are only present for a noop doctest
|
|
|
|
Patch: proc-macro2-fix-metadata.diff
|
|
|
|
Patch: proc-macro2-fix-metadata.diff
|
|
|
|
Patch: 0001-ignore-one-doctest-block-that-adds-superfluous-dev-d.patch
|
|
|
|
Patch2: 0001-ignore-one-doctest-block-that-adds-superfluous-dev-d.patch
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: cargo-rpm-macros >= 24
|
|
|
|
BuildRequires: cargo-rpm-macros >= 24
|
|
|
|
|
|
|
|
|
|
|
@ -91,9 +91,10 @@ use the "span-locations" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with check}
|
|
|
|
%if %{with check}
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
# * skip a test that harmlessly fails on 32-bit architectures
|
|
|
|
%cargo_test -- --lib
|
|
|
|
# * skip doctests that don't compile
|
|
|
|
# * skip doctests that don't compile
|
|
|
|
%cargo_test -- -- --skip test_proc_macro2_wrapper_size_without_locations --skip 'src/lib.rs'
|
|
|
|
%cargo_test -- --doc -- --skip 'src/lib.rs'
|
|
|
|
|
|
|
|
%cargo_test -- --tests
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|