automating rpm build