X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/28d1454afff5ae41bb10cd511f308849b4390abf..d8d7193d767beecab7335e58df1fa0d25ae1e2ea:/wxPython/distrib/all/build-linux diff --git a/wxPython/distrib/all/build-linux b/wxPython/distrib/all/build-linux index f0660d8626..0a2e6b882e 100755 --- a/wxPython/distrib/all/build-linux +++ b/wxPython/distrib/all/build-linux @@ -31,12 +31,19 @@ PYVER=$@ rpmtop=_rpm_top +if which rpmbuild > /dev/null 2>&1; then + RPMBUILD=rpmbuild +else + RPMBUILD=rpm +fi + + function DoRPMBuild { # $1 : python version # $2 : port # $3 : unicode - rpmbuild --define "_topdir $PWD/$rpmtop" \ + $RPMBUILD --define "_topdir $PWD/$rpmtop" \ --define "_tmppath $PWD/$rpmtop/tmp" \ --define "release ${RELEASE}_py$1" \ --define "pyver $1" \