This commit modified the pki_version for RHEL 8, but the execution path is identical for both the if and the else cases. Either the whole statement can be dropped to simplify the spec file or there is a problem here and one of the two versions is incorrect.
pki_version
if
else
It's the same upstream, we keep them in sync:
https://github.com/freeipa/freeipa/blob/master/freeipa.spec.in#L169
Once we get the HSM code merged we can bump to whatever the current release is. If we want to address it sooner I guess can can set it to 11.2.0 (for F37) by default.