summaryrefslogtreecommitdiffstats
path: root/redhat/build/build_rpm_package.sh
diff options
context:
space:
mode:
authorFrançois Andriot <albator78@libertysurf.fr>2014-04-15 19:43:15 +0200
committerFrançois Andriot <albator78@libertysurf.fr>2014-04-15 19:43:15 +0200
commit41284c83ff5be87bbc957f646c0db642e93cc722 (patch)
tree8b61e4e593c0e6f94cfe83c4ea363fc62e83bcab /redhat/build/build_rpm_package.sh
parent062d4cb70976cec2a15349c6abe70a506d19f1d5 (diff)
downloadtde-packaging-41284c83ff5be87bbc957f646c0db642e93cc722.tar.gz
tde-packaging-41284c83ff5be87bbc957f646c0db642e93cc722.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 5d9a7d6cd..d55075ffa 100755
--- a/redhat/build/build_rpm_package.sh
+++ b/redhat/build/build_rpm_package.sh
@@ -29,6 +29,7 @@ fi
[ -d "${BUILDDIR}" ] || mkdir -p "${BUILDDIR}"
RPMDIR="$(rpm -E %{_rpmdir}.tde-${TDE_VERSION})"
+SRPMDIR="$(rpm -E %{_srcrpmdir}.tde-${TDE_VERSION})"
rpmbuild -ba \
--define "_specdir ${TEMPDIR}" \
@@ -36,6 +37,7 @@ rpmbuild -ba \
--define "_builddir ${BUILDDIR}" \
--define "_buildrootdir ${BUILDROOTDIR}" \
--define "_rpmdir ${RPMDIR}" \
+ --define "_srcrpmdir ${SRPMDIR}" \
--define "tde_version ${TDE_VERSION}" \
--define "tde_prefix /opt/trinity" \
--define "preversion ${PREVERSION}" \