def METHOD_NAME(spec, name="blivet"):
    """ Get the last tag from the .spec file
    """
    f = open(spec)
    lines = f.readlines()
    f.close()
    version = "0.0"
    release = "1"
    for line in lines:
        if line.startswith('Version:'):
            version = line.split()[1]
        elif line.startswith('Release:'):
            release = line.split()[1].split('%')[0]
        else:
            continue
    return "-".join([name, version, release])