Add script to generate RPMs

Fixed issues in config file.