From 54b87586aae0cadea85d48a60df7de440ff09851 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Mon, 31 Aug 2009 11:59:04 +0200 Subject: [PATCH] fixed gitrpm --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 12a0ee491..a5d7218eb 100644 --- a/Makefile +++ b/Makefile @@ -54,7 +54,12 @@ rpm: clean dracut-$(VERSION).tar.bz2 rm -fr BUILD BUILDROOT gitrpm: dracut-$(VERSION)-$(GITVERSION).tar.bz2 - rpmbuild --define "_topdir $$PWD" --define "_sourcedir $$PWD" --define "_specdir $$PWD" --define "_srcrpmdir $$PWD" --define "_rpmdir $$PWD" --define "gittag $(GITVERSION)" -ba dracut.spec + echo "%define gittag $(GITVERSION)" > dracut.spec.git + cat dracut.spec >> dracut.spec.git + mv dracut.spec dracut.spec.bak + mv dracut.spec.git dracut.spec + rpmbuild --define "_topdir $$PWD" --define "_sourcedir $$PWD" --define "_specdir $$PWD" --define "_srcrpmdir $$PWD" --define "_rpmdir $$PWD" --define "gittag $(GITVERSION)" -ba dracut.spec + mv dracut.spec.bak dracut.spec rm -fr BUILD BUILDROOT check: all -- 2.47.3