From 84d3e9d94198d71ab86789c112c2a6b85467ba9a Mon Sep 17 00:00:00 2001 From: Johnny Hughes Date: May 13 2015 19:06:21 +0000 Subject: add repo for c7.common to build RHEL Common SRPMs --- diff --git a/mock/c7.common-i386.cfg b/mock/c7.common-i386.cfg new file mode 120000 index 0000000..6c43ff1 --- /dev/null +++ b/mock/c7.common-i386.cfg @@ -0,0 +1 @@ +c7.common-i686.cfg \ No newline at end of file diff --git a/mock/c7.common-i686.cfg b/mock/c7.common-i686.cfg new file mode 100644 index 0000000..e22f60b --- /dev/null +++ b/mock/c7.common-i686.cfg @@ -0,0 +1,84 @@ +config_opts['root'] = 'c7.common-i686' +config_opts['basedir'] = 'MOCKROOT' +config_opts['target_arch'] = 'i686' +config_opts['legal_host_arches'] = ('i386', 'i486', 'i586', 'i686', 'x86_64',) +config_opts['chroot_setup_cmd'] = 'install bash bzip2 coreutils cpio diffutils system-release findutils gawk gcc gcc-c++ grep gzip info make patch redhat-rpm-config rpm-build sed shadow-utils tar unzip util-linux which xz' +config_opts['dist'] = 'el7' # only useful for --resultdir variable subst + +config_opts['%centos_ver'] = "7" +config_opts['macros']['%centos_ver'] = "7" +config_opts['macros']['%rhel'] = "7" +config_opts['macros']['%el7'] = "1" +config_opts['macros']['%redhat'] = "7" +config_opts['macros']['%vendor'] = "CentOS" +config_opts['macros']['%packager'] = "CentOS BuildSystem " +config_opts['macros']['%_vendor'] = "redhat" +config_opts['macros']['%_vendor_host'] = "redhat" +config_opts['macros']['%_host'] = "i386-redhat-linux-gnu" + +config_opts['yum.conf'] = """ +[main] +cachedir=/var/cache/yum +debuglevel=1 +reposdir=/dev/null +logfile=/var/log/yum.log +retries=20 +obsoletes=1 +gpgcheck=0 +assumeyes=1 +syslog_ident=mock +syslog_device= + +exclude=*.x86_64 redhat-logos redhat-release* fakesystemd systemd-container* + +# repos +[c7.00.04] +name=c7.00.04 +enabled=1 +cost=1750 +baseurl=http://repohost/tmp/repo/c7.00.04/ + +[c7.00.03] +name=c7.00.03 +enabled=1 +cost=2000 +baseurl=http://repohost/tmp/repo/c7.00.03/ + +[c7.00.02] +name=c7.00.02 +enabled=1 +cost=2250 +baseurl=http://repohost/tmp/repo/c7.00.02/ + +[c7.00.00] +name=c7.00.00 +enabled=1 +cost=1500 +baseurl=http://repohost/tmp/repo/c7.00.00/ + +[c7.common] +name=c7.common +enabled=1 +cost=500 +baseurl=http://repohost/tmp/repo/c7.common/ + +[c7-updates] +name=c7-updates +enabled=1 +cost=1250 +baseurl=http://repohost/tmp/repo/c7-updates/ + +[c7.01.00] +name=c7.01.00 +enabled=1 +cost=1000 +baseurl=http://repohost/tmp/repo/c7.01.00/ + +[c7.01.u] +name=c7.01.u +enabled=1 +cost=750 +baseurl=http://repohost/tmp/repo/c7.01.u/ + + +""" diff --git a/mock/c7.common-noarch.cfg b/mock/c7.common-noarch.cfg new file mode 120000 index 0000000..09790f1 --- /dev/null +++ b/mock/c7.common-noarch.cfg @@ -0,0 +1 @@ +c7.common-x86_64.cfg \ No newline at end of file diff --git a/mock/c7.common-x86_64.cfg b/mock/c7.common-x86_64.cfg new file mode 100644 index 0000000..81fd9a5 --- /dev/null +++ b/mock/c7.common-x86_64.cfg @@ -0,0 +1,92 @@ +config_opts['root'] = 'c7.common-x86_64' +config_opts['basedir'] = 'MOCKROOT' +config_opts['target_arch'] = 'x86_64' +config_opts['legal_host_arches'] = ('x86_64',) +config_opts['chroot_setup_cmd'] = 'install bash bzip2 coreutils cpio diffutils system-release findutils gawk gcc gcc-c++ grep gzip info make patch redhat-rpm-config rpm-build sed shadow-utils tar unzip util-linux which xz' +config_opts['dist'] = 'el7' # only useful for --resultdir variable subst + +config_opts['%centos_ver'] = "7" +config_opts['macros']['%centos_ver'] = "7" +config_opts['macros']['%rhel'] = "7" +config_opts['macros']['%el7'] = "1" +config_opts['macros']['%redhat'] = "7" +config_opts['macros']['%vendor'] = "CentOS" +config_opts['macros']['%packager'] = "CentOS BuildSystem " +config_opts['macros']['%_vendor'] = "redhat" +config_opts['macros']['%_vendor_host'] = "redhat" +config_opts['macros']['%_host'] = "x86_64-redhat-linux-gnu" + + +config_opts['yum.conf'] = """ +[main] +cachedir=/var/cache/yum +debuglevel=1 +reposdir=/dev/null +logfile=/var/log/yum.log +retries=20 +obsoletes=1 +gpgcheck=0 +assumeyes=1 +syslog_ident=mock +syslog_device= + +includepkgs=*.x86_64 *.noarch glibc.i686 glibc-devel.i686 nss-softokn-freebl*.i686 +exclude=redhat-logos redhat-release* fakesystemd systemd-container* + +# repos +[c7.00.04] +name=c7.00.04 +enabled=1 +cost=1500 +baseurl=http://repohost/tmp/repo/c7.00.04/ + +includepkgs=*.x86_64 *.noarch glibc.i686 glibc-devel.i686 nss-softokn-freebl*.i686 + +[c7.00.03] +name=c7.00.03 +enabled=1 +cost=1750 +baseurl=http://repohost/tmp/repo/c7.00.03/ +includepkgs=*.x86_64 *.noarch glibc.i686 glibc-devel.i686 nss-softokn-freebl*.i686 + +[c7.00.02] +name=c7.00.02 +enabled=1 +cost=2000 +baseurl=http://repohost/tmp/repo/c7.00.02/ +includepkgs=*.x86_64 *.noarch glibc.i686 glibc-devel.i686 nss-softokn-freebl*.i686 + +[c7.common] +name=c7.common +enabled=1 +cost=500 +baseurl=http://repohost/tmp/repo/c7.common/ +includepkgs=*.x86_64 *.noarch glibc.i686 glibc-devel.i686 nss-softokn-freebl*.i686 +exclude=*.i686 + +[c7-updates] +name=c7-updates +enabled=1 +cost=1250 +baseurl=http://repohost/tmp/repo/c7-updates/ +includepkgs=*.x86_64 *.noarch glibc.i686 glibc-devel.i686 nss-softokn-freebl*.i686 +exclude=*.i686 + +[c7.01.00] +name=c7.01.00 +enabled=1 +cost=1000 +baseurl=http://repohost/tmp/repo/c7.01.00/ +includepkgs=*.x86_64 *.noarch glibc.i686 glibc-devel.i686 nss-softokn-freebl*.i686 +exclude=*.i686 + + +[c7.01.u] +name=c7.01.u +enabled=1 +cost=750 +baseurl=http://repohost/tmp/repo/c7.01.u/ +includepkgs=*.x86_64 *.noarch glibc.i686 glibc-devel.i686 nss-softokn-freebl*.i686 +exclude=*.i686 + +"""