]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/distrib/wxPythonFull.spec.in
generate a text event even if SetValue() didn't really chaneg anything
[wxWidgets.git] / wxPython / distrib / wxPythonFull.spec.in
index 15bb0ea82b7bd7f42242c9eb1c507cd6c49537b4..a0f1ca2b3651d16c4d4371242dd09dc6a9c0a465 100644 (file)
@@ -8,7 +8,8 @@
 %define version @VERSION@
 %define ver2    @VER2@
 %define release 1
-%define wxpref  %{pref}/lib/wxPython
+%define wxpref  %{pref}/lib/wxPython-%{version}
+%define wxprefbase %{pref}/lib/wxPython
 %define name    wxPython%{port}-py%{pyver}
 
 
@@ -272,6 +273,18 @@ $GFL    $RPM_BUILD_ROOT %{wxpref}/bin/wx-config    >> DEVELLIST
 ##%postun
 ##%{clean_menus}
 
+
+%post
+if [ -e %{wxprefbase} ]; then
+       rm %{wxprefbase}
+fi
+ln -s %{wxpref} %{wxprefbase}
+
+%postun
+if [ -e %{wxprefbase} ]; then
+       rm %{wxprefbase}
+fi
+
 #----------------------------------------------------------------
 %clean
 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT