diff --git a/etc/mock/rl-10-lookahead-riscv64.cfg b/etc/mock/rl-10-lookahead-riscv64.cfg new file mode 100644 index 0000000..c283993 --- /dev/null +++ b/etc/mock/rl-10-lookahead-riscv64.cfg @@ -0,0 +1,26 @@ +include('templates/rl-10-lookahead-riscv.tpl') +include('templates/rl-10-scopes.tpl') + +config_opts['root'] = 'rl-10-lookahead-riscv64' +config_opts['target_arch'] = 'riscv64' +config_opts['legal_host_arches'] = ('riscv64',) +config_opts['releasever'] = '10' +config_opts['description'] = 'Rocky Linux 10-lookahead' +config_opts['use_bootstrap_image'] = False +config_opts['rpmbuild_command'] = '/usr/bin/rpmbuild' +config_opts['package_manager'] = 'dnf' +config_opts['dist'] = 'el10' + +# Applicable Macros +config_opts['macros']['%_rpmfilename'] = '%%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm' +config_opts['macros']['%_host'] = 'riscv64-redhat-linux-gnu' +config_opts['macros']['%_host_cpu'] = 'riscv64' +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 10' +config_opts['macros']['%dist'] = '%{!?distprefix0:%{?distprefix}}%{expand:%{lua:for i=0,9999 do print("%{?distprefix" .. i .."}") end}}.el10%{?with_bootstrap:~bootstrap}' +config_opts['macros']['%rhel'] = '10' + +# To set specialty macros, such as %vendor, please run 'rocky-mock-macros-setup' diff --git a/etc/mock/templates/rl-10-lookahead-riscv64.tpl b/etc/mock/templates/rl-10-lookahead-riscv64.tpl new file mode 100644 index 0000000..d0f8ce7 --- /dev/null +++ b/etc/mock/templates/rl-10-lookahead-riscv64.tpl @@ -0,0 +1,38 @@ + +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 }} + +[bootstrap] +name=bootstrap +baseurl=... +enabled=1 +gpgcheck=false +repo_gpgcheck=false +priority=1 + +[riscv_f40] +name=riscv_f40 +baseurl=http://fedora.riscv.rocks/repos-dist/f40/latest/riscv64/ +enabled=1 +gpgcheck=false +repo_gpgcheck=false +priority=90 + +"""