work around the srpm rebuild quirk where it nukes the tarball in SOURCES/
authorMarc Fiuczynski <mef@cs.princeton.edu>
Wed, 28 Nov 2007 22:08:38 +0000 (22:08 +0000)
committerMarc Fiuczynski <mef@cs.princeton.edu>
Wed, 28 Nov 2007 22:08:38 +0000 (22:08 +0000)
Makefile

index 81c9427..0e20f01 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -429,8 +429,8 @@ $($(1)-RPMS): $($(1)-SRPM)
        @(echo -n "XXXXXXXXXXXXXXX -- BEG RPM $(1) " ; date)
        $(if $(findstring RPMS/yumgroups.xml,$($(1)-DEPENDFILES)), createrepo --quiet -g yumgroups.xml RPMS/ , )
        $(if $($(1)-RPMBUILD),\
-         $($(1)-RPMBUILD) $($(1)-RPMFLAGS) --rebuild $($(1)-SRPM), \
-         $(RPMBUILD)  $($(1)-RPMFLAGS) --rebuild $($(1)-SRPM))
+         $($(1)-RPMBUILD) $($(1)-RPMFLAGS) --rebuild --define "_sourcedir $(HOME)/tmp" $($(1)-SRPM), \
+         $(RPMBUILD)  $($(1)-RPMFLAGS) --rebuild --define "_sourcedir $(HOME)/tmp" $($(1)-SRPM))
        @(echo -n "XXXXXXXXXXXXXXX -- END RPM $(1) " ; date)
 endef