Ensure lookahead and koji configs exist

This commit is contained in:
Louis Abel 2024-04-15 09:19:10 -07:00
parent 664a134f27
commit d695aad455
Signed by: label
GPG Key ID: 2A6975660E424560
13 changed files with 198 additions and 4 deletions

View File

@ -27,6 +27,7 @@ done
for arch in "${GREEN_OBSIDIAN_ARCH[@]}"; do for arch in "${GREEN_OBSIDIAN_ARCH[@]}"; do
cp etc/mock/rl-8-$arch.cfg ${MOCK_DIR} cp etc/mock/rl-8-$arch.cfg ${MOCK_DIR}
cp etc/mock/rl-8-koji-$arch.cfg ${MOCK_DIR}
done done
# blue onyx # blue onyx

View File

@ -1,4 +1,4 @@
include('templates/rl-10-peridot.tpl') include('templates/rl-10-lookahead-peridot.tpl')
include('templates/rl-10-scopes.tpl') include('templates/rl-10-scopes.tpl')
config_opts['root'] = 'rl-10-lookahead-aarch64' config_opts['root'] = 'rl-10-lookahead-aarch64'

View File

@ -1,4 +1,4 @@
include('templates/rl-10-peridot.tpl') include('templates/rl-10-lookahead-peridot.tpl')
include('templates/rl-10-scopes.tpl') include('templates/rl-10-scopes.tpl')
config_opts['root'] = 'rl-10-lookahead-ppc64le' config_opts['root'] = 'rl-10-lookahead-ppc64le'

View File

@ -1,4 +1,4 @@
include('templates/rl-10-peridot.tpl') include('templates/rl-10-lookahead-peridot.tpl')
include('templates/rl-10-scopes.tpl') include('templates/rl-10-scopes.tpl')
config_opts['root'] = 'rl-10-lookahead-s390x' config_opts['root'] = 'rl-10-lookahead-s390x'

View File

@ -1,4 +1,4 @@
include('templates/rl-10-peridot.tpl') include('templates/rl-10-lookahead-peridot.tpl')
include('templates/rl-10-scopes.tpl') include('templates/rl-10-scopes.tpl')
config_opts['root'] = 'rl-10-lookahead-x86_64' config_opts['root'] = 'rl-10-lookahead-x86_64'

View File

@ -0,0 +1,26 @@
include('templates/rl-8-koji.tpl')
include('templates/rl-8-scopes.tpl')
config_opts['root'] = 'rl-8-aarch64'
config_opts['target_arch'] = 'aarch64'
config_opts['legal_host_arches'] = ('aarch64',)
config_opts['releasever'] = '8'
config_opts['description'] = 'Rocky Linux 8'
config_opts['use_bootstrap_image'] = False
config_opts['rpmbuild_command'] = '/usr/bin/rpmbuild'
config_opts['package_manager'] = 'dnf'
config_opts['dist'] = 'el8'
# Applicable Macros
config_opts['macros']['%_rpmfilename'] = '%%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm'
config_opts['macros']['%_host'] = 'aarch64-redhat-linux-gnu'
config_opts['macros']['%_host_cpu'] = 'aarch64'
config_opts['macros']['%_vendor'] = "redhat"
config_opts['macros']['%_vendor_host'] = "redhat"
# These are typically set from rocky-release and may not have an effect
config_opts['macros']['%__bootstrap'] = '~bootstrap'
config_opts['macros']['%distribution'] = 'Rocky Linux 8'
config_opts['macros']['%dist'] = '%{!?distprefix0:%{?distprefix}}%{expand:%{lua:for i=0,9999 do print("%{?distprefix" .. i .."}") end}}.el8%{?with_bootstrap:~bootstrap}'
config_opts['macros']['%rhel'] = '8'
# To set specialty macros, such as %vendor, please run 'rocky-mock-macros-setup'

View File

@ -0,0 +1,26 @@
include('templates/rl-8-koji.tpl')
include('templates/rl-8-scopes.tpl')
config_opts['root'] = 'rl-8-i686'
config_opts['target_arch'] = 'i686'
config_opts['legal_host_arches'] = ('i686',)
config_opts['releasever'] = '8'
config_opts['description'] = 'Rocky Linux 8'
config_opts['use_bootstrap_image'] = False
config_opts['rpmbuild_command'] = '/usr/bin/rpmbuild'
config_opts['package_manager'] = 'dnf'
config_opts['dist'] = 'el8'
# Applicable Macros
config_opts['macros']['%_rpmfilename'] = '%%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm'
config_opts['macros']['%_host'] = 'i686-redhat-linux-gnu'
config_opts['macros']['%_host_cpu'] = 'i686'
config_opts['macros']['%_vendor'] = "redhat"
config_opts['macros']['%_vendor_host'] = "redhat"
# These are typically set from rocky-release and may not have an effect
config_opts['macros']['%__bootstrap'] = '~bootstrap'
config_opts['macros']['%distribution'] = 'Rocky Linux 8'
config_opts['macros']['%dist'] = '%{!?distprefix0:%{?distprefix}}%{expand:%{lua:for i=0,9999 do print("%{?distprefix" .. i .."}") end}}.el8%{?with_bootstrap:~bootstrap}'
config_opts['macros']['%rhel'] = '8'
# To set specialty macros, such as %vendor, please run 'rocky-mock-macros-setup'

View File

@ -0,0 +1,26 @@
include('templates/rl-8-koji.tpl')
include('templates/rl-8-scopes.tpl')
config_opts['root'] = 'rl-8-x86_64'
config_opts['target_arch'] = 'x86_64'
config_opts['legal_host_arches'] = ('x86_64',)
config_opts['releasever'] = '8'
config_opts['description'] = 'Rocky Linux 8'
config_opts['use_bootstrap_image'] = False
config_opts['rpmbuild_command'] = '/usr/bin/rpmbuild'
config_opts['package_manager'] = 'dnf'
config_opts['dist'] = 'el8'
# Applicable Macros
config_opts['macros']['%_rpmfilename'] = '%%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm'
config_opts['macros']['%_host'] = 'x86_64-redhat-linux-gnu'
config_opts['macros']['%_host_cpu'] = 'x86_64'
config_opts['macros']['%_vendor'] = "redhat"
config_opts['macros']['%_vendor_host'] = "redhat"
# These are typically set from rocky-release and may not have an effect
config_opts['macros']['%__bootstrap'] = '~bootstrap'
config_opts['macros']['%distribution'] = 'Rocky Linux 8'
config_opts['macros']['%dist'] = '%{!?distprefix0:%{?distprefix}}%{expand:%{lua:for i=0,9999 do print("%{?distprefix" .. i .."}") end}}.el8%{?with_bootstrap:~bootstrap}'
config_opts['macros']['%rhel'] = '8'
# To set specialty macros, such as %vendor, please run 'rocky-mock-macros-setup'

View File

@ -0,0 +1,30 @@
config_opts['dnf.conf'] = """
[main]
keepcache=1
debuglevel=2
reposdir=/dev/null
logfile=/var/log/yum.log
retries=20
obsoletes=1
gpgcheck=0
assumeyes=1
syslog_ident=mock
syslog_device=
metadata_expire=0
mdpolicy=group:primary
best=1
install_weak_deps=0
protected_packages=
module_platform_id=platform:el10
user_agent={{ user_agent }}
[all]
name=all
baseurl=https://yumrepofs.build.resf.org/v1/projects/e7b83c0a-b514-4903-b739-6943bbb307f7/repo/all/$basearch
enabled=1
gpgcheck=True
repo_gpgcheck=True
gpgkey=https://git.rockylinux.org/staging/src/rocky-release/-/raw/r10/SOURCES/RPM-GPG-KEY-Rocky-10
"""

View File

@ -0,0 +1,29 @@
config_opts['dnf.conf'] = """
[main]
keepcache=1
debuglevel=2
reposdir=/dev/null
logfile=/var/log/yum.log
retries=20
obsoletes=1
gpgcheck=0
assumeyes=1
syslog_ident=mock
syslog_device=
metadata_expire=0
mdpolicy=group:primary
best=1
install_weak_deps=0
protected_packages=
module_platform_id=platform:el8
user_agent={{ user_agent }}
[devel]
name=Rocky Linux $releasever - Devel (WARNING: UNSUPPORTED - FOR BUILDROOT USE ONLY!)
baseurl=http://dl.rockylinux.org/vault/rocky/$releasever/Devel/$basearch/os/
gpgcheck=1
enabled=1
gpgkey=file:///usr/share/distribution-gpg-keys/rocky/RPM-GPG-KEY-Rocky-8
"""

View File

@ -0,0 +1,28 @@
config_opts['dnf.conf'] = """
[main]
keepcache=1
debuglevel=2
reposdir=/dev/null
logfile=/var/log/yum.log
retries=20
obsoletes=1
gpgcheck=0
assumeyes=1
syslog_ident=mock
syslog_device=
metadata_expire=0
mdpolicy=group:primary
best=1
install_weak_deps=0
protected_packages=
module_platform_id=platform:el8
user_agent={{ user_agent }}
[koji]
name=Rocky Linux $releasever - Koji LookAhead Repo
baseurl=https://kojidev.rockylinux.org/kojifiles/repos/dist-rocky8-lookahead-build/latest/$basearch
gpgcheck=0
enabled=1
"""

View File

@ -0,0 +1,28 @@
config_opts['dnf.conf'] = """
[main]
keepcache=1
debuglevel=2
reposdir=/dev/null
logfile=/var/log/yum.log
retries=20
obsoletes=1
gpgcheck=0
assumeyes=1
syslog_ident=mock
syslog_device=
metadata_expire=0
mdpolicy=group:primary
best=1
install_weak_deps=0
protected_packages=
module_platform_id=platform:el8
user_agent={{ user_agent }}
[koji]
name=Rocky Linux $releasever - Koji Repo
baseurl=https://kojidev.rockylinux.org/kojifiles/repos/dist-rocky8-build/latest/$basearch
gpgcheck=0
enabled=1
"""