From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: [PATCH 1 of 6] Query rpm to find build directories Date: Thu, 18 Nov 2010 10:50:23 +0000 Message-ID: <819ce8194667bb673138.1290077423@zakaz.uk.xensource.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com, xen-api@lists.xensource.com Cc: Ian Campbell List-Id: xen-devel@lists.xenproject.org # HG changeset patch # User root@localhost.localdomain # Date 1290076616 18000 # Node ID 819ce8194667bb673138ad12e781432cebf2028a # Parent 7438d990fed8255bba2d592f767de133bd45863a Query rpm to find build directories. Allows user with ~/.rpmmacros to build e.g. $ cat ~/.rpmmacros %_topdir /data/rpmbuild %_tmppath /data/tmp Signed-off-by: Ian Campbell diff -r 7438d990fed8 -r 819ce8194667 Makefile --- a/Makefile Tue Oct 12 12:02:18 2010 +0100 +++ b/Makefile Thu Nov 18 05:36:56 2010 -0500 @@ -107,9 +107,9 @@ MY_OUTPUT_DIR ?= $(CURDIR)/output MY_OBJ_DIR ?= $(CURDIR)/obj REPO ?= $(CURDIR) -RPM_SPECSDIR?=/usr/src/redhat/SPECS -RPM_SRPMSDIR?=/usr/src/redhat/SRPMS -RPM_SOURCESDIR?=/usr/src/redhat/SOURCES +RPM_SPECSDIR?=$(shell rpm --eval='%_specdir') +RPM_SRPMSDIR?=$(shell rpm --eval='%_srcrpmdir') +RPM_SOURCESDIR?=$(shell rpm --eval='%_sourcedir') RPMBUILD?=rpmbuild XEN_RELEASE?=unknown endif