Make sure build root is correct (no override from rpmmacros).

This commit is contained in:
Matthew Bowra-Dean
2011-01-05 15:01:04 +13:00
parent a993116085
commit 63ee3ebf9f
3 changed files with 3 additions and 4 deletions

View File

@@ -21,7 +21,6 @@ cp openra.spec openra$ARCH.spec
sed -i "s/{VERSION_FIELD}/$PKGVERSION/" openra$ARCH.spec
rootdir=`readlink -f $2`
sed -i "s|{ROOT_DIR}|$rootdir|" openra$ARCH.spec
sed -i "s/{ARCH}/$ARCH/" openra$ARCH.spec
for x in `find $rootdir -type f`
do
@@ -33,7 +32,7 @@ cp openra$ARCH.spec "$3/SPECS/"
cd "$3"
rpmbuild --target $ARCH -bb SPECS/openra$ARCH.spec
rpmbuild --target $ARCH --buildroot /tmp/openra$ARCH/ -bb SPECS/openra$ARCH.spec
if [ $? -ne 0 ]; then
exit 1
fi