support creating -32bit/-64bit/-x86 rpms for other archs, #852
authorZhang Qiang <qiang.z.zhang@intel.com>
Thu, 28 Mar 2013 06:44:14 +0000 (14:44 +0800)
committerZhang Qiang <qiang.z.zhang@intel.com>
Thu, 28 Mar 2013 06:44:14 +0000 (14:44 +0800)
This option is just like --baselibs of build script

Change-Id: I213eb7bed1da2f87971c9b58d33c5031d7812fb5

data/gbs-completion.bash
gitbuildsys/cmd_build.py
tools/gbs

index b827855..de916db 100644 (file)
@@ -84,7 +84,7 @@ __gbs ()
         --arch= --repository= --dist= --buildroot= --clean
         --include-all --extra-packs= --spec= --commit= --cache
         --skip-conf-repos --profile= --noinit --keep-packs
-        --clean-repos --define
+        --clean-repos --define --baselibs
     "
     rb_opts="
         --base-obsprj= --target-obsprj= --spec= --commit= --include-all
index f581d6b..e241b00 100644 (file)
@@ -163,6 +163,9 @@ def prepare_depanneur_opts(args):
         cmd_opts += ['--no-configure']
     if args.keep_packs:
         cmd_opts += ['--keep-packs']
+    if args.baselibs:
+        cmd_opts += ['--baselibs']
+
     if args.binary_list:
         blist = [ i.strip() for i in args.binary_list.split(',') ]
         cmd_opts += ['--binary-list=%s' % ','.join(blist)]
index 44ca7fa..404b3b9 100755 (executable)
--- a/tools/gbs
+++ b/tools/gbs
@@ -160,6 +160,8 @@ def build_parser(parser):
     group.add_argument('--define', action="append",
                         help='define macro X with value Y with format "X Y"')
     group.add_argument('--debug', action='store_true', help='debug output')
+    group.add_argument('--baselibs', action='store_true', help='create -32bit'
+                       '/-64bit/-x86 rpms for other architectures')
 
     group = parser.add_argument_group('build env options')
     group.add_argument('-B', '--buildroot',