From e0ab6175a97a67f76fbe299f1c8078ff7328ff19 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Tue, 26 May 2020 09:54:50 +0200 Subject: versioning tweak --- ipxe.git.spec | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'ipxe.git.spec') diff --git a/ipxe.git.spec b/ipxe.git.spec index ff24824..2ace99a 100644 --- a/ipxe.git.spec +++ b/ipxe.git.spec @@ -52,14 +52,15 @@ combined roms (all-in-one: legacy bios + 32bit efi + 64bit efi) %setup -q -n %{name} %build -mkdir .git -touch .git/index mkdir src/bin-combined -make -C src VERSION=%{version}-%{release} bin/undionly.kpxe -make -C src VERSION=%{version}-%{release} bin-i386-efi/snponly.efi +VER="%{version}-%{release}" +MMVER=$(echo $VER | cut -d. -f1,2) + +make -C src VERSION=$VER MM_VERSION=$MMVER bin/undionly.kpxe +make -C src VERSION=$VER MM_VERSION=$MMVER bin-i386-efi/snponly.efi %ifarch x86_64 -make -C src VERSION=%{version}-%{release} bin-x86_64-efi/snponly.efi +make -C src VERSION=$VER MM_VERSION=$MMVER bin-x86_64-efi/snponly.efi %endif for rom in %{build_roms}; do -- cgit