To unpack the source ready for patching rpmbuild -bp --define 'disttag .SL30X' --define 'repotag .st' torque.spec To build this rpm. rpmbuild -ba --define 'disttag .SL30X' --define 'repotag .st' torque.spec