amoralej / centos / cbs-tools

Forked from centos/cbs-tools 2 years ago
Clone
Blob Blame Raw
#!/bin/bash

# Create external-repos

koji add-external-repo centos6-os "http://mirror.centos.org/centos/6/extras/\$arch/"
koji add-external-repo centos6-updates "http://mirror.centos.org/centos/6/updates/\$arch/"
koji add-external-repo centos6-extras "http://mirror.centos.org/centos/6/extras/\$arch/"

koji add-external-repo centos7-os "http://mirror.centos.org/centos/7/extras/\$arch/"
koji add-external-repo centos7-updates "http://mirror.centos.org/centos/7/updates/\$arch/"
koji add-external-repo centos7-extras "http://mirror.centos.org/centos/7/extras/\$arch/"
koji add-external-repo centos7-cr "http://mirror.centos.org/centos/7/cr/\$arch/"

# Create buildsys tags

koji add-tag buildsys6
koji add-tag --arches "x86_64" buildsys6-build
koji add-external-repo --tag=buildsys6-build centos6-updates
koji add-external-repo --tag=buildsys6-build centos6-os
koji add-group  buildsys6-build build
koji add-group  buildsys6-build srpm-build
koji add-group-pkg buildsys6-build build bash bzip2 coreutils cpio diffutils redhat-release findutils gawk gcc gcc-c++ grep gzip info make patch redhat-rpm-config rpm-build sed shadow-utils tar unzip util-linux-ng which tar buildsys-tools
koji add-group-pkg buildsys6-build srpm-build srpm-build bash buildsys-macros curl cvs redhat-release gnupg make redhat-rpm-config rpm-build shadow-utils tar buildsys-tools
koji add-target buildsys6 buildsys6-build buildsys6


koji add-tag buildsys7
koji add-tag --arches "x86_64" buildsys7-build
koji add-external-repo --tag=buildsys7-build centos7-updates
koji add-external-repo --tag=buildsys7-build centos7-os
koji add-group  buildsys7-build build
koji add-group  buildsys7-build srpm-build
koji add-group-pkg buildsys7-build build bash bzip2 coreutils cpio diffutils redhat-release findutils gawk gcc gcc-c++ grep gzip info make patch redhat-rpm-config rpm-build sed shadow-utils tar unzip util-linux-ng which tar buildsys-tools
koji add-group-pkg buildsys7-build srpm-build srpm-build bash buildsys-macros curl cvs redhat-release gnupg make redhat-rpm-config rpm-build shadow-utils tar buildsys-tools
koji add-target buildsys7 buildsys7-build buildsys7

# Create fake sigs

/opt/cbs-tools/scripts/create_sig.sh -s oranges -p test -r 10 -d 6 -t el6 -x
/opt/cbs-tools/scripts/create_sig.sh -s oranges -p test -r 10 -d 7 -t el7 -x