rpmbuild may not exist

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30277 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2004-11-04 21:56:10 +00:00
parent 610747464e
commit b8419d9a8b

View File

@@ -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" \