{% if copr_builder_fedora_version == 34 %}
# rpkg-util v2

[main]
frontend_url = {{ frontend_base_url }}
distgit_lookaside_url = {scheme}://{netloc}/repo/pkgs/%(ns1)s/%(name)s/%(filename)s/%(hashtype)s/%(hash)s/%(filename)s
distgit_clone_url = {scheme}://{netloc}/%(module)s
rpm_vendor_copr_name = {{ rpm_vendor_copr_name }}

[distgit0]
distgit_hostname_pattern = src.fedoraproject.org
distgit_lookaside_url = https://src.fedoraproject.org/repo/pkgs/%(ns1)s/%(name)s/%(filename)s/%(hashtype)s/%(hash)s/%(filename)s
distgit_clone_url = https://src.fedoraproject.org/%(module)s

[distgit1]
distgit_hostname_pattern = {{ dist_git_base_url }}
distgit_lookaside_url = https://{{ dist_git_base_url }}/repo/pkgs/%(ns2)s/%(ns1)s/%(name)s/%(filename)s/%(hashtype)s/%(hash)s/%(filename)s
distgit_clone_url = https://{{ dist_git_base_url }}/git/%(module)s

[distgit2]
distgit_hostname_pattern = pkgs.fedoraproject.org
distgit_lookaside_url = https://src.fedoraproject.org/repo/pkgs/%(ns1)s/%(name)s/%(filename)s/%(hashtype)s/%(hash)s/%(filename)s
distgit_clone_url = git://pkgs.fedoraproject.org/%(module)s

[distgit3]
distgit_hostname_pattern = src.stg.fedoraproject.org
distgit_lookaside_url = https://src.stg.fedoraproject.org/repo/pkgs/%(ns1)s/%(name)s/%(filename)s/%(hashtype)s/%(hash)s/%(filename)s
distgit_clone_url = https://src.stg.fedoraproject.org/%(module)s

{% else %}
# rpkg-util v3+

[main]
frontend_url = {{ frontend_base_url }}
distgit_lookaside_url = https://${% raw %}{{git_props:remote_netloc}}{% endraw %}/repo/pkgs/%(repo_path)s/%(filename)s/%(hashtype)s/%(hash)s/%(filename)s
distgit_clone_url = {scheme}://{netloc}/%(repo_path)s
rpm_vendor_copr_name = {{ rpm_vendor_copr_name }}

[distgit0]
distgit_hostname_pattern = src.fedoraproject.org
distgit_lookaside_url = https://src.fedoraproject.org/repo/pkgs/%(ns1)s/%(name)s/%(filename)s/%(hashtype)s/%(hash)s/%(filename)s
distgit_clone_url = https://src.fedoraproject.org/%(repo_path)s
{% endif %}
