since the B-Spec sucks at overtaking, my technique is to play about 20 laps in A-Spec, lap them at least once, then pit and switch to B-Spec.
I have been using this technique on all endurance races and I have won every single time (except when im using an underpowered car, like the 787B on Le Mans against a Nissan R92CP).