diff options
author | François Andriot <albator78@libertysurf.fr> | 2023-05-06 10:11:37 +0200 |
---|---|---|
committer | François Andriot <albator78@libertysurf.fr> | 2023-05-06 10:11:37 +0200 |
commit | 0edc1511e1134e66172a80f8d69389f246ff867e (patch) | |
tree | 19f2bcc36d875eb52a63b6b66595f263cd595586 /redhat/build | |
parent | 687dff79504bfb856ea7b712a2fee2e71f7afbb6 (diff) | |
download | tde-packaging-0edc1511e1134e66172a80f8d69389f246ff867e.tar.gz tde-packaging-0edc1511e1134e66172a80f8d69389f246ff867e.zip |
RPM: add docker script for fedora38
Signed-off-by: François Andriot <albator78@libertysurf.fr>
Diffstat (limited to 'redhat/build')
-rwxr-xr-x | redhat/build/build_rpm_package.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/redhat/build/build_rpm_package.sh b/redhat/build/build_rpm_package.sh index 3e4699cd6..fa5439b2c 100755 --- a/redhat/build/build_rpm_package.sh +++ b/redhat/build/build_rpm_package.sh @@ -13,10 +13,14 @@ SPECFILE=$(get_specfile.sh ${PKGNAME} ${TDE_VERSION}) VERSION=$(get_latest_tarball_version.sh ${PKGNAME} ${TDE_VERSION} || :) case "${VERSION}" in *~pre*) PREVERSION="${VERSION#*~}";; esac +ARCH="$(uname -i)" +if [ "${ARCH}" = "unknown" ]; then + ARCH="$(uname -m)" +fi DIST="$(rpmdist.sh --dist)" [ -z "${TMPPATH}" ] && TMPPATH="/dev/shm" -BUILDDIR="${TMPPATH}/BUILD${DIST}.$(uname -i)" -BUILDROOTDIR="${TMPPATH}/BUILDROOT${DIST}.$(uname -i)" +BUILDDIR="${TMPPATH}/BUILD${DIST}.${ARCH}" +BUILDROOTDIR="${TMPPATH}/BUILDROOT${DIST}.${ARCH}" LOGFILE="${TMPPATH}/log.${COMP##*/}" export TEMPDIR="$(mktemp -d)" |