github.com/choria-io/go-choria@v0.28.1-0.20240416190746-b3bf9c7d5a45/packager/templates/el/global/build.sh (about) 1 #!/bin/sh 2 3 set -x 4 5 TARGET_ARCH="{{cpkg_target_arch}}" 6 TARBALL="{{cpkg_tarball}}" 7 8 if [ ! -z $TARGET_ARCH ] 9 then 10 rpmbuild --target "${TARGET_ARCH}" -ta "${TARBALL}" 11 else 12 rpmbuild -ta "${TARBALL}" 13 fi