From ae2085d43b6e20b0401055ee613af1c31500abd4 Mon Sep 17 00:00:00 2001 From: Erich Cordoba Date: Thu, 19 Jul 2018 22:36:49 -0500 Subject: [PATCH] Adding comps.xml and mock.proto default files. These files are needed to setup the cgcs-centos-repo, in a first approach both were planned to be created in the fly by the generator- cgcs-centos-repo script, however having them in a location and copied by the script seems to be a better solution. Story: 2002936 Task: 23033 Change-Id: I301925434e005461fe39f4bfcbf0ee9bc936ef7c Signed-off-by: Erich Cordoba --- build-tools/repo_files/comps.xml | 38 ++++++++++++++++++++ build-tools/repo_files/mock.cfg.proto | 52 +++++++++++++++++++++++++++ 2 files changed, 90 insertions(+) create mode 100644 build-tools/repo_files/comps.xml create mode 100644 build-tools/repo_files/mock.cfg.proto diff --git a/build-tools/repo_files/comps.xml b/build-tools/repo_files/comps.xml new file mode 100644 index 00000000..bc0cd41d --- /dev/null +++ b/build-tools/repo_files/comps.xml @@ -0,0 +1,38 @@ + + + + + buildsys-build + Buildsystem building group + + false + false + + bash + bzip2 + coreutils + cpio + diffutils + epel-release + epel-rpm-macros + findutils + gawk + gcc + gcc-c++ + grep + gzip + info + make + patch + redhat-rpm-config + rpm-build + sed + shadow-utils + tar + unzip + util-linux-ng + which + xz + + + diff --git a/build-tools/repo_files/mock.cfg.proto b/build-tools/repo_files/mock.cfg.proto new file mode 100644 index 00000000..6271c13b --- /dev/null +++ b/build-tools/repo_files/mock.cfg.proto @@ -0,0 +1,52 @@ +config_opts['root'] = 'BUILD_ENV/mock' +config_opts['target_arch'] = 'x86_64' +config_opts['legal_host_arches'] = ('x86_64',) +config_opts['chroot_setup_cmd'] = 'install @buildsys-build' +config_opts['dist'] = 'el7' # only useful for --resultdir variable subst +config_opts['releasever'] = '7' +config_opts['rpmbuild_networking'] = False + +config_opts['yum.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= + +# repos +[local-std] +name=local-std +baseurl=LOCAL_BASE/MY_BUILD_DIR/std/rpmbuild/RPMS +enabled=1 +skip_if_unavailable=1 +metadata_expire=0 + +[local-rt] +name=local-rt +baseurl=LOCAL_BASE/MY_BUILD_DIR/rt/rpmbuild/RPMS +enabled=1 +skip_if_unavailable=1 +metadata_expire=0 + +[local-installer] +name=local-installer +baseurl=LOCAL_BASE/MY_BUILD_DIR/installer/rpmbuild/RPMS +enabled=1 +skip_if_unavailable=1 +metadata_expire=0 + +[TisCentos7Distro] +name=Tis-Centos-7-Distro +enabled=1 +baseurl=LOCAL_BASE/MY_REPO_DIR/cgcs-centos-repo/Binary +failovermethod=priority +exclude=kernel-devel libvirt-devel + + +"""