config_opts['package_manager'] = 'dnf' config_opts['use_nspawn'] = False #config_opts['nspawn_args] = config_opts['use_bootstrap_image'] = False config_opts['bootstrap_image_ready'] = False config_opts['bootstrap_image'] = 'quay.io/rockylinux/rockylinux:8' # see bugs https://bugzilla.redhat.com/show_bug.cgi?id=2076847 and https://bugzilla.redhat.com/show_bug.cgi?id=2076847 config_opts['plugin_conf']["copy_enable"] = True config_opts['plugin_conf']['copy_opts']= { 'files': [ ("/etc/mock/perl.prov", "/usr/lib/rpm/redhat/perl.prov"), ("/etc/mock/perl.prov", "/usr/lib/rpm/perl.prov"), ], } config_opts['root'] = 'smeserver-11-x86_64' config_opts['target_arch'] = 'x86_64' config_opts['dist'] = '.el8.sme' config_opts['chroot_setup_cmd'] = 'install glibc epel-rpm-macros bash bzip2 coreutils cpio diffutils findutils gawk gcc gcc-c++ grep gzip info make patch redhat-rpm-config rpm-build sed shadow-utils tar unzip util-linux which xz ' #' install @buildsys-build @buildsys scl-utils-build python27-build epel-rpm-macros ' # @buildsys-build @buildsys #so perl will not complain config_opts['environment']['LANG'] = os.environ.setdefault('LANG', 'en_US.UTF-8') #disable name resolution https://fedoraproject.org/wiki/Using_Mock_to_test_package_builds#Disable_domain_name_resolution #config_opts['use_host_resolv'] = False config_opts['plugin_conf']['ccache_opts']['dir'] = "%(cache_topdir)s/ccache/x86_64/" config_opts['macros']['%distribution'] = "SME Server v11" config_opts['macros']['%packager'] = "Koozali.org " config_opts['macros']['%vendor'] = "Koozali.org " config_opts['macros']['%dist'] = ".el8.sme" config_opts['module_setup_commands'] = [ ('enable', 'php:remi-8.3,mariadb:10.5,python36:3.6'), ('install', 'php:remi-8.3'), ] config_opts['dnf.conf'] = """ [main] keepcache=1 cachedir=/var/cache/yum debuglevel=4 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 }} [BaseOs] name=BaseOs baseurl = https://dl.rockylinux.org/pub/rocky/8/BaseOS/x86_64/os/ #baseurl=http://buildsys.koozali.org/build/7/os/x86_64 #exclude=buildsys-macros [koji-dist-sme11-os-build] name=dist-sme11-os-build baseurl=http://koji.koozali.org/kojifiles/repos-dist/dist-sme11-os/latest/x86_64 [appstream] baseurl = https://dl.rockylinux.org/pub/rocky/8/AppStream/x86_64/os/ #mirrorlist = https://mirrors.rockylinux.org/mirrorlist?arch=x86_64&repo=AppStream-8 name = Rocky appstream [powertools] baseurl = https://dl.rockylinux.org/pub/rocky/8/PowerTools/x86_64/os/ mirrorlist = https://mirrors.rockylinux.org/mirrorlist?arch=x86_64&repo=PowerTools-8 name = Rocky powertools [smeos] name=smeos baseurl=http://buildsys.koozali.org/build/11/smeos/x86_64 exclude=buildsys-macros [epel] name=epel baseurl = https://muug.ca/mirror/fedora-epel/8/Everything/x86_64/ [openfusion] name=openfusion baseurl=http://repo.openfusion.net/centos8-x86_64 #includepkgs=perl-Lingua* perl-Snowball* perl-Text-German perl-ExtUtils* perl-MooX* perl-Scalar-List-Utils perl-Throwable perl-Moose perl-Try-Tiny perl-Devel-StackTrace perl-Devel-OverloadInfo perl-Sub-Name perl-Module-Runtime-Conflicts perl-Test-File-ShareDir perl-Test-Exception perl-Test-Output perl-Net-IDN-Encode perl-Path-Tiny perl-Class-Tiny perl-Unicode-UTF8 perl-Net-Server [rpmfusion] name=rpmfusion baseurl=http://download1.rpmfusion.org/free/el/updates/8/x86_64 #includepkgs=ffmpeg* libva* x264-libs xvidcore librtmp buildsys-build-rpmfusion-* libmpeg2* mpeg2dec [remi-safe] name=remi-safe baseurl=http://rpms.remirepo.net/enterprise/8/safe/x86_64/ [remi] name=remi baseurl=http://rpms.remirepo.net/enterprise/8/remi/x86_64/ [remi-modular] name=remi-modular baseurl=http://rpms.remirepo.net/enterprise/8/modular/x86_64/ """