Few more changes to rpm.

This commit is contained in:
Matthew Bowra-Dean
2011-01-05 14:48:13 +13:00
parent eb158e6d21
commit a993116085
3 changed files with 5 additions and 4 deletions

View File

@@ -21,10 +21,11 @@ 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
y="/${x#$rootdir}"
y="${x#$rootdir}"
sed -i "/%files/ a $y" openra$ARCH.spec
done

View File

@@ -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
Buildroot: /tmp/openra{ARCH}
%description
A multiplayer reimplementation of the Command & Conquer: Red Alert game