don't update the .spec file if there are no new changes

This contains commits to not update the .spec file if there are no new changes and other fixes