Revamp automaton script
Add an RPM spec file