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:
@@ -22,7 +22,7 @@ port=GTK
|
|||||||
lcport=gtk
|
lcport=gtk
|
||||||
unicode=0
|
unicode=0
|
||||||
tarname=wxPythonSrc
|
tarname=wxPythonSrc
|
||||||
|
rpmflag=-ba
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
# Check parameters
|
# Check parameters
|
||||||
@@ -42,6 +42,7 @@ function useage {
|
|||||||
echo " gtk2 Build using wxGTK2 and Unicode"
|
echo " gtk2 Build using wxGTK2 and Unicode"
|
||||||
echo " x11 Build using wxX11"
|
echo " x11 Build using wxX11"
|
||||||
echo " speconly Do nothing but write the RPM spec file"
|
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"
|
# 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 ;;
|
x11) port=X11; lcport=x11 ;;
|
||||||
smp) export SMP=2 ;;
|
smp) export SMP=2 ;;
|
||||||
speconly) makespec; exit 0 ;;
|
speconly) makespec; exit 0 ;;
|
||||||
|
srpm) rpmflag=-bs; ;;
|
||||||
|
|
||||||
*) echo "Unknown flag \"${flag}\""
|
*) echo "Unknown flag \"${flag}\""
|
||||||
useage
|
useage
|
||||||
@@ -199,7 +201,7 @@ fi
|
|||||||
if [ -z "${skiprpm}" ]; then
|
if [ -z "${skiprpm}" ]; then
|
||||||
echo "*** Building RPMs..."
|
echo "*** Building RPMs..."
|
||||||
cp ${distdir}/${tarver}.tar.gz ${rpmtop}/SOURCES
|
cp ${distdir}/${tarver}.tar.gz ${rpmtop}/SOURCES
|
||||||
rpmbuild -ba \
|
rpmbuild ${rpmflag} \
|
||||||
--define "_topdir ${rpmtop}" \
|
--define "_topdir ${rpmtop}" \
|
||||||
--define "_tmppath ${builddir}" \
|
--define "_tmppath ${builddir}" \
|
||||||
${distdir}/wxPython${port}.spec
|
${distdir}/wxPython${port}.spec
|
||||||
|
Reference in New Issue
Block a user