[PATCH] Makefile.common: define specdir

Bill Nottingham notting at redhat.com
Tue Nov 13 16:26:17 UTC 2007


If we set SOURCEDIR, RPMDIR, etc., we should really define _specdir too.

Anyone see any issues with this?

Bill
-------------- next part --------------
Index: Makefile.common
===================================================================
RCS file: /cvs/extras/common/Makefile.common,v
retrieving revision 1.80
diff -u -r1.80 Makefile.common
--- Makefile.common	30 Oct 2007 18:33:33 -0000	1.80
+++ Makefile.common	13 Nov 2007 16:25:16 -0000
@@ -75,9 +75,13 @@
 ifndef SOURCEDIR
 SOURCEDIR := $(shell pwd)
 endif
+ifndef SPECDIR
+SPECDIR := $(shell pwd)
+endif
 
 ifndef RPM_DEFINES
 RPM_DEFINES = --define "_sourcedir $(SOURCEDIR)" \
+		--define "_specdir $(SPECDIR)" \
 		--define "_builddir $(BUILDDIR)" \
 		--define "_srcrpmdir $(SRCRPMDIR)" \
 		--define "_rpmdir $(RPMDIR)" \


More information about the fedora-devel-list mailing list