RPM spec file support and unittests

This pull request adds RPM spec file support, unittests support code and a first batch of unittests.