2 # Copyright (C) John H Terpstra 1998-2002
3 # Gerald (Jerry) Carter 2003
7 # The following allows environment variables to override the target directories
8 # the alternative is to have a file in your home directory calles .rpmmacros
9 # containing the following:
10 # %_topdir /home/mylogin/redhat
12 # Note: Under this directory rpm expects to find the same directories that are under the
13 # /usr/src/redhat directory
19 echo "Must run this from the ctdb directory"
24 SPECDIR=`rpm --eval %_specdir`
25 SRCDIR=`rpm --eval %_sourcedir`
27 # At this point the SPECDIR and SRCDIR vaiables must have a value!
34 echo -n "Creating ctdb-${VERSION}.tar.gz ... "
35 git archive --prefix=ctdb-${VERSION} | gzip -9 --rsyncable > ${SRCDIR}/ctdb-${VERSION}.tar.gz
44 ## copy additional source files
46 cp -p packaging/RPM/ctdb.spec ${SPECDIR}
51 echo "$(basename $0): Getting Ready to build release package"
53 ${RPMBUILD} -ba --clean --rmsource $EXTRA_OPTIONS $SPECFILE || exit 1
55 echo "$(basename $0): Done."