From 71f912825af80a64180f447a91c9fe06bf4cc6eeb852df753b56995c94393f94 Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Sat, 14 Nov 2009 09:21:46 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/windows:mingw:win32/mingw32-runtime?expand=0&rev=6 --- mingw32-runtime.spec | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/mingw32-runtime.spec b/mingw32-runtime.spec index 7bd89d8..1046a10 100644 --- a/mingw32-runtime.spec +++ b/mingw32-runtime.spec @@ -44,13 +44,15 @@ make %install rm -rf $RPM_BUILD_ROOT +# The make install installs in %{_prefix}/%{_mingw32_target}/lib +# which is the wrong location. Move it to %{_mingw64_libdir}. +mkdir -p $RPM_BUILD_ROOT%{_mingw32_libdir} +mkdir -p $RPM_BUILD_ROOT%{_prefix}/%{_mingw32_target} +ln -s $RPM_BUILD_ROOT%{_mingw32_libdir} $RPM_BUILD_ROOT%{_prefix}/%{_mingw32_target}/lib + make DESTDIR=$RPM_BUILD_ROOT install -# The above installs in /usr/x86_64-pc-mingw32/sys-root/x86_64-pc-mingw32/lib -# which is the wrong location. Move it to %{_mingw32_libdir}. -mkdir -p $RPM_BUILD_ROOT%{_mingw32_libdir} -mv $RPM_BUILD_ROOT%{_prefix}/%{_mingw32_target}/lib/* \ - $RPM_BUILD_ROOT%{_mingw32_libdir} +rm -f $RPM_BUILD_ROOT%{_prefix}/%{_mingw32_target}/lib %clean rm -rf $RPM_BUILD_ROOT