buildpackage_rpm: Changed default git-archive prefix to %{name}-%{version}
authorEd Bartosh <eduard.bartosh@intel.com>
Mon, 28 May 2012 11:22:21 +0000 (14:22 +0300)
committerEd Bartosh <eduard.bartosh@intel.com>
Mon, 28 May 2012 11:22:21 +0000 (14:22 +0300)
Change-Id: I4f306e11204e1b2d8d909471273469fc5374d181

gbp/scripts/buildpackage_rpm.py

index b510d14b95802f91a18d5c99d875d79e94044bba..00b8dec8afc0d46423dc662198b06068bee5bfbe 100755 (executable)
@@ -50,7 +50,7 @@ def git_archive(repo, spec, output_dir, treeish, comp_type, comp_level, with_sub
             raise GbpError, "Unsupported compression type '%s'" % comp_type
 
     output = os.path.join(output_dir, os.path.basename(spec.orig_file))
-    prefix = spec.orig_base
+    prefix = "%s-%s" % (spec.name, spec.version)
 
     try:
         if repo.has_submodules() and with_submodules: