From 7cee2070650f755db4e7daf38eff2eba94af7122 Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Fri, 8 Feb 2019 09:14:44 +0100 Subject: [PATCH] Avoid hardcoding the prefix in wx-config When building flatpak modules, the prefix is /app and hardcoding /usr no longer works. --- wxGTK3.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/wxGTK3.spec b/wxGTK3.spec index 550b052..0650bf2 100644 --- a/wxGTK3.spec +++ b/wxGTK3.spec @@ -326,6 +326,7 @@ popd rm %{buildroot}%{_bindir}/wx-config ##Install new and symlink install -p -D -m 755 %{SOURCE10} %{buildroot}%{_libexecdir}/%{name}/wx-config +sed -i -e 's|=/usr|=%{_prefix}|' %{buildroot}%{_libexecdir}/%{name}/wx-config ln -s ../..%{_libexecdir}/%{name}/wx-config %{buildroot}%{_bindir}/wx-config-3.0 touch %{buildroot}%{_bindir}/wx-config