fix snapshot building with rpm templates

git-svn-id: trunk@7752 -
This commit is contained in:
vincents 2005-09-20 09:22:08 +00:00
parent 502f83fbbf
commit e48c5f8f8b
4 changed files with 12 additions and 6 deletions

View File

@ -44,7 +44,7 @@ fi
#------------------------------------------------------------------------------
# create a temporary copy of the fpc sources to patch it
TmpDir=/tmp/fpc
TmpDir=/tmp/`whoami`/fpc
rm -rf $TmpDir
echo "extracting FPC from local svn ..."
@ -65,7 +65,7 @@ fi
perl replace_in_files.pl -sR -f '=\d.\d.\d' -r =$CompilerVersionStr -m 'Makefile(.fpc)?' $TmpDir/*
# create a source tar.gz
cd /tmp
cd $TmpDir
tar -czf ~/rpmbuild/SOURCES/fpc-2.1.1-$LazRelease.source.tar.gz fpc
# remove the tempdir

View File

@ -35,7 +35,8 @@ if [ ! -f $FPCRPM ]; then
exit
fi
TmpFPCDir=~/tmp/fpc
User=`whoami`
TmpFPCDir=/tmp/$User/fpc
if [ -e $TmpFPCDir ]; then
rm -rf $TmpFPCDir
fi
@ -61,7 +62,7 @@ svn export $LazSrcDir $TmpDir
# create a source tar.gz
cd $TmpDir/..
tar -czf ~/rpmbuild/SOURCES/lazarus-$LazVersion-$Date.source.tar.gz lazarus
tar -czf ~/rpmbuild/SOURCES/lazarus-$LazVersion-$Date.tar.gz lazarus
# remove the tempdir
cd -

View File

@ -66,7 +66,8 @@ cp -a packages fpcsrc
rm -rf packages/extra/amunits
rm -rf packages/extra/winunits
STARTPP=`which %{ppcname}`
# STARTPP=`which %{ppcname}`
STARTPP=/usr/local/bin/ppc386
NEWPP=`pwd`/compiler/%{ppcname}
NEWFPDOC=`pwd`/utils/fpdoc/fpdoc
DATA2INC=`pwd`/utils/data2inc

View File

@ -24,7 +24,11 @@ component library - LCL, which is also included in this package.
%build
cd lazarus
make OPT="-Fl/opt/gnome/lib"
MAKEOPTS="-Fl/opt/gnome/lib"
if [ -n "$FPCCfg" ]; then
MAKEOPTS="$MAKEOPTS -n @$FPCCfg"
fi
make OPT="$MAKEOPTS"
strip lazarus
strip startlazarus