better handling of spec files