]> git.saurik.com Git - wxWidgets.git/commitdiff
RPM tweaks
authorRobin Dunn <robin@alldunn.com>
Sun, 18 Jan 2004 00:13:51 +0000 (00:13 +0000)
committerRobin Dunn <robin@alldunn.com>
Sun, 18 Jan 2004 00:13:51 +0000 (00:13 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25221 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/distrib/makerpm
wxPython/distrib/wxPythonFull.spec.in

index d4df0c35c5d1f85ea42520ab0947299713d273c3..3bc3a4d7553bad21adeb8115c9693b0b20c997d0 100755 (executable)
@@ -49,7 +49,7 @@ function usage {
 #    echo "   smp            Add SMP=2 to the envivonment to speed wxGTK build"
 }
 
-if [ $# -lt 2 ]; then
+if [ $# -lt 1 ]; then
     usage
     exit 1
 fi
index fe282b967a69ee39bc3bde6c5da5628dc9292dd3..f36dd6e81e21ee042ff9b90f13e3dd284ad00c0a 100644 (file)
@@ -127,13 +127,12 @@ make -C contrib/src/stc
 make -C contrib/src/xrc
 
 
-# Install wxWindows and the contribs so the wxPython build can find
-# all the headers it needs
-make prefix=$RPM_BUILD_ROOT%{wxpref} install
-make -C contrib/src/gizmos prefix=$RPM_BUILD_ROOT%{wxpref} install
-make -C contrib/src/ogl CXXFLAGS="-DwxUSE_DEPRECATED=0" prefix=$RPM_BUILD_ROOT%{wxpref} install
-make -C contrib/src/stc prefix=$RPM_BUILD_ROOT%{wxpref} install
-make -C contrib/src/xrc prefix=$RPM_BUILD_ROOT%{wxpref} install
+# Link the contrib header directories in place so we can build all of
+# wxPython without installing wxWindows
+if [ ! -e $WXDIR/include/wx/gizmos ]; then
+       cd $WXDIR/include/wx
+       ln -s ../../contrib/include/wx/* .
+fi
 
 
 # Now build wxPython
@@ -142,10 +141,9 @@ cd $WXDIR/wxPython
        NO_SCRIPTS=1 \
        WXPORT=%{lcport} \
        UNICODE=%{unicode} \
-       WX_CONFIG="$RPM_BUILD_ROOT%{wxpref}/bin/wx-config --prefix=$RPM_BUILD_ROOT%{wxpref}" \
+       WX_CONFIG="$WXDIR/bld/wx-config --prefix=$WXDIR --exec-prefix=$WXDIR/bld" \
        build
 
-## $WXDIR/bld/wx-config --prefix=$WXDIR --exec-prefix=$WXDIR/bld" 
 
 # Build wxrc (XRC resource tool)
 cd $WXDIR/bld/contrib/utils/wxrc
@@ -153,6 +151,21 @@ make
 strip wxrc
 
 
+#----------------------------------------------------------------
+%install
+
+WXDIR=`pwd`
+cd bld
+
+# Install wxWindows and the contribs so the wxPython build can find
+# all the headers it needs
+make prefix=$RPM_BUILD_ROOT%{wxpref} install
+make -C contrib/src/gizmos prefix=$RPM_BUILD_ROOT%{wxpref} install
+make -C contrib/src/ogl CXXFLAGS="-DwxUSE_DEPRECATED=0" prefix=$RPM_BUILD_ROOT%{wxpref} install
+make -C contrib/src/stc prefix=$RPM_BUILD_ROOT%{wxpref} install
+make -C contrib/src/xrc prefix=$RPM_BUILD_ROOT%{wxpref} install
+
+
 # install wxPython
 cd $WXDIR/wxPython
 %{python} setup.py \
@@ -164,11 +177,7 @@ cd $WXDIR/wxPython
        --root=$RPM_BUILD_ROOT
 
 
-#----------------------------------------------------------------
-%install
 
-# Other "install" tasks...
-WXDIR=`pwd`
 cd $WXDIR/wxPython
 
 # install the wxPython headers
@@ -206,10 +215,6 @@ done
 cp $WXDIR/bld/contrib/utils/wxrc/wxrc $RPM_BUILD_ROOT%{pref}/bin
 
 
-# link specific name to generic name
-##ln -s wxPython-%{version} $RPM_BUILD_ROOT%{wxprefbase}
-
-
 # install KDE & GNOME menus
 mkdir -p $RPM_BUILD_ROOT%{_datadir}/applnk/Development
 mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications