def METHOD_NAME(dist_file, pkg_name):
    repo_name = dist_file.release_packages[pkg_name].repository_name
    release_repo = dist_file.repositories[repo_name].release_repository
    version_tag = get_release_tag(release_repo, pkg_name)
    return RepositorySpecification(
        pkg_name, {
            'type': 'git',
            'url': release_repo.url,
            'version': version_tag,
        })