packaging:spec: Extract SHA1 of u-boot HEAD commit from %{vcs} variable
authorLukasz Majewski <l.majewski@samsung.com>
Mon, 17 Mar 2014 12:23:58 +0000 (13:23 +0100)
committerLukasz Majewski <l.majewski@samsung.com>
Tue, 18 Mar 2014 15:49:00 +0000 (16:49 +0100)
The SHA1 of the git's HEAD commit is extracted from the %{vcs} spec file
variable.

Due to that it is now possible to set proper u-boot identification string:
U-Boot 2014.04-g05021226f-TIZEN.org (Mar 17 2014 - 12:17:19)

Change-Id: I5d211ff57f821dc880c0aeec543ea06f1cff00fd
Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
packaging/u-boot.spec

index ea33d6e..7301544 100644 (file)
@@ -59,7 +59,7 @@ make HOSTCC="gcc $RPM_OPT_FLAGS" env
 %endif
 
 # Build u-boot
-make
+make EXTRAVERSION=`echo %{vcs} | sed 's/.*u-boot#\(.\{9\}\).*/-g\1-TIZEN.org/'`
 
 %install
 rm -rf %{buildroot}