From e27b366e70fa91f5e23b46986b2041743aacdc9b Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 4 Aug 2006 23:30:43 +0000 Subject: [PATCH] convert wx-config link created by make install to use relative path, otherwise rpm creation fails git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40462 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxBase.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wxBase.spec b/wxBase.spec index f8614ab24f..3f8a054ef3 100644 --- a/wxBase.spec +++ b/wxBase.spec @@ -95,6 +95,10 @@ make -C locale allmo make -C obj-static DESTDIR=$RPM_BUILD_ROOT prefix=%{pref} install make -C obj-shared DESTDIR=$RPM_BUILD_ROOT prefix=%{pref} install +# we need to modify the absolute wx-config link to be relative or rpm complains +# (and our package wouldn't be relocatable) +ln -sf ../lib/wx/config/%{wxconfig} $RPM_BUILD_ROOT/%{pref}/bin/wx-config + %find_lang wxstd %clean