include('/etc/mock/mageia-@RELEASEVER@-@DIST_ARCH@.cfg')

config_opts['root'] = 'mageia-@RELEASEVER@-@DIST_ARCH@-@DIST_SECTION@'
config_opts['macros']['%distro_section'] = '@DIST_SECTION@'

config_opts['yum.conf'] += """

[mageia-@DIST_SECTION@]
name=Mageia $releasever - {{ repo_arch }} - @DIST_SECTION_NAME@
#baseurl=https://mirrors.kernel.org/mageia/distrib/$releasever/{{ repo_arch }}/media/core/release/
#metalink=https://mirrors.mageia.org/metalink?distrib=mageia-$releasever&arch={{ repo_arch }}&section=@DIST_SECTION@&repo=release
mirrorlist=https://www.mageia.org/mirrorlist/?release=$releasever&arch={{ repo_arch }}&section=@DIST_SECTION@&repo=release
gpgcheck=1
gpgkey=file:///usr/share/distribution-gpg-keys/mageia/RPM-GPG-KEY-Mageia
fastestmirror=1
enabled=1

[updates-@DIST_SECTION@]
name=Mageia $releasever - {{ repo_arch }} - @DIST_SECTION_NAME@ - Updates
#baseurl=https://mirrors.kernel.org/mageia/distrib/$releasever/{{ repo_arch }}/media/core/updates/
#metalink=https://mirrors.mageia.org/metalink?distrib=mageia-$releasever&arch={{ repo_arch }}&section=@DIST_SECTION@&repo=updates
mirrorlist=https://www.mageia.org/mirrorlist/?release=$releasever&arch={{ repo_arch }}&section=@DIST_SECTION@&repo=updates
gpgcheck=1
gpgkey=file:///usr/share/distribution-gpg-keys/mageia/RPM-GPG-KEY-Mageia
fastestmirror=1
enabled=1

[mageia-@DIST_SECTION@-debuginfo]
name=Mageia $releasever - {{ repo_arch }} - @DIST_SECTION_NAME@ - Debug
#baseurl=https://mirrors.kernel.org/mageia/distrib/$releasever/{{ repo_arch }}/media/debug/core/release/
#metalink=https://mirrors.mageia.org/metalink?distrib=mageia-$releasever&arch={{ repo_arch }}&section=@DIST_SECTION@&repo=release&debug=true
mirrorlist=https://www.mageia.org/mirrorlist/?release=$releasever&arch={{ repo_arch }}&section=@DIST_SECTION@&repo=release&debug=1
gpgcheck=1
gpgkey=file:///usr/share/distribution-gpg-keys/mageia/RPM-GPG-KEY-Mageia
fastestmirror=1
enabled=0

[updates-@DIST_SECTION@-debuginfo]
name=Mageia $releasever - {{ repo_arch }} - @DIST_SECTION_NAME@ - Updates - Debug
#baseurl=https://mirrors.kernel.org/mageia/distrib/$releasever/{{ repo_arch }}/media/debug/core/updates/
#metalink=https://mirrors.mageia.org/metalink?distrib=mageia-$releasever&arch={{ repo_arch }}&section=@DIST_SECTION@&repo=updates&debug=true
mirrorlist=https://www.mageia.org/mirrorlist/?release=$releasever&arch={{ repo_arch }}&section=@DIST_SECTION@&repo=updates&debug=1
gpgcheck=1
gpgkey=file:///usr/share/distribution-gpg-keys/mageia/RPM-GPG-KEY-Mageia
fastestmirror=1
enabled=0

"""
