8 BASEKERNEL=3.10.0-229.14.1.el7.x86_64
9 BVDEFINE=--define="buildversion $BUILD_NUMBER"
10 KMDEFINE=--define="kversion $BASEKERNEL"
16 SOURCE_FILE=$(ls *.tar.gz)
18 mock -r $TARGET --resultdir target/srpm --buildsrpm --spec rhel/openvswitch-gbp-rhel.spec --sources $SOURCE_FILE "$BVDEFINE" "$KMDEFINE"
19 mock -r $TARGET --resultdir target/srpm --buildsrpm --spec rhel/openvswitch-gbp-kmod-rhel.spec --sources $SOURCE_FILE "$BVDEFINE" "$KMDEFINE"
20 mockchain -r $TARGET -l target/rpm -m --nocheck -m "$BVDEFINE" -m "$KMDEFINE" target/srpm/*.src.rpm
22 find target/rpm/results -name "*.rpm" -exec mv {} . \;