The macros currently silently fail with missing dependencies if the check bcond is disabled. Adding the "-Z avoid-dev-deps" flag should fix this (similarly to how the flag is necessary for "cargo package" to work in the %cargo_install macro).
check
%cargo_install
Fixed here: https://pagure.io/fedora-rust/rust-packaging/c/8690145a30cb049b0d2bcc9288b388cb9f8bbda7?branch=main
Indeed this fixes the %cargo_license and %cargo_license_summary macros when test dependencies are disabled.
%cargo_license
%cargo_license_summary
Metadata Update from @decathorpe: - Issue status updated to: Closed (was: Open)