Tweaks to spec file to make it work with build scripts.