Automating rpm build process