From a39a5f4c06e3749c745c87c7d735baf0b8598836 Mon Sep 17 00:00:00 2001 From: Amitay Isaacs Date: Tue, 10 Jun 2014 16:30:38 +1000 Subject: ctdb-build: Add target to build RPMs Signed-off-by: Amitay Isaacs Reviewed-by: Michael Adam --- ctdb/Makefile | 3 +++ ctdb/wscript | 9 +++++++++ 2 files changed, 12 insertions(+) (limited to 'ctdb') diff --git a/ctdb/Makefile b/ctdb/Makefile index 44fd756a2c1..c2ee2ddb96b 100644 --- a/ctdb/Makefile +++ b/ctdb/Makefile @@ -31,6 +31,9 @@ distcheck: touch .tmplock WAFLOCK=.tmplock $(WAF) distcheck +rpm: + $(WAF) rpm + clean: $(WAF) clean diff --git a/ctdb/wscript b/ctdb/wscript index 4920f9e4385..26730981a37 100755 --- a/ctdb/wscript +++ b/ctdb/wscript @@ -556,6 +556,15 @@ def dist(): samba_dist.dist() +def rpmonly(ctx): + cmd = 'rpmbuild -ta --clean --rmsource ctdb-%s.tar.gz' % VERSION + samba_utils.RUN_COMMAND(cmd) + +def rpm(ctx): + import Scripting + Scripting.commands.append('dist') + Scripting.commands.append('rpmonly') + def ctags(ctx): "build 'tags' file using ctags" import Utils -- cgit v1.2.1