%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}
##%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