Updated the spec file with the right dependencies and the pre-post install scripts.