Install runtime libs to a versioned directory

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23856 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2003-09-23 16:44:38 +00:00
parent 2034324361
commit 15b6268b64

View File

@@ -8,7 +8,8 @@
%define version @VERSION@
%define ver2 @VER2@
%define release 1
%define wxpref %{pref}/lib/wxPython
%define wxprefbase %{pref}/lib/wxPython
%define wxpref %{wxprefbase}-%{version}
%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