This required to no longer set RUSTFLAGS explicitly in a few places to ensure they are not getting set three times:
The "%__cargo" macro no longer defines RUSTFLAGS explicitly.
The "%cargo_build" and "%cargo_test" macros now explicitly unset RUSTFLAGS from the build environment. The "rpm" profile already contains settings that are equivalent to the default RUSTFLAGS.
Since RUSTFLAGS are already defined in the default build environment, no packages that ship binaries should be impacted by this change (except maybe for rare cases of environments where RUSTFLAGS is not set and the package uses the private "%__cargo" macro directly).
This required to no longer set RUSTFLAGS explicitly in a few places to ensure they are not getting set three times:
Since RUSTFLAGS are already defined in the default build environment, no packages that ship binaries should be impacted by this change (except maybe for rare cases of environments where RUSTFLAGS is not set and the package uses the private "%__cargo" macro directly).