What is an easy way to override rpm optflags?
For example, on one system in a specfile, I want to use change the -march and -mtune for a specific processor, while still keeping rest of the optflags defaults from the %configure2_5 macro.
I could do it the long way and copy the default output of %configure2_5 and then pasting and editing the line in the specfile.
Is there a way to overide the optflags, either in the user's .rpmrc, .rpmmacros, or directly in the specfile?
I've tried doing this directly in the specfile with:
CFLAGS="-march=xxx -mtune=xxx $RPM_OPT_FLAGS"
but this only adds the extra options.