From d06710500298b4e024a384f3bdba5e0f657f38bc Mon Sep 17 00:00:00 2001 From: albator Date: Mon, 7 Nov 2011 19:57:22 +0100 Subject: Redhat/Fedora: - add konversation - minor updates to other components ... --- redhat/genrpm.sh | 104 +++++++++++++++++++++++++++++++------------------------ 1 file changed, 59 insertions(+), 45 deletions(-) (limited to 'redhat/genrpm.sh') diff --git a/redhat/genrpm.sh b/redhat/genrpm.sh index eb7015de2..25ea69be1 100755 --- a/redhat/genrpm.sh +++ b/redhat/genrpm.sh @@ -1,7 +1,14 @@ #!/bin/bash cd "$( dirname "$0" )" -ARGS="$@" + +while [ $# -gt 0 ]; do + case "$1" in + "--auto") AUTO=1;; + *) COMP="$1";; + esac + shift +done clear cat <&1 | tee /tmp/log - set +x -done +# Determines if we are running an i386 or x86_64 distro +if [ "$(rpm -q --qf '%{arch}' kernel)" = "i686" ]; then + ARGS="${ARGS} --target=i686" +fi + +set -x +( +rpmbuild -ba \ + --define "_sourcedir ${PWD}/${COMP}" \ + --define "_prefix ${PREFIX:-/opt/trinity}" \ + --define "version ${VERSION:-3.5.13}" \ + $ARGS \ + ${COMP}/${SPEC} || exit 1 +) 2>&1 | tee /tmp/log +set +x -- cgit v1.2.1