Make sure build root is correct (no override from rpmmacros).
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user