2
0
Fridrich Strba 2009-11-14 09:21:46 +00:00 committed by Git OBS Bridge
parent 2d2d29d302
commit 71f912825a

View File

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