summaryrefslogtreecommitdiffstats
path: root/packaging/rpm/rpmbuild.sh
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/rpm/rpmbuild.sh')
-rwxr-xr-xpackaging/rpm/rpmbuild.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/packaging/rpm/rpmbuild.sh b/packaging/rpm/rpmbuild.sh
new file mode 100755
index 000000000..b4a0d69ce
--- /dev/null
+++ b/packaging/rpm/rpmbuild.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+set -e
+DIR=$(dirname $0)
+DIR=$(readlink -f $DIR)
+ZIPDIR=${DIR}/../../v3po/karaf/target/
+ZIPFILE=${ZIPDIR}/v3po-karaf-1.0.0-SNAPSHOT.zip
+mkdir -p ${DIR}/SOURCES/
+cp $ZIPFILE ${DIR}/SOURCES/
+cp ${DIR}/honeycomb.spec ${DIR}/SOURCES/
+rpmbuild -bb --define "_topdir ${DIR}" honeycomb.spec