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
This commit is contained in:
Robin Dunn
2003-03-12 06:04:07 +00:00
parent facb711c38
commit 867509e0e2

View File

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