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
|
||||
|
||||
@@ -12,7 +12,7 @@ Packager: Matthew Bowra-Dean <matthew@ijw.co.nz>
|
||||
Requires: mono-core mono-devel SDL openal mesa-dri-drivers-experimental gtk2 webkitgtk
|
||||
Prefix: /usr
|
||||
Source: %{name}-%{version}.tar.gz
|
||||
Buildroot: /tmp/openra{ARCH}
|
||||
Buildroot: /tmp/openra
|
||||
|
||||
%description
|
||||
A multiplayer reimplementation of the Command & Conquer: Red Alert game
|
||||
|
||||
@@ -26,7 +26,7 @@ esac
|
||||
LINUXVERSION=`echo $VERSION | sed "s/-/\\./g"`
|
||||
|
||||
./uploader.sh linux "$VERSION" $PKGDIR/openra-$VERSION-i386.deb "deblatest32" "$FTPSERVER" "$FTPPATH" "$3" "$4"
|
||||
./uploader.sh linux "$VERSION" $PKGDIR/openra-$LINUXVERSION-1.i686.rpm "rpmlatest32" "$FTPSERVER" "$FTPPATH" "$3" "$4"
|
||||
./uploader.sh linux "$VERSION" $PKGDIR/openra-$LINUXVERSION-1.i386.rpm "rpmlatest32" "$FTPSERVER" "$FTPPATH" "$3" "$4"
|
||||
./uploader.sh linux "$VERSION" $PKGDIR/openra-$LINUXVERSION-1-i686.pkg.tar.xz "archlatest32" "$FTPSERVER" "$FTPPATH" "$3" "$4"
|
||||
./uploader.sh linux "$VERSION" $PKGDIR/openra-$VERSION-amd64.deb "deblatest" "$FTPSERVER" "$FTPPATH" "$3" "$4"
|
||||
./uploader.sh linux "$VERSION" $PKGDIR/openra-$LINUXVERSION-1.x86_64.rpm "rpmlatest" "$FTPSERVER" "$FTPPATH" "$3" "$4"
|
||||
|
||||
Reference in New Issue
Block a user