Support RHEL 7 platform.
authorFrantišek Dvořák <valtri@civ.zcu.cz>
Tue, 25 Mar 2014 17:33:20 +0000 (18:33 +0100)
committerFrantišek Dvořák <valtri@civ.zcu.cz>
Tue, 25 Mar 2014 17:33:20 +0000 (18:33 +0100)
epel-7-x86_64.cfg.template [new file with mode: 0644]
mock.sh

diff --git a/epel-7-x86_64.cfg.template b/epel-7-x86_64.cfg.template
new file mode 100644 (file)
index 0000000..3091941
--- /dev/null
@@ -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 (executable)
--- 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 <<EOF
@@ -59,6 +62,9 @@ if test -z "$CONF"; then
                major=`rpm -q fedora-release | sed 's/fedora-release-\([0-9]*\)-.*/\1/'`
                CONF=fed-$major-$ARCH
                ;;
+       Red*Hat*)
+               CONF=epel-7-$ARCH
+               ;;
        *)
                echo "Unknown OS '$OS'"
                exit 1