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