fix endif in .spec