summaryrefslogtreecommitdiffstats
path: root/redhat/build/build_rpm_package.sh
diff options
context:
space:
mode:
authorFrançois Andriot <albator78@libertysurf.fr>2014-04-04 21:17:27 +0200
committerFrançois Andriot <albator78@libertysurf.fr>2014-04-04 21:17:27 +0200
commit7b26da834f79b8b6eb2d8e99a1467ffea2791380 (patch)
treef26773747d20d14d82fe43fd5c245d2f9e803eee /redhat/build/build_rpm_package.sh
parent61c9cb24d0d3319c8c800fabf1af8153dcabce2c (diff)
downloadtde-packaging-7b26da834f79b8b6eb2d8e99a1467ffea2791380.tar.gz
tde-packaging-7b26da834f79b8b6eb2d8e99a1467ffea2791380.zip
RPM Packaging: update build scripts
Diffstat (limited to 'redhat/build/build_rpm_package.sh')
-rwxr-xr-xredhat/build/build_rpm_package.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/redhat/build/build_rpm_package.sh b/redhat/build/build_rpm_package.sh
index 5b274fde2..5d9a7d6cd 100755
--- a/redhat/build/build_rpm_package.sh
+++ b/redhat/build/build_rpm_package.sh
@@ -28,12 +28,14 @@ fi
[ -d "${BUILDDIR}" ] || mkdir -p "${BUILDDIR}"
+RPMDIR="$(rpm -E %{_rpmdir}.tde-${TDE_VERSION})"
rpmbuild -ba \
--define "_specdir ${TEMPDIR}" \
--define "_sourcedir ${TEMPDIR}" \
--define "_builddir ${BUILDDIR}" \
--define "_buildrootdir ${BUILDROOTDIR}" \
+ --define "_rpmdir ${RPMDIR}" \
--define "tde_version ${TDE_VERSION}" \
--define "tde_prefix /opt/trinity" \
--define "preversion ${PREVERSION}" \