summaryrefslogtreecommitdiffstats
path: root/.copr
diff options
context:
space:
mode:
authorArnstein Ressem <aressem@verizonmedia.com>2021-09-22 13:28:38 +0200
committerArnstein Ressem <aressem@verizonmedia.com>2021-09-22 13:28:38 +0200
commit3803aed9fb1272f9b581d45aa4e3a322f1cd3739 (patch)
tree6cadcab2c315335751136535bb45c73cb2807849 /.copr
parent1d0eeab6555fd8c85bf7d22bd57e66204aefd8c9 (diff)
Fix lazy command expansion that did not work.
Diffstat (limited to '.copr')
-rw-r--r--.copr/Makefile5
1 files changed, 1 insertions, 4 deletions
diff --git a/.copr/Makefile b/.copr/Makefile
index 488f2360450..b0322bf29b3 100644
--- a/.copr/Makefile
+++ b/.copr/Makefile
@@ -1,9 +1,6 @@
# Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
TOP = $(realpath $(dir $(lastword $(MAKEFILE_LIST))))
-# Version
-VESPA_VERSION = $(shell git tag --points-at HEAD | grep -oP "\d+\.\d+\.\d+" | sort -V | tail -1)
-
RPMTOPDIR := $(HOME)/rpmbuild
SOURCEDIR := $(RPMTOPDIR)/SOURCES
SPECDIR := $(RPMTOPDIR)/SPECS
@@ -11,7 +8,7 @@ SPECFILE := $(SPECDIR)/vespa-$(VESPA_VERSION).spec
srpm:
dnf install -y git rpmdevtools
- $(TOP)/../dist.sh $(VESPA_VERSION)
+ $(TOP)/../dist.sh $$(git tag --points-at HEAD | grep -oP "\d+\.\d+\.\d+" | sort -V | tail -1)
spectool -g -C $(SOURCEDIR) $(SPECFILE)
rpmbuild -bs --define "_topdir $(RPMTOPDIR)" $(SPECFILE)
cp -a $(RPMTOPDIR)/SRPMS/* $(outdir)