Try: %_rpmfilename %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm Also note that this is all covered in the documents on the rpm.org site I pointed to at first