mirror of
https://github.com/samba-team/samba.git
synced 2025-01-21 18:04:06 +03:00
packaging(RHEL-CTDB): auto-detect samba version from spec in makerpms.sh
Michael (This used to be commit d18075524fa6b83fbb86aa0010c6190136e99865)
This commit is contained in:
parent
f9a0b1675e
commit
8193b5694d
@ -21,9 +21,11 @@ SRCDIR=`rpm --eval %_sourcedir`
|
||||
|
||||
# At this point the SPECDIR and SRCDIR variables must have a value!
|
||||
|
||||
VERSION='3.3.0'
|
||||
DIRNAME=$(dirname $0)
|
||||
|
||||
REVISION='ctdb'
|
||||
SPECFILE="samba.spec"
|
||||
VERSION=$(grep ^Version ${DIRNAME}/${SPECFILE} | sed -e 's/^Version:\ \+//')
|
||||
DOCS="docs.tar.bz2"
|
||||
RPMVER=`rpm --version | awk '{print $3}'`
|
||||
RPM="rpmbuild"
|
||||
@ -41,8 +43,6 @@ case $RPMVER in
|
||||
;;
|
||||
esac
|
||||
|
||||
DIRNAME=$(dirname $0)
|
||||
|
||||
pushd ${DIRNAME}/../..
|
||||
echo -n "Creating samba-${VERSION}.tar.bz2 ... "
|
||||
git archive --prefix=samba-${VERSION}/ HEAD | bzip2 > ${SRCDIR}/samba-${VERSION}.tar.bz2
|
||||
|
Loading…
x
Reference in New Issue
Block a user