Roman Catholicism has long been the main religion of Spain , and although it no longer has official status by law , in all public schools in Spain students have to choose either a religion or ethics class , and Catholicism is the only religion officially taught .