From 88192a6102de784c4a5ab14853a174860eed8bf22d454b8b44c0dd566df25035 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Tue, 31 Mar 2015 20:44:17 +0000 Subject: [PATCH] Support for program plugin directory structure OBS-URL: https://build.opensuse.org/package/show/windows:mingw:win64/mingw64-filesystem?expand=0&rev=90 --- mingw64-filesystem.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/mingw64-filesystem.spec b/mingw64-filesystem.spec index 1cf8064..b12db47 100644 --- a/mingw64-filesystem.spec +++ b/mingw64-filesystem.spec @@ -18,7 +18,7 @@ %define debug_package %{nil} Name: mingw64-filesystem -Version: 20130610 +Version: 20150401 Release: 0 Summary: MinGW base filesystem and environment License: GPL-2.0+ @@ -103,6 +103,12 @@ mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32/sys-root/mingw%{_localstatedi (cd %{buildroot}%{_prefix}/x86_64-w64-mingw32/sys-root && ln -s mingw x86_64-w64-mingw32) +# Let programs locate their plugins relative to the executable without using +# upward movement ("..") in those packages, cf. libdbi, libenchant. +# +mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32/sys-root/mingw/bin/lib +ln -s ../../lib "%buildroot/%_prefix/x86_64-w64-mingw32/sys-root/mingw/bin/lib/x86_64-pc" + mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32/sys-root/mingw/share mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32/sys-root/mingw/share/doc mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32/sys-root/mingw/share/info