Avoid hardcoding the prefix in wx-config

When building flatpak modules, the prefix is /app and hardcoding /usr
no longer works.
epel8
Kalev Lember 6 years ago
parent b72e5fd82f
commit 7cee207065

@ -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

Loading…
Cancel
Save