HOSTARCH := $(shell uname -i)
DISTRO := $(shell ./getdistro.sh)
RELEASE := $(shell ./getrelease.sh)
+DISTRONAME := $(shell ./getdistroname.sh)
RPM-INSTALL-DEVEL := rpm --force -Uvh
# cannot force rpm -e
RPM-UNINSTALL-DEVEL := rpm -e
(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 "%define distrovsname $(DISTRONAME)" >> $($(1).specpath)
echo "%define pldistro $(PLDISTRO)" >> $($(1).specpath)
echo "%define plrelease $(PLANETLAB_RELEASE)" >> $($(1).specpath)
$(if $($(1).has-date),echo "%define date $(shell date +%Y.%m.%d)" >> $($(1).specpath),)