Well, it´s a bit confusing. What the EU calls CPC in their Directive from 2003, transposed into Spanish law in 2007, is called CAP by the Spanish Fomento Ministry. Latest update is from May 2018.
Their info on recognition of the CPC certificate
HERE
You can arrange for the recognition of your CPC certificate in person, or telematically.
A screenshot from the actual Royal Decree on how the Certificate should look like, for it to be recognised in Spain.

Screenshot of what the Spanish call CAP.

CPC Certificate FAQ
Info on courses,
HERE
Info on tacograph regulations etc.
HERE
Please note: The information provided is based upon our understanding of current legislation. It is not legal advice but is provided freely to enable you to be properly informed. We recommend that if you are considering taking action, you should seek professional advice.
How Can Citizens Advice Bureau Spain Benefit You?
As an expatriate living in Spain; do you find that the Spanish bureaucratic system
can be disconcerting? Have you discovered that the simplest of transactions are difficult to conclude?
Find yourself searching for answers to problems only to discover that there is nowhere where you could find a solution?
I am assuming that the answer is yes and that is why should be a member of our web site if you arent already.