Rif wars should rather be the 'North African' style Tuaregs and the likes, shouldn't it?
a second thought. I also do not think that tuaregs have anything to do with the Rif wars.
Berbers are in the mountain terrain of Atlas mountains, while tuaregs are in the deep Sahara. Even the lions of Atlas mountains are different than the other african plains lions.
I think that Spanish did confront tuaregs in other regions like Rio de Oro/Spanish Sahara which is still fighting for their independence.
By the way tuaregs is the only muslim tribe that still uses cross as one of their symbols! [see their camel saddles]