fix rpm makefile

so package name and version number are correctly deduced
from the string returned by "rpm --query -f"