# SPDX-FileCopyrightText: 2022 Maxwell G <gotmax@e.email>
# SPDX-License-Identifier: Unlicense

[releases.rawhide]
matcher = "^(rawhide)$"
koschei_collection = "Fedora Rawhide"
copr_chroot_fmt = "fedora-rawhide-{arch}"

defs.base = ["rawhide", "rawhide-source"]
defs.buildroot = ["fedrq-koji-rawhide", "fedrq-koji-rawhide-source"]
defpaths = ["rawhide-buildroot.repo", "fedora-rawhide.repo"]

system_repos = false
repo_dirs = ["/etc/yum.repos.dir"]

[releases.branched]
matcher = "^f(\\d{2})$"
koschei_collection = "Fedora {version}"
copr_chroot_fmt = "fedora-{version}-{arch}"

defs.base = ["fedora", "fedora-source", "updates", "updates-source"]
defs.release = ["fedora", "fedora-source"]
defs.updates = ["updates", "updates-source"]
defs.testing =  ["fedora", "fedora-source", "updates", "updates-source",
                 "updates-testing", "updates-testing-source"]
defs.testing-only =  ["updates-testing", "updates-testing-source"]

system_repos = false
repo_dirs = ["/etc/yum.repos.dir"]
defpaths = ["fedora.repo", "fedora-updates.repo", "fedora-updates-testing.repo"]

[releases.epel]
matcher = "^epel(\\d{1,2})$"
koschei_collection = "EPEL {version}"
copr_chroot_fmt = "epel-{version}-{arch}"
defpaths = ["epel.repo"]
system_repos = false

defs.base = ["fedrq-epel", "fedrq-epel-source"]
defs.testing = ["fedrq-epel", "fedrq-epel-source",
                "fedrq-epel-testing", "fedrq-epel-testing-source"]
defs.testing-only = ["fedrq-epel-testing", "fedrq-epel-testing-source"]

[releases.epel_next]
matcher = "^epel(\\d{1,2})-next$"
koschei_collection = "EPEL {version}"
copr_chroot_fmt = "centos-stream+epel-next-epel-{version}-{arch}"
defpaths = ["epel.repo"]
system_repos = false

defs.base = ["fedrq-epel", "fedrq-epel-source",
             "fedrq-epel-next", "fedrq-epel-next-source"]

defs.testing = ["fedrq-epel", "fedrq-epel-source",
                "fedrq-epel-next", "fedrq-epel-next-source",
                "fedrq-epel-testing", "fedrq-epel-testing-source",
                "fedrq-epel-next-testing", "fedrq-epel-next-testing-source"]
def.testing-only = ["fedrq-epel-testing", "fedrq-epel-testing-source",
                    "fedrq-epel-next-testing", "fedrq-epel-next-testing-source"]

defs.next-base = ["fedrq-epel-next", "fedrq-epel-next-source"]
def.next-testing = ["fedrq-epel-next", "fedrq-epel-next-source",
                    "fedrq-epel-next-testing", "fedrq-epel-next-testing-source"]
defs.next-testing-only = ["fedrq-epel-next-testing", "fedrq-epel-next-testing-source"]


[releases.centos-stream]
matcher = '^c(9|1\d)s'
copr_chroot_fmt = "centos-stream-{version}-{arch}"
defpaths = ["epel.repo", "centos-stream.repo"]
system_repos = false
defs.base = [
    "fedrq-centos-stream-baseos",
    "fedrq-centos-stream-baseos-source",
    "fedrq-centos-stream-appstream",
    "fedrq-centos-stream-appstream-source",
    "fedrq-centos-stream-crb",
    "fedrq-centos-stream-crb-source",
]
defs.epel = [
    # base
    "fedrq-centos-stream-baseos",
    "fedrq-centos-stream-baseos-source",
    "fedrq-centos-stream-appstream",
    "fedrq-centos-stream-appstream-source",
    "fedrq-centos-stream-crb",
    "fedrq-centos-stream-crb-source",
    # epel
    "fedrq-epel",
    "fedrq-epel-source",
    "fedrq-epel-next",
    "fedrq-epel-next-source"
]
defs.no-crb = [
    "fedrq-centos-stream-baseos",
    "fedrq-centos-stream-baseos-source",
    "fedrq-centos-stream-appstream",
    "fedrq-centos-stream-appstream-source",
]
