Kernel rpm versioning changes

Dave Jones davej at redhat.com
Tue Jul 3 19:01:01 UTC 2007


On Tue, Jul 03, 2007 at 03:56:45PM -0300, Eduardo Habkost wrote:
 > On Tue, Jul 03, 2007 at 11:52:00AM -0700, Roland McGrath wrote:
 > > > It's non-obvious to me what %{?buildid} is, but it seems to
 > > > auto-increment.
 > > 
 > > buildid is the "please set this to .me" one.  
 > > fedora_build is the one to bump on commit.
 > 
 > Can't %{fedora_build} be set based on the $Revision$ keyword, to be
 > incremented automatically on commit, just like %{specrelease} was
 > auto-incremeted previously?

Yes, it can. With..

%define fedora_build %(R="$Revision: 1.3125 $"; RR="${R##: }"; echo %${RR%%?} | sed s/1\.//)

Which would yield..

kernel-2.6.22-0.3125.rc7.fc8

	Dave

-- 
http://www.codemonkey.org.uk




More information about the Fedora-kernel-list mailing list