recognize spec files correctly