summaryrefslogtreecommitdiff
path: root/packaging/RHEL-CTDB/makespec.sh
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/RHEL-CTDB/makespec.sh')
-rwxr-xr-xpackaging/RHEL-CTDB/makespec.sh15
1 files changed, 14 insertions, 1 deletions
diff --git a/packaging/RHEL-CTDB/makespec.sh b/packaging/RHEL-CTDB/makespec.sh
index 29dcbeb30e..946ce8ebf9 100755
--- a/packaging/RHEL-CTDB/makespec.sh
+++ b/packaging/RHEL-CTDB/makespec.sh
@@ -45,8 +45,21 @@ else
echo "GITHASH: ${GITHASH}"
fi
-sed -e s/PVERSION/${VERSION}/g \
+
+#
+# get the versions of libtdb and libtalloc we provide
+#
+#LIBTDBVERSION=1.2.9
+LIBTDBVERSION=$(grep ^VERSION ${DIRNAME}/../../lib/tdb/wscript | sed -e "s/'//g" -e 's/.* //')
+
+#LIBTALLOCVERSION=2.0.1
+LIBTALLOCVERSION=$(grep ^VERSION ${DIRNAME}/../../lib/talloc/wscript | sed -e "s/'//g" -e 's/.* //')
+
+sed \
+ -e s/PVERSION/${VERSION}/g \
-e s/GITHASH/${GITHASH}/g \
+ -e s/LIBTDBVERSION/${LIBTDBVERSION}/g \
+ -e s/LIBTALLOCVERSION/${LIBTALLOCVERSION}/g \
< ${SPECFILE}.tmpl \
> ${SPECFILE}