summaryrefslogtreecommitdiffstats
path: root/pharos-validator/rpm/buildasroot.sh
diff options
context:
space:
mode:
authorTrevor Bramwell <tbramwell@linuxfoundation.org>2017-09-22 12:23:36 -0700
committerTrevor Bramwell <tbramwell@linuxfoundation.org>2017-09-22 12:23:36 -0700
commit4b269fba0ca273dfa3acf44c9f5490f01e0c3d87 (patch)
tree909b5262b46306eb78327e535f2e14120e45116a /pharos-validator/rpm/buildasroot.sh
parentd46ab54583a6c20bfa5bea581f512474f488e788 (diff)
Rename pharos-dashboard and pharos-validator
As subdirectories of the pharos-tools repo, there is little need to keep the pharos prefix. Change-Id: Ica3d79411f409df638647300036c0664183c2725 Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
Diffstat (limited to 'pharos-validator/rpm/buildasroot.sh')
-rwxr-xr-xpharos-validator/rpm/buildasroot.sh32
1 files changed, 0 insertions, 32 deletions
diff --git a/pharos-validator/rpm/buildasroot.sh b/pharos-validator/rpm/buildasroot.sh
deleted file mode 100755
index 94076c2..0000000
--- a/pharos-validator/rpm/buildasroot.sh
+++ /dev/null
@@ -1,32 +0,0 @@
-#! /usr/bin/env bash
-# Builds the pharosvalidator package as root (it must be built as root)
-# then copies the finished package to /tmp. The script can either be called
-# as root or with sudo
-
-tarball=pharos-validator-1.tar.gz
-specfile=pharosvalidator.spec
-arch=x86_64
-
-if [ "$(id -u)" != 0 ]; then
- echo "This script must be run as root (or with sudo)"
- exit 1
-fi;
-
-rpmdev-setuptree
-
-cp "$specfile" ~/rpmbuild/SPECS/
-
-# Prepare the "source package" for the rpm build process using .spec file
-pushd ../../
-tar -cvf "$tarball" pharos-validator
-cp "$tarball" ~/rpmbuild/SOURCES
-popd
-
-
-cd ~/rpmbuild/
-
-rpmlint SPECS/"$specfile"
-printf "\n\nRPM BUILD PROCESS\n\n"
-rpmbuild -ba SPECS/"$specfile"
-
-cp -rfv RPMS/"$arch"/* /tmp/