<name>-<version>-<release>.planetlab.<arch>.rpm
Set PLDISTRO on the command line to differentiate between downstream
variants.
# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2003-2005 The Trustees of Princeton University
#
# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2003-2005 The Trustees of Princeton University
#
-# $Id: Makefile,v 1.79 2005/09/04 17:37:36 mlhuang Exp $
+# $Id: Makefile,v 1.80 2005/11/21 22:37:15 mlhuang Exp $
TAG := HEAD
CVSROOT := :pserver:anon@cvs.planet-lab.org:/cvs
TAG := HEAD
CVSROOT := :pserver:anon@cvs.planet-lab.org:/cvs
+# By default, the naming convention for built RPMS is
+# <name>-<version>-<release>.planetlab.<arch>.rpm
+# Set PLDISTRO on the command line to differentiate between downstream
+# variants.
+PLDISTRO := planetlab
+
# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2003-2005 The Trustees of Princeton University
#
# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2003-2005 The Trustees of Princeton University
#
+# $Id: Makerules,v 1.16 2005/09/01 18:58:45 mlhuang Exp $
#
# Base cvsps and rpmbuild in the current directory
#
# Base cvsps and rpmbuild in the current directory
# Define date for untagged builds
echo "%define date $(DATE)" >> $@
endif
# Define date for untagged builds
echo "%define date $(DATE)" >> $@
endif
+ echo "%define pldistro $(PLDISTRO)" >> $@
# Rewrite patch sections of spec file
perl -n -e ' \
next if /^Patch.*/; \
# Rewrite patch sections of spec file
perl -n -e ' \
next if /^Patch.*/; \
+RPMFLAGS += --define "pldistro $(PLDISTRO)"
ifeq ($(TAG),HEAD)
RPMFLAGS += --define "date $(DATE)"
endif
ifeq ($(TAG),HEAD)
RPMFLAGS += --define "date $(DATE)"
endif
# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2003-2005 The Trustees of Princeton University
#
# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2003-2005 The Trustees of Princeton University
#
+# $Id: Makerules,v 1.16 2005/09/01 18:58:45 mlhuang Exp $
#
# Base cvsps and rpmbuild in the current directory
#
# Base cvsps and rpmbuild in the current directory
# Define date for untagged builds
echo "%define date $(DATE)" >> $@
endif
# Define date for untagged builds
echo "%define date $(DATE)" >> $@
endif
+ echo "%define pldistro $(PLDISTRO)" >> $@
# Rewrite patch sections of spec file
perl -n -e ' \
next if /^Patch.*/; \
# Rewrite patch sections of spec file
perl -n -e ' \
next if /^Patch.*/; \
+RPMFLAGS += --define "pldistro $(PLDISTRO)"
ifeq ($(TAG),HEAD)
RPMFLAGS += --define "date $(DATE)"
endif
ifeq ($(TAG),HEAD)
RPMFLAGS += --define "date $(DATE)"
endif