Provide rpm build version during compilation too

Was initially added to install phase make invocation only.