+# XQilla requires a _built_ copy of Xerces-C. Thus we have to build
+# one first, copying much of the code from 'mingw32-xerces-c.spec'.
+# Native Fedora package instead patches the configure script to look
+# at the installed copy.
+pushd xerces-c-src_2_8_0
+export XERCESCROOT="$PWD"
+cd $XERCESCROOT/src/xercesc
+CXXFLAGS="%{_mingw32_cflags}" \
+CFLAGS="%{_mingw32_cflags}" \
+./runConfigure \
+ -pmingw-msys \
+ -c%{_mingw32_cc} \
+ -x%{_mingw32_cxx} \
+ -minmem \
+ -nwinsock \
+ -tWin32 \
+ -b32 \
+ -P %{_mingw32_prefix} \
+ -C --libdir="%{_mingw32_libdir}" -C --host=%{_mingw32_host}
+%{__make} DLLWRAP=%{_mingw32_dllwrap}
+popd
+