fix build spec for enum