All Middle Eastern countries except Israel have signed the NPT , which aims to stop the spread of nuclear weapons .