def METHOD_NAME(upstream_and_remote):
    upstream_cwd, _ = upstream_and_remote
    # remove the tags
    tags = subprocess.run(("git", "tag"), cwd=upstream_cwd, stdout=subprocess.PIPE)
    subprocess.run(["xargs", "git", "tag", "-d"], cwd=upstream_cwd, input=tags.stdout)
    call_real_packit(parameters=["--debug", "srpm"], cwd=upstream_cwd)
    srpm_path = list(upstream_cwd.glob("*.src.rpm"))[0]
    assert srpm_path.exists()
    build_srpm(srpm_path)