相关规则
Spain
Practice Relating to Rule 107. Spies
Section B. Status of spies
Spain’s LOAC Manual (1996) states that spies are not entitled to prisoner-of-war status. 
Spain, Orientaciones. El Derecho de los Conflictos Armados, Publicación OR7-004, 2 Tomos, aprobado por el Estado Mayor del Ejército, División de Operaciones, 18 March 1996, Vol. I, § 1.4.
Spain’s LOAC Manual (2007) states:
Spies are not lawful combatants and are not entitled to prisoner-of-war status. Espionage is a criminal offence and captured spies are tried in the criminal justice system of the detaining power, which will first rule on the status of the accused, if there is any doubt about it. 
Spain, Orientaciones. El Derecho de los Conflictos Armados, Tomo 1, Publicación OR7–004, (Edición Segunda), Mando de Adiestramiento y Doctrina, Dirección de Doctrina, Orgánica y Materiales, 2 November 2007, § 7.3.a.(8); see also § 1.4.
The manual further states:
The law of armed conflict does not prohibit [espionage] activities, but penalizes them by depriving members of the armed forces captured engaging in espionage of prisoner-of-war status. 
Spain, Orientaciones. El Derecho de los Conflictos Armados, Tomo 1, Publicación OR7–004, (Edición Segunda), Mando de Adiestramiento y Doctrina, Dirección de Doctrina, Orgánica y Materiales, 2 November 2007, § 2.3.b.(5).
Spain’s Military Criminal Code (1985) provides that non-combatants involved in military espionage are subject to punishment and do not benefit from POW status. 
Spain, Military Criminal Code, 1985, Articles 52 and 57.