Normally you would pass the architecture in the rpmbuild command:
rpmbuild -ba --target=athlon sompackage.spec
But it is highly dependent on how the spec and the source code was written if it can be compiled for other targets. The opts that would be used for whatver target can be found in /usr/lib/rpm/rpmrc (see optflags). Again, the RPM has to be designed to take some action for each target which isn't always the case.
I am looking at attempting to build firefox, xine, and maybe eventually openoffice for my processor as they would run a little better.
Uhm: What would the best way to clean up all the folders in my ~/redhat directory be, I copy the rpms to /pub/Software/Linux/... after compiling anyway, any suggestions, or maybe I should whip up a bash script.
[x11@kintaro SPECS]$ rpmbuild -ba --target=athlon firefox.spec Building target platforms: athlon Building for target athlon error: Architecture is not included: athlon