X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1fded56b375bf7a4687af1cdb182899614c1b2a8..199fbd7093daca4902bb42c9791574ad91d12565:/wxPython/distrib/wxPythonFull.spec.in diff --git a/wxPython/distrib/wxPythonFull.spec.in b/wxPython/distrib/wxPythonFull.spec.in index 15bb0ea82b..a0f1ca2b36 100644 --- a/wxPython/distrib/wxPythonFull.spec.in +++ b/wxPython/distrib/wxPythonFull.spec.in @@ -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