Rpm macro for microarch

FWIK rpmbuild --target x86_64_v3 should build for the specified microarch; however I cannot detect this in the spec file using %_target_cpu, %_arch, or %ifarch. Documentations are also lacking.

For reference:

Macro Expands to
%_target_cpu x86_64
%_target_os linux
%_arch x86_64
%_target x86_64-linux

Clues?


Hey I got it working! Turns out the issue was with anda not setting the --target flag to rpmbuild correctly.

Works now with %ifarch x86_64_v3!