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..."
39 rpmbuild
--define "_topdir $PWD/$rpmtop" \
40 --define "_tmppath $PWD/$rpmtop/tmp" \
41 --define "release ${RELEASE}_py$1" \
44 --define "unicode $3" \
54 echo "*** Setting up RPM build dirs"
55 for dir
in SPECS BUILD RPMS SOURCES SRPMS tmp
; do
56 if [ ! -d $rpmtop/$dir ]; then
61 cp wxPython
-src-$VERSION.
tar.gz
$rpmtop/SOURCES
63 echo "******************** PYVER = " $PYVER
65 echo "Building the RPMs for Python $ver..."
67 DoRPMBuild
$ver gtk2
1
68 DoRPMBuild
$ver gtk2
0
72 echo "*** Moving RPMs to ."
73 find $rpmtop -name "*.rpm"
74 mv -f `find $rpmtop -name "*.rpm"` .
77 if [ $SKIPCLEAN != yes ]; then
78 echo "*** Cleaning up $rpmtop"
85 echo "-=-=-=- Goodbye! -=-=-=-"