Fixes to make building RPMs easier and added a spec file.