From 61cec258e310e9492a03729184445b88d6de6d0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20O=2E=20Sel=C3=A5sdal?= Date: Sun, 15 Feb 2015 21:37:13 +0100 Subject: [PATCH] Add tar.gz binary package target to scons. Invoke with scons --install_sandbox=XXX package --- SConstruct | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/SConstruct b/SConstruct index 40e4f5a..b79ca22 100644 --- a/SConstruct +++ b/SConstruct @@ -89,7 +89,7 @@ def InstallPerm(env, dest, files, perm): return obj -env = Environment(tools = ['default', 'textfile']) +env = Environment(tools = ['default', 'textfile', 'packaging']) #allow shell environment to override compiler if os.environ.has_key('CC'): @@ -152,9 +152,16 @@ subdirs = [ for subdir in subdirs: env.SConscript(subdir + '/SConscript', variant_dir='#build/' + subdir, src_dir='#'+subdir, duplicate=0) -distfile='libucore-' + version_info['version_str'] + '.tar.gz' -distcmd = env.Tar(distfile,'install', TARFLAGS='-cz') -env.Alias('dist', distcmd) -env.Depends('dist', 'install') +env.Package(NAME = 'libucore', + VERSION = version_info['version_str'] + '.0', + PACKAGEVERSION = 0, + PACKAGETYPE = 'targz', + LICENSE = 'BSD', + SUMMARY = 'libucore is a C library of misc useful stuff including an eventloop, timer support and various data-structures.', + DESCRIPTION = 'libucore is a C library of misc useful stuff including an eventloop, timer support and various data-structures.', + X_RPM_GROUP = 'Development/Libraries' + + +) env.Default('src')