From a55139aba614a9eb2799b334e0eac555dbf2d3ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20O=2E=20Sel=C3=A5sdal?= Date: Sun, 15 Feb 2015 23:56:31 +0100 Subject: [PATCH] Work around the scons Package() VERSION attribute by specifying the target and source explicitly --- SConstruct | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/SConstruct b/SConstruct index 1686d1c..d52dec5 100644 --- a/SConstruct +++ b/SConstruct @@ -152,16 +152,16 @@ subdirs = [ for subdir in subdirs: env.SConscript(subdir + '/SConscript', variant_dir='#build/' + subdir, src_dir='#'+subdir, duplicate=0) -env.Package(NAME = 'libucore', - VERSION = version_info['version_str'] + '.0', #Trailing .0 is needed cause a SCons bug - 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.Package(target = 'libucore-' + version_info['version_str'] + '.tar.gz', + source = env.FindInstalledFiles(), + NAME = 'libucore', + VERSION = version_info['version_str'], + 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')