2 # ---------------------------------------------------------------------------
3 # Build the wxPython source RPMs on a Linux box. This is normally called
4 # from build-all but it should be able to be used standalone too...
6 # The command line must have the following parameters:
8 # 1. the path of the build dir. The src RPMs will be here when we start
9 # and the binary RPMs will be left here when we're done.
10 # 2. skipclean flag (yes|no)
12 # 4. the remaining args are the versions of Python to build for
14 # ---------------------------------------------------------------------------
19 echo "-=-=-=- Hello from $HOSTNAME -=-=-=-"
22 echo "Usage: $0 WXDIR DESTDIR SKIPCLEAN VERSION PYVER CHARTYPE"
34 if which rpmbuild
> /dev
/null
2>&1; then
46 echo "-=-=-=-=-=-=-=-=-=-=-"
48 echo "-=-=-=-=-=-=-=-=-=-=-"
50 $RPMBUILD --define "_topdir $PWD/$rpmtop" \
51 --define "_tmppath $PWD/$rpmtop/tmp" \
52 --define "release ${RELEASE}_py$1" \
55 --define "unicode $3" \
65 echo "*** Setting up RPM build dirs"
66 for dir
in SPECS BUILD RPMS SOURCES SRPMS tmp
; do
67 if [ ! -d $rpmtop/$dir ]; then
72 cp wxPython
-src-$VERSION.
tar.bz2
$rpmtop/SOURCES
74 echo "************************************************"
75 echo "Building the RPMs for Python $PYVER, $CHARTYPE"
77 ## for now let's just do the gtk2 builds
78 ##if [ $CHARTYPE = both -o $CHARTYPE = ansi ]; then
79 ## DoRPMBuild $ver gtk 0
82 if [ $CHARTYPE = both
-o $CHARTYPE = ansi
]; then
83 DoRPMBuild
$PYVER gtk2
0
85 if [ $CHARTYPE = both
-o $CHARTYPE = unicode
]; then
86 DoRPMBuild
$PYVER gtk2
1
90 echo "*** Moving RPMs to ."
91 find $rpmtop -name "*.rpm"
92 mv -f `find $rpmtop -name "*.rpm"` .
95 if [ $SKIPCLEAN != yes ]; then
96 echo "*** Cleaning up $rpmtop"
103 echo "-=-=-=- Goodbye! -=-=-=-"