I have this line in my scripts: rpm --rcfile rpmrc -ba myspec.spec --target ia64-unknown-Linux. This works on other i386/i586 RH systems, but not on the IA64. It appears that rpm is not processing the --target command-line option correctly It seems to think that ia64-unknown-Linux is also a spec file and exits with a spec file not found error. I also tried shuffling the options around and it does seem to be the case.
What version of RPM? (rpm -q rpm)
(Alternatively, try invoking rpmbuild instead of rpm)
Closed due to lack of input. Please reopen if still a problem.