(echo -n "# Generated by planetlab build from $($(1)-SPEC) on " ; date) > $($(1)_specpath)
echo "%define distroname $(DISTRO)" >> $($(1)_specpath)
echo "%define distrorelease $(RELEASE)" >> $($(1)_specpath)
(echo -n "# Generated by planetlab build from $($(1)-SPEC) on " ; date) > $($(1)_specpath)
echo "%define distroname $(DISTRO)" >> $($(1)_specpath)
echo "%define distrorelease $(RELEASE)" >> $($(1)_specpath)
# usage: build_binary_rpm package
# xxx hacky - invoke createrepo if DEPENDFILES mentions RPMS/yumgroups.xml
define target_binary_rpm
$($(1)-RPMS): $($(1)-SRPM)
# usage: build_binary_rpm package
# xxx hacky - invoke createrepo if DEPENDFILES mentions RPMS/yumgroups.xml
define target_binary_rpm
$($(1)-RPMS): $($(1)-SRPM)
@(echo -n "XXXXXXXXXXXXXXX -- BEG RPM $(1) " ; date)
$(if $(findstring RPMS/yumgroups.xml,$($(1)-DEPENDFILES)), $(createrepo) , )
$(if $($(1)-RPMBUILD),\
@(echo -n "XXXXXXXXXXXXXXX -- BEG RPM $(1) " ; date)
$(if $(findstring RPMS/yumgroups.xml,$($(1)-DEPENDFILES)), $(createrepo) , )
$(if $($(1)-RPMBUILD),\
- $($(1)-RPMBUILD) $($(1)-RPMFLAGS) --rebuild --define "_sourcedir $(HOME)/tmp" $($(1)-SRPM), \
- $(RPMBUILD) $($(1)-RPMFLAGS) --rebuild --define "_sourcedir $(HOME)/tmp" $($(1)-SRPM))
+ $($(1)-RPMBUILD) $($(1)-RPMFLAGS) --rebuild $(rpm_use_tmp_dirs) $($(1)-SRPM), \
+ $(RPMBUILD) $($(1)-RPMFLAGS) --rebuild $(rpm_use_tmp_dirs) $($(1)-SRPM))