summaryrefslogtreecommitdiffstats
path: root/redhat/genrpm.sh
diff options
context:
space:
mode:
authorFrancois Andriot <francois.andriot@free.fr>2012-08-03 13:59:43 +0200
committerFrancois Andriot <francois.andriot@free.fr>2012-08-03 13:59:43 +0200
commitbe9f9f70d960e0789e024c8285dc681302c3c3f1 (patch)
treebc4c568eb13a62af120ba51f9145337541b35be3 /redhat/genrpm.sh
parent1f76bf54b70463addf27bc503bb58af60dc8ae58 (diff)
downloadtde-packaging-be9f9f70d960e0789e024c8285dc681302c3c3f1.tar.gz
tde-packaging-be9f9f70d960e0789e024c8285dc681302c3c3f1.zip
RHEL/Fedora: adds support for Mandriva 2011 in packaging
Diffstat (limited to 'redhat/genrpm.sh')
-rwxr-xr-xredhat/genrpm.sh11
1 files changed, 9 insertions, 2 deletions
diff --git a/redhat/genrpm.sh b/redhat/genrpm.sh
index aa8b5e681..04b21d382 100755
--- a/redhat/genrpm.sh
+++ b/redhat/genrpm.sh
@@ -3,6 +3,13 @@
cd "$( dirname "$0" )"
ARGS=""
+if [ ! -d /var/cache/ccache ]; then
+ DIST="$(rpmdist.sh --dist)"
+ if [ -n "${DIST}" ]; then
+ export CCACHE_DIR=~/.ccache${DIST}.$(uname -m)
+ fi
+fi
+
while [ $# -gt 0 ]; do
case "$1" in
"--auto"|"-a") AUTO=1;;
@@ -99,7 +106,7 @@ EOF
# Specific prefix for installation of some components
case "${COMP##*/}" in
- "qt3"|"libkarma") PREFIX="/usr";;
+ "qt3") PREFIX="/usr";;
esac
# Determines if we are running an i386 or x86_64 distro
@@ -114,7 +121,7 @@ set -x
rpmbuild -ba \
${ARGS} \
--define "_sourcedir ${PWD}/${COMP}" \
- --define "_prefix ${PREFIX:-/opt/trinity}" \
+ --define "tde_prefix ${PREFIX:-/opt/trinity}" \
--define "version ${VERSION:-3.5.13}" \
${COMP}/${SPEC} || exit 1
) 2>&1 | tee ${LOGFILE}