[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-API] [PATCH 1 of 3] Query rpm to find build directories



# HG changeset patch
# User root@xxxxxxxxxxxxxxxxxxxxx
# Date 1290004675 18000
# Node ID 01cface0904c7c5d18703ad3f11909ab2f50471c
# Parent  c8f620542215cbb770e5f56e62eb43559e4a52d8
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 <ian.campbell@xxxxxxxxxx>

diff -r c8f620542215 -r 01cface0904c Makefile
--- a/Makefile  Tue Oct 05 16:50:18 2010 +0000
+++ b/Makefile  Wed Nov 17 09:37:55 2010 -0500
@@ -8,10 +8,10 @@ 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_RPMSDIR?=/usr/src/redhat/RPMS
-RPM_SOURCESDIR?=/usr/src/redhat/SOURCES
+RPM_SPECSDIR?=$(shell rpm --eval='%_specdir')
+RPM_SRPMSDIR?=$(shell rpm --eval='%_srcrpmdir')
+RPM_RPMSDIR?=$(shell rpm --eval='%_rpmdir')
+RPM_SOURCESDIR?=$(shell rpm --eval='%_sourcedir')
 RPMBUILD?=rpmbuild
 
 DIST?=/data

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.