From 7cee2070650f755db4e7daf38eff2eba94af7122 Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Feb 08 2019 08:14:44 +0000 Subject: Avoid hardcoding the prefix in wx-config When building flatpak modules, the prefix is /app and hardcoding /usr no longer works. --- 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