+for d in %{subdirs}; do
+ # As above ... WTF is Qt doing confusing make and make install??
+ rm -rf tmp/obj/release_shared/qt_pch.h.gch
+ mkdir -p tmp/obj/release_shared/qt_pch.h.gch
+ rm -rf tmp/obj/release_shared/qt_gui_pch.h.gch
+ mkdir -p tmp/obj/release_shared/qt_gui_pch.h.gch
+
+ pushd $d
+ make %{?_smp_mflags} INSTALL_ROOT=$RPM_BUILD_ROOT install
+ popd
+done
+
+# Qt ignores our carefully configured directories and just
+# puts stuff in default directories. Move them to the proper
+# places ...
+# (Actually this may be because we are using the native qmake)
+mkdir -p $RPM_BUILD_ROOT%{_mingw32_includedir}
+mv $RPM_BUILD_ROOT%{_includedir}/* $RPM_BUILD_ROOT%{_mingw32_includedir}
+mkdir -p $RPM_BUILD_ROOT%{_mingw32_bindir}
+mkdir -p $RPM_BUILD_ROOT%{_mingw32_libdir}
+mv $RPM_BUILD_ROOT%{_libdir}/*.dll $RPM_BUILD_ROOT%{_mingw32_bindir}
+mv $RPM_BUILD_ROOT%{_libdir}/*.a $RPM_BUILD_ROOT%{_mingw32_libdir}
+rm $RPM_BUILD_ROOT%{_libdir}/qt4/bin/*
+rm $RPM_BUILD_ROOT%{_libdir}/*.prl
+
+# Cross-compiler qmake specs.
+mkdir -p $RPM_BUILD_ROOT%{_libdir}/qt4/mkspecs/fedora-win32-cross
+cp %{SOURCE3} %{SOURCE4} \
+ $RPM_BUILD_ROOT%{_libdir}/qt4/mkspecs/fedora-win32-cross