CASA: check in baselibs.conf to build linux32 on x86_64 platform

This commit is contained in:
soochoi 2008-06-17 17:28:03 +00:00
parent 3e44d02f3c
commit 39fd99738f
2 changed files with 59 additions and 0 deletions

2
CASA/baselibs.conf Normal file
View File

@ -0,0 +1,2 @@
CASA
targetarch ia64 block!

View File

@ -0,0 +1,57 @@
#!/bin/bash
## creating ENV varaibles
SOURCE_DIR=`pwd`
export BUILD_ROOT=$SOURCE_DIR/../autobuild/BUILD
PACKAGE=CASA
VERSION=1.7.$1
TEMP_DIR=$SOURCE_DIR/SOURCES
BUILT_DIR=$BUILD_ROOT/usr/src/packages/BUILD/CASA-1.7.$1
RPMS_DIR=$BUILD_ROOT/usr/src/packages
##creating tar.gz
rm -rf ../bld_tst
mkdir ../bld_tst
mkdir ../bld_tst/CASA-1.7.$1
cp -R ./* ../bld_tst/CASA-1.7.$1
cd ../bld_tst/CASA-1.7.$1
sed -i "s/\(AM_INIT_AUTOMAKE.*\))/\AM_INIT_AUTOMAKE\(CASA, 1\.7\.$1\)/" ./configure.in
find . -name "*.lux" | xargs dos2unix > /dev/null 2>&1
find . -name "mk*" | xargs dos2unix > /dev/null 2>&1
find . -name "mk*" | xargs chmod +x > /dev/null 2>&1
find . -name "Make*" | xargs dos2unix > /dev/null 2>&1
find . -name "*.c" | xargs dos2unix > /dev/null 2>&1
find . -name "*.cs" | xargs dos2unix > /dev/null 2>&1
find . -name "*.cpp" | xargs dos2unix > /dev/null 2>&1
find . -name "*.h" | xargs dos2unix > /dev/null 2>&1
find . -name "link*" | xargs dos2unix > /dev/null 2>&1
find . -name ".svn" | xargs rm -rf > /dev/null 2>&1
find . -name "*.sh" | xargs dos2unix > /dev/null 2>&1
find . -name "*.sh" | xargs chmod +x > /dev/null 2>&1
find . -name "*ver.txt" | xargs dos2unix > /dev/null 2>&1
find . -name "*build.txt" | xargs dos2unix > /dev/null 2>&1
find . -name "*.mak" | xargs dos2unix > /dev/null 2>&1
cd ..
tar cjf ../CASA-1.7.$1.tar.bz2 ./CASA-1.7.$1
#creating spec file
cd $SOURCE_DIR
mkdir --parents $PRODUCTS_DIR $TEMP_DIR
cp ../CASA-1.7.$1.tar.bz2 $TEMP_DIR
cp $SOURCE_DIR/package/linux/CASA.spec.in $TEMP_DIR/CASA.spec
sed -i "s/@VERSION@/1.7.$1/" $TEMP_DIR/CASA.spec
sed -i "s/@PACKAGE@/CASA/" $TEMP_DIR/CASA.spec
sed -i "s/BuildRequires: /BuildRequires: novell-filesystem /" $TEMP_DIR/CASA.spec
cp $SOURCE_DIR/CASA.changes $TEMP_DIR
cp $SOURCE_DIR/baselibs.conf $TEMP_DIR
cd $TEMP_DIR
##call autobuild
. /opt/SuSE/bin/.profile
sudo linux32 build --clean -baselibs
##copy rpms to temp directoy
cp -rf $RPMS_DIR/RPMS $TEMP_DIR
cp -rf $RPMS_DIR/SRPMS $TEMP_DIR