From d15381e8b9b5a41059e86c91dfffab3de5f0a733 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= Date: Tue, 25 Mar 2014 18:33:20 +0100 Subject: [PATCH] Support RHEL 7 platform. --- epel-7-x86_64.cfg.template | 58 ++++++++++++++++++++++++++++++++++++++++++++++ mock.sh | 6 +++++ 2 files changed, 64 insertions(+) create mode 100644 epel-7-x86_64.cfg.template diff --git a/epel-7-x86_64.cfg.template b/epel-7-x86_64.cfg.template new file mode 100644 index 0000000..3091941 --- /dev/null +++ b/epel-7-x86_64.cfg.template @@ -0,0 +1,58 @@ +config_opts['root'] = 'epel-7-x86_64' +config_opts['target_arch'] = 'x86_64' +config_opts['legal_host_arches'] = ('x86_64',) +config_opts['chroot_setup_cmd'] = 'groupinstall buildsys-build' +config_opts['dist'] = 'el7' # only useful for --resultdir variable subst + +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= + +# repos +[el] +name=el +mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=rhel-7-beta&arch=x86_64 +failovermethod=priority +@EXCLUDES@ + +[epel] +name=epel +mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-7&arch=x86_64 +failovermethod=priority +@EXCLUDES@ + +[testing] +name=epel-testing +enabled=0 +mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=testing-epel7&arch=x86_64 +failovermethod=priority +@EXCLUDES@ + +[epel-debug] +name=epel-debug +mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-debug-7&arch=x86_64 +failovermethod=priority +enabled=0 +@EXCLUDES@ + +[local] +name=Local +baseurl=file://@PWD@/@REPO@ +protect=1 +priority=40 + +[local-ext] +name=External +baseurl=file://@PWD@/@REPO_EXT@ +protect=1 +priority=40 +""" diff --git a/mock.sh b/mock.sh index 5317d17..be701d2 100755 --- a/mock.sh +++ b/mock.sh @@ -8,6 +8,9 @@ # moduser -a -A mock $LOGNAME # usermod -a -G mock $LOGNAME # +# tools: mock rpm-build rpm-sign +# pre-requires for L&B: ant gsoap-devel +# # ==== pbuilder ==== # # cat > /root/.pbuilderrc <