aboutsummaryrefslogtreecommitdiffstats
path: root/.copr/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '.copr/Makefile')
-rw-r--r--.copr/Makefile14
1 files changed, 9 insertions, 5 deletions
diff --git a/.copr/Makefile b/.copr/Makefile
index b0322bf29b3..d515053b8bc 100644
--- a/.copr/Makefile
+++ b/.copr/Makefile
@@ -6,13 +6,17 @@ SOURCEDIR := $(RPMTOPDIR)/SOURCES
SPECDIR := $(RPMTOPDIR)/SPECS
SPECFILE := $(SPECDIR)/vespa-$(VESPA_VERSION).spec
-srpm:
+deps:
dnf install -y git rpmdevtools
- $(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)
+
+srpm: VESPA_VERSION = $$(git tag --points-at HEAD | grep -oP "\d+\.\d+\.\d+" | sort -V | tail -1)
+srpm: deps
+ $(TOP)/../dist.sh $(VESPA_VERSION)
+ spectool -g -C $(SOURCEDIR) $(SPECDIR)/vespa-$(VESPA_VERSION).spec
+ rpmbuild -bs --define "_topdir $(RPMTOPDIR)" $(SPECDIR)/vespa-$(VESPA_VERSION).spec
cp -a $(RPMTOPDIR)/SRPMS/* $(outdir)
+
clean:
-rm -rf $(RPMTOPDIR)
-.PHONY: srpm clean
+.PHONY: clean deps srpm