[RHEL6 PATCH] internal: properly define %{dist} and compute correct pkg_release from Makefile