preparing spec dir