Fix permissions in the spec file

fixes #6948