]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/distrib/makerpm
SourceForge patch #654210 to fix naming/numbering shared libs under OS X
[wxWidgets.git] / wxPython / distrib / makerpm
index cbd77a7bb06f4f56162b1e262a34d073339be74e..ccb1f5bb9eaf2aca1acc655bf5f1d7c97ecc75c6 100755 (executable)
@@ -14,13 +14,13 @@ fi
 # Initialization
 
 distdir=`pwd`/dist
-builddir=`pwd`/build_rpm
+builddir=`pwd`/_build_rpm
 rpmtop=${builddir}/rpmtop
 cvsroot=:pserver:anoncvs@cvs.wxwindows.org:/home/wxcvs
 pythonbin=/usr/bin/python
 port=GTK
 lcport=gtk
-tarname=wxPythonFull
+tarname=wxPythonSrc
 debug=0
 
 
@@ -54,6 +54,9 @@ version=$2
 pyver=$3
 shift;shift;shift
 
+ver2=`echo ${version} | cut -c 1,2,3`
+tarver=${tarname}-${version}
+
 
 python=${pythonbin}${pyver}
 if [ ! -e ${python} ]; then
@@ -71,6 +74,8 @@ function makespec {
        | sed s:@PORT@:${port}:g \
        | sed s:@LCPORT@:${lcport}:g \
        | sed s:@TARNAME@:${tarname}:g \
+       | sed s:@VERSION@:${version}:g \
+       | sed s:@VER2@:${ver2}:g \
        > ${distdir}/wxPython${port}.spec
 }
 
@@ -93,8 +98,6 @@ for flag in $*; do
 done
 
 
-tarver=${tarname}-${version}
-
 #----------------------------------------------------------------------
 # Setup build dirs
 
@@ -135,7 +138,9 @@ if [ -z "${skipcvs}" ]; then
     rm `find . -name .cvsignore`
     rm *.spec
     rm -rf demos
-#     rm -rf docs
+#    rm -rf docs
+    rm -rf docs/html
+    rm -rf docs/latex
     rm -rf samples
     rm -rf utils
 #     rm -rf include/wx/mgl
@@ -145,6 +150,7 @@ if [ -z "${skipcvs}" ]; then
 #     rm -rf src/motif
 #     rm -rf src/os2
     rm -rf wxPython/wxSWIG
+    rm -rf wxPython/tests
 
     popd > /dev/null
     popd > /dev/null
@@ -152,12 +158,13 @@ fi
 
 
 #----------------------------------------------------------------------
-# Make the spec file and copy to ${builddir}/${tarver}
+# Make the spec file and copy to ${builddir}/${tarver} so it will be
+# in the tar file when it's built
+
+# TODO?  Output all combinations of spec files to put in the tar file??
 
-#if [ -z "${skiptar}" ]; then
-    makespec
-    cp ${distdir}/wxPython${port}.spec ${builddir}/${tarver}/wxPython${port}.spec
-#fi
+makespec
+cp ${distdir}/wxPython${port}.spec ${builddir}/${tarver}/wxPython${port}.spec
 
 
 #----------------------------------------------------------------------
@@ -190,6 +197,7 @@ if [ -z "${skiprpm}" ]; then
        echo "*** RPM failure, exiting."
        exit 1
     else
+       echo "*** Moving RPMs to ${distdir}"
        mv -f `find ${rpmtop} -name "wxPython*.rpm"` ${distdir}
     fi
 fi