From 867509e0e2c2587cb0fe1a3c9d30ad345060b079 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Wed, 12 Mar 2003 06:04:07 +0000 Subject: [PATCH] Add command to make only the SRPM git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@19566 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/distrib/makerpm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/wxPython/distrib/makerpm b/wxPython/distrib/makerpm index cf3ab49b75..2f09e67b88 100755 --- a/wxPython/distrib/makerpm +++ b/wxPython/distrib/makerpm @@ -22,7 +22,7 @@ port=GTK lcport=gtk unicode=0 tarname=wxPythonSrc - +rpmflag=-ba #---------------------------------------------------------------------- # Check parameters @@ -42,6 +42,7 @@ function useage { echo " gtk2 Build using wxGTK2 and Unicode" echo " x11 Build using wxX11" echo " speconly Do nothing but write the RPM spec file" + echo " srpm Only make the SRPM" # echo " smp Add SMP=2 to the envivonment to speed wxGTK build" } @@ -92,6 +93,7 @@ for flag in $*; do x11) port=X11; lcport=x11 ;; smp) export SMP=2 ;; speconly) makespec; exit 0 ;; + srpm) rpmflag=-bs; ;; *) echo "Unknown flag \"${flag}\"" useage @@ -199,7 +201,7 @@ fi if [ -z "${skiprpm}" ]; then echo "*** Building RPMs..." cp ${distdir}/${tarver}.tar.gz ${rpmtop}/SOURCES - rpmbuild -ba \ + rpmbuild ${rpmflag} \ --define "_topdir ${rpmtop}" \ --define "_tmppath ${builddir}" \ ${distdir}/wxPython${port}.spec