Fix for issue #8 with package requiring repo

Added fix to optionally add the require. Added spec tests as well. Tested succesfully on Centos 6.4 vagrant box with PE 3.2.