fix spec, fix file permissions