Files
odo/scripts/rpm-local-build.sh
Mohammed Ahmed 46b512ee21 Building redistributable only on x86_64 and updating golang version to 1.13 (#3464)
* Building redistributable only on x86_64

We dont need redistributable package building
on multiple architectures as it is happening right
now (case in point internal scratch build)

Eg:
  - openshift-odo-redistributable-1.2.3-1.el8.s390x.rpm
  - openshift-odo-redistributable-1.2.3-1.el8.ppc64le.rpm
  - openshift-odo-redistributable-1.2.3-1.el8.x86_64.rpm

We only need last one as individual rpms for specific architectures
is fine but not the redistributable ones.

Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>

* Updating golang version to 1.13

Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
2020-07-08 22:59:10 +02:00

19 lines
527 B
Bash
Executable File

#!/usr/bin/env bash
set -e
if [[ ! -d dist/rpmbuild ]]; then
echo "Cannot build as artifacts are not generated. Run scrips/rpm-prepare.sh first"
exit 1
fi
echo "Cleaning up old rpmcontent"
rm -f ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
echo "Copying content to local rpmbuild"
cp -avrf dist/rpmbuild/SOURCES/* $HOME/rpmbuild/SOURCES/
cp -avrf dist/rpmbuild/SPECS/* $HOME/rpmbuild/SPECS/
echo "Building locally"
rpmbuild -ba $HOME/rpmbuild/SPECS/openshift-odo.spec