Related Rule
Practice Relating to Rule 7. The Principle of Distinction between Civilian Objects and Military Objectives
Section E. Attacks against civilian means of transportation
Spain’s Penal Code (1995), as amended in 2010, states:
1. Anyone who in the event of an armed conflict commits or orders to be committed any of the following acts shall be punished with four to six years’ imprisonment:
h. … [D]estroying non-military ships or aircraft and the cargo of an adverse or neutral party, or capturing them, in violation of international norms applicable to armed conflicts at sea;
2. … In all other cases mentioned in the above article, the higher sentence can be imposed when extensive and important destructions are caused to the property, objects or installations or [the acts] are of extreme gravity. 
Spain, Penal Code, 1995, as amended on 23 June 2010, Article 613(1)(h) and (2).