- rpmbuild ${rpmflag} \
- --define "_topdir ${rpmtop}" \
- --define "_tmppath ${builddir}" \
- ${distdir}/wxPython${port}.spec
- if [ "$?" != "0" ]; then
- echo "*** RPM failure, exiting."
- exit 1
- else
- echo "*** Moving RPMs to ${distdir}"
- mv -f `find ${rpmtop} -name "wxPython*.rpm"` ${distdir}
+
+ if [ "${srpmonly}" = "1" ]; then
+ rpmbuild -bs \
+ --define "_topdir ${rpmtop}" \
+ --define "_tmppath ${builddir}" \
+ --define "release 1" \
+ ${distdir}/wxPython.spec
+ if [ "$?" != "0" ]; then
+ echo "*** RPM failure, exiting."
+ exit 1
+ fi
+
+ else
+ rpmbuild -ba \
+ --define "_topdir ${rpmtop}" \
+ --define "_tmppath ${builddir}" \
+ --define "port gtk" --define "unicode 0" \
+ --define "pyver ${pyver}" \
+ ${distdir}/wxPython.spec
+ if [ "$?" != "0" ]; then
+ echo "*** RPM failure, exiting."
+ exit 1
+ fi
+
+ rpmbuild -ba \
+ --define "_topdir ${rpmtop}" \
+ --define "_tmppath ${builddir}" \
+ --define "port gtk2" --define "unicode 1" \
+ --define "pyver ${pyver}" \
+ ${distdir}/wxPython.spec
+ if [ "$?" != "0" ]; then
+ echo "*** RPM failure, exiting."
+ exit 1
+ fi