diff --git a/SOURCES/msvsphere+epel-9-x86_64.cfg b/SOURCES/msvsphere+epel-9-x86_64.cfg new file mode 100644 index 0000000..fe52be2 --- /dev/null +++ b/SOURCES/msvsphere+epel-9-x86_64.cfg @@ -0,0 +1,5 @@ +include('msvsphere-9-x86_64.cfg') +include('templates/epel-9.tpl') + +config_opts['root'] = "msvsphere+epel-9-{{ target_arch }}" +config_opts['description'] = 'MSVSphere 9 + EPEL' diff --git a/SOURCES/msvsphere-9-x86_64.cfg b/SOURCES/msvsphere-9-x86_64.cfg new file mode 100644 index 0000000..e2ee370 --- /dev/null +++ b/SOURCES/msvsphere-9-x86_64.cfg @@ -0,0 +1,6 @@ +include('templates/msvsphere-9.tpl') + +config_opts['root'] = 'msvsphere-9-x86_64' +config_opts['description'] = 'MSVSphere 9' +config_opts['target_arch'] = 'x86_64' +config_opts['legal_host_arches'] = ('x86_64',) diff --git a/SOURCES/msvsphere-9.tpl b/SOURCES/msvsphere-9.tpl new file mode 100644 index 0000000..5e7ab1d --- /dev/null +++ b/SOURCES/msvsphere-9.tpl @@ -0,0 +1,153 @@ +config_opts['chroot_setup_cmd'] = 'install bash bzip2 coreutils cpio diffutils redhat-release findutils gawk glibc-minimal-langpack grep gzip info patch redhat-rpm-config rpm-build sed shadow-utils tar unzip util-linux which xz' +config_opts['dist'] = 'el9.inferit' # only useful for --resultdir variable subst +config_opts['releasever'] = '9' +config_opts['package_manager'] = 'dnf' +config_opts['extra_chroot_dirs'] = [ '/run/lock', ] +config_opts['bootstrap_image'] = 'docker.io/inferit/msvsphere' + + +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:el9 +user_agent={{ user_agent }} + +[appstream] +name=MSVSphere $releasever - AppStream +mirrorlist=https://mirrors.inferitos.ru/mirrorlist/$releasever/appstream +# baseurl=https://repo.inferitos.ru/msvsphere/$releasever/AppStream/$basearch/os/ +enabled=1 +gpgcheck=1 +countme=1 +gpgkey=file:///usr/share/distribution-gpg-keys/msvsphere/RPM-GPG-KEY-MSVSphere-9 +metadata_expire=86400 +enabled_metadata=1 + +[appstream-debug] +name=MSVSphere $releasever - AppStream - Debug +mirrorlist=https://mirrors.inferitos.ru/mirrorlist/$releasever/appstream-debug +# baseurl=https://repo.inferitos.ru/msvsphere/$releasever/AppStream/debug/$basearch/ +enabled=0 +gpgcheck=1 +gpgkey=file:///usr/share/distribution-gpg-keys/msvsphere/RPM-GPG-KEY-MSVSphere-9 +metadata_expire=86400 +enabled_metadata=0 + +[appstream-source] +name=MSVSphere $releasever - AppStream - Source +mirrorlist=https://mirrors.inferitos.ru/mirrorlist/$releasever/appstream-source +# baseurl=https://repo.inferitos.ru/msvsphere/$releasever/AppStream/Source/ +enabled=0 +gpgcheck=1 +gpgkey=file:///usr/share/distribution-gpg-keys/msvsphere/RPM-GPG-KEY-MSVSphere-9 +metadata_expire=86400 +enabled_metadata=0 + +[baseos] +name=MSVSphere $releasever - BaseOS +mirrorlist=https://mirrors.inferitos.ru/mirrorlist/$releasever/baseos +# baseurl=https://repo.inferitos.ru/msvsphere/$releasever/BaseOS/$basearch/os/ +enabled=1 +gpgcheck=1 +countme=1 +gpgkey=file:///usr/share/distribution-gpg-keys/msvsphere/RPM-GPG-KEY-MSVSphere-9 +metadata_expire=86400 +enabled_metadata=1 + +[baseos-debug] +name=MSVSphere $releasever - BaseOS - Debug +mirrorlist=https://mirrors.inferitos.ru/mirrorlist/$releasever/baseos-debug +# baseurl=https://repo.inferitos.ru/msvsphere/$releasever/BaseOS/debug/$basearch/ +enabled=0 +gpgcheck=1 +gpgkey=file:///usr/share/distribution-gpg-keys/msvsphere/RPM-GPG-KEY-MSVSphere-9 +metadata_expire=86400 +enabled_metadata=0 + +[baseos-source] +name=MSVSphere $releasever - BaseOS - Source +mirrorlist=https://mirrors.inferitos.ru/mirrorlist/$releasever/baseos-source +# baseurl=https://repo.inferitos.ru/msvsphere/$releasever/BaseOS/Source/ +enabled=0 +gpgcheck=1 +gpgkey=file:///usr/share/distribution-gpg-keys/msvsphere/RPM-GPG-KEY-MSVSphere-9 +metadata_expire=86400 +enabled_metadata=0 + +[crb] +name=MSVSphere $releasever - CRB +mirrorlist=https://mirrors.inferitos.ru/mirrorlist/$releasever/crb +# baseurl=https://repo.inferitos.ru/msvsphere/$releasever/CRB/$basearch/os/ +enabled=1 +gpgcheck=1 +countme=1 +gpgkey=file:///usr/share/distribution-gpg-keys/msvsphere/RPM-GPG-KEY-MSVSphere-9 +metadata_expire=86400 +enabled_metadata=1 + +[crb-debug] +name=MSVSphere $releasever - CRB - Debug +mirrorlist=https://mirrors.inferitos.ru/mirrorlist/$releasever/crb-debug +# baseurl=https://repo.inferitos.ru/msvsphere/$releasever/CRB/debug/$basearch/ +enabled=0 +gpgcheck=1 +gpgkey=file:///usr/share/distribution-gpg-keys/msvsphere/RPM-GPG-KEY-MSVSphere-9 +metadata_expire=86400 +enabled_metadata=0 + +[crb-source] +name=MSVSphere $releasever - CRB - Source +mirrorlist=https://mirrors.inferitos.ru/mirrorlist/$releasever/crb-source +# baseurl=https://repo.inferitos.ru/msvsphere/$releasever/CRB/Source/ +enabled=0 +gpgcheck=1 +gpgkey=file:///usr/share/distribution-gpg-keys/msvsphere/RPM-GPG-KEY-MSVSphere-9 +metadata_expire=86400 +enabled_metadata=0 + +[extras] +name=MSVSphere $releasever - Extras +mirrorlist=https://mirrors.inferitos.ru/mirrorlist/$releasever/extras +# baseurl=https://repo.inferitos.ru/msvsphere/$releasever/Extras/$basearch/os/ +enabled=1 +gpgcheck=1 +countme=1 +gpgkey=file:///usr/share/distribution-gpg-keys/msvsphere/RPM-GPG-KEY-MSVSphere-9 +metadata_expire=86400 +enabled_metadata=1 + +[extras-debug] +name=MSVSphere $releasever - Extras - Debug +mirrorlist=https://mirrors.inferitos.ru/mirrorlist/$releasever/extras-debug +# baseurl=https://repo.inferitos.ru/msvsphere/$releasever/Extras/debug/$basearch/ +enabled=0 +gpgcheck=1 +gpgkey=file:///usr/share/distribution-gpg-keys/msvsphere/RPM-GPG-KEY-MSVSphere-9 +metadata_expire=86400 +enabled_metadata=0 + +[extras-source] +name=MSVSphere $releasever - Extras - Source +mirrorlist=https://mirrors.inferitos.ru/mirrorlist/$releasever/extras-source +# baseurl=https://repo.inferitos.ru/msvsphere/$releasever/Extras/Source/ +enabled=0 +gpgcheck=1 +gpgkey=file:///usr/share/distribution-gpg-keys/msvsphere/RPM-GPG-KEY-MSVSphere-9 +metadata_expire=86400 +enabled_metadata=0 + +""" diff --git a/SPECS/mock-core-configs.spec b/SPECS/mock-core-configs.spec index 4663056..4dae3d6 100644 --- a/SPECS/mock-core-configs.spec +++ b/SPECS/mock-core-configs.spec @@ -4,7 +4,7 @@ Name: mock-core-configs Version: 38.6 -Release: 1%{?dist} +Release: 1%{?dist}.inferit Summary: Mock core config files basic chroots License: GPL-2.0-or-later @@ -15,6 +15,10 @@ URL: https://github.com/rpm-software-management/mock/ # git reset --hard %%{name}-%%{version} # tito build --tgz Source: https://github.com/rpm-software-management/mock/releases/download/%{name}-%{version}-1/%{name}-%{version}.tar.gz +## MSVSphere +Source100: msvsphere-9.tpl +Source101: msvsphere-9-x86_64.cfg +Source102: msvsphere+epel-9-x86_64.cfg BuildArch: noarch # The mock.rpm requires this. Other packages may provide this if they tend to @@ -37,13 +41,15 @@ Requires(post): sed %description Mock configuration files which allow you to create chroots for Alma Linux, -Amazon Linux, CentOS, CentOS Stream, EuroLinux, Fedora, Fedora EPEL, Mageia, +Amazon Linux, CentOS, CentOS Stream, EuroLinux, Fedora, Fedora EPEL, Mageia, MSVSphere, Navy Linux, OpenMandriva Lx, openSUSE, Oracle Linux, Red Hat Enterprise Linux, Rocky Linux and various other specific or combined chroots. %prep %setup -q +cp %{SOURCE100} etc/mock/templates +cp %{SOURCE101} %{SOURCE102} etc/mock/ %build @@ -127,6 +133,9 @@ cfg=$distro_id+epel-$ver-$mock_arch.cfg %if 0%{?mageia} cfg=mageia-$ver-$mock_arch.cfg %endif +%if 0%{?msvsphere} +cfg=msvsphere-$ver-$mock_arch.cfg +%endif if [ -e %{_sysconfdir}/mock/$cfg ]; then if [ "$(readlink %{_sysconfdir}/mock/default.cfg)" != "$cfg" ]; then @@ -144,7 +153,8 @@ fi %ghost %config(noreplace,missingok) %{_sysconfdir}/mock/default.cfg %changelog -* Thu Jul 06 2023 Sergey Cherevko - 38.6-1 +* Thu Jul 06 2023 Sergey Cherevko - 38.6-1.inferit +- Add MSVSphere and MSVSphere+EPEL mock configs - Rebuilt for MSVSphere 9.2 * Mon Jun 05 2023 Pavel Raiskup 38.6-1