[NEW PATCH] Add a buildid name to the rpms when specified (via gerrit-bot)

Federico Simoncelli fsimonce at redhat.com
Tue Aug 30 15:10:09 UTC 2011


New patch submitted by Federico Simoncelli (fsimonce at redhat.com)

You can review this change at: http://gerrit.usersys.redhat.com/869

commit 55c4f6561b621146143c3901cb322a2ff31b4261
Author: Federico Simoncelli <fsimonce at redhat.com>
Date:   Tue Aug 30 15:05:01 2011 +0000

    Add a buildid name to the rpms when specified
    
    It's now possible to build the rpms appending an arbitrary name for the
    packages:
    
      $ make BUILDID=.bzXXXXXX rpm
      vdsm-4.9.0-0.63.g28186b7.el6.bzXXXXXX.x86_64.rpm
    
    Change-Id: Ie28883b5bddf7d06ed3de31875f7d9f193ecfb75

diff --git a/Makefile.am b/Makefile.am
index 011ac65..49bd3cb 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -25,7 +25,9 @@ srpm: dist
 		--define="_sourcedir $(PWD)" $(DIST_ARCHIVES)
 
 rpm: dist
-	rpmbuild --define="_topdir $(RPMTOP)" -ta $(DIST_ARCHIVES)
+	rpmbuild -ta \
+		--define="extra_release $(BUILDID)" \
+		--define="_topdir $(RPMTOP)" $(DIST_ARCHIVES)
 
 dist-hook: gen-ChangeLog
 




More information about the vdsm-patches mailing list