summaryrefslogtreecommitdiffstats
path: root/packaging
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2006-03-16 13:48:01 +0000
committerGerald Carter <jerry@samba.org>2006-03-16 13:48:01 +0000
commitc97196d1f9fcc3fcd9af1e0a27ee945a8ab813d8 (patch)
treec1c3b1f880191306e7dcd038989d0451291006fa /packaging
parent107745477f7a77eb46376527eb9024e96e6586f0 (diff)
downloadsamba-c97196d1f9fcc3fcd9af1e0a27ee945a8ab813d8.tar.gz
samba-c97196d1f9fcc3fcd9af1e0a27ee945a8ab813d8.tar.xz
samba-c97196d1f9fcc3fcd9af1e0a27ee945a8ab813d8.zip
r14475: patch from Oliver Schulze L. <oliver@samera.com.py> for BUG 3580. Make RHEL makerpms.sh script more verbose and add some additional options to the rpmbuild process
Diffstat (limited to 'packaging')
-rw-r--r--packaging/RHEL/makerpms.sh.tmpl10
1 files changed, 7 insertions, 3 deletions
diff --git a/packaging/RHEL/makerpms.sh.tmpl b/packaging/RHEL/makerpms.sh.tmpl
index e6c178f6f3c..ebaa4e649f7 100644
--- a/packaging/RHEL/makerpms.sh.tmpl
+++ b/packaging/RHEL/makerpms.sh.tmpl
@@ -11,6 +11,8 @@
# /usr/src/redhat directory
#
+EXTRA_OPTIONS="$1"
+
SPECDIR=`rpm --eval %_specdir`
SRCDIR=`rpm --eval %_sourcedir`
@@ -39,7 +41,9 @@ esac
( cd ../../source; if [ -f Makefile ]; then make distclean; fi )
( cd ../../.. ; chown -R ${USERID}.${GRPID} samba-${VERSION} )
+echo -n "Creating samba-${VERSION}.tar.bz2 ... "
( cd ../../.. ; tar --exclude=.svn -cf - samba-${VERSION}/. | bzip2 > ${SRCDIR}/samba-${VERSION}.tar.bz2 )
+echo "Done."
##
## copy additional source files
@@ -51,9 +55,9 @@ cp -p ${SPECFILE} ${SPECDIR}
##
## Build
##
-echo Getting Ready to build release package
+echo "$(basename $0): Getting Ready to build release package"
cd ${SPECDIR}
-${RPM} -ba --clean --rmsource $SPECFILE
+${RPM} -ba --clean --rmsource $EXTRA_OPTIONS $SPECFILE
-echo Done.
+echo "$(basename $0): Done."