summaryrefslogtreecommitdiffstats
path: root/packaging/rpm/rpmbuild.sh
blob: d03a2ad22bae7288666a6fd9b3699a62c1c8f094 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash
set -xe
DIR=$(dirname $0)
DIR=$(readlink -f $DIR)
ZIPDIR=${DIR}/../../vpp-integration/minimal-distribution/target/
ZIPFILE=${ZIPDIR}/vpp-integration-distribution-1.16.9-RC0-hc.zip
mkdir -p ${DIR}/SOURCES/
cp $ZIPFILE ${DIR}/SOURCES/
cp ${DIR}/honeycomb.spec ${DIR}/SOURCES/
cd ${DIR}
rpmbuild -bb --define "_topdir ${DIR}"  ${DIR}/honeycomb.spec
cd -