Hello there,

Currently I am searching a way to build a libvirt package from latest
libvirt.git with package name including git commit info.
Like
# cd libvirt && git describe
v1.2.14-rc1-16-g0c4474d

then I want to build a libvirt package with name like
libvirt-1.2.14-1.el7.v1.2.14-rc1-16-g0c4474d.x86_64

The context why I need this  is there are some hosts running scripts for
auto QE-consumption testing while there is no job
running sometimes.( we won't get a internal release version everyday, it
is not necessary also). We can make use of these
resource to do some auto testing daily so that we may be able to find
the regression problems earlier.
So, a package with commit info is required for comparative testing.

After talk with eblake I got a way as below:
after 'make rpm' , I will get libvirt.spec,
then I can tweak libvirt.spec add a line "%define extra_release
.git_commit_num" at the top of libvirt.spec
then use the tweaked libvirt.spec to build the package I want to get

I wonder anybody have a better method to achieve this ?


Thanks

-- 
Regards
shyu

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

Reply via email to