Dreaming that you are spanking someone, can be interpreted as symbolism that you need to work on your uncontrolled outburst of childish anger and frustration.
Dream dictionary: spanking dream meanings
If someone has spank you, then such dream symbolizes your childish attitude towards some things. If you were the one who spanked someone, then it means that other people annoy you.