summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2020-05-26 09:54:50 +0200
committerGerd Hoffmann <kraxel@redhat.com>2020-05-26 09:54:50 +0200
commite0ab6175a97a67f76fbe299f1c8078ff7328ff19 (patch)
tree44e3abf527d15faa0be6aff0012675ba23a5d464
parenteba4c839ec018781fddf4f0b926c6dc2018bdea0 (diff)
downloadipxe-e0ab6175a97a67f76fbe299f1c8078ff7328ff19.tar.gz
versioning tweak
-rw-r--r--ipxe.git.spec11
1 files changed, 6 insertions, 5 deletions
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