packaging updates from Buchan
[ira/wip.git] / packaging / Mandrake / makerpms.sh.tmpl
index ba4eff0e2b10cc21bdd830c4e6195694a176b1d8..5d06e2bbccaf33453cf1fb2acc225ac9feb565ec 100644 (file)
@@ -13,8 +13,8 @@
 #
 
 # rpm --eval should always give a correct answer for this
-SPECDIR=`rpm --eval "%{_specdir}"`
-SRCDIR=`rpm --eval "%{_sourcedir}"`
+SPECDIR=`rpm "$@" --eval "%{_specdir}"`
+SRCDIR=`rpm "$@" --eval "%{_sourcedir}"`
 
 # At this point the (SPECDIR and) SRCDIR vaiables must have a value!