If pkg_rel is defined, use it a package release
Split rel definition in a common template file