X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=xqilla%2Fmingw32-xqilla.spec;h=fb0f506d8a4b21206fea53bd3f4eb3802f773d73;hb=3326707d2c81caadb214d41e3d2d4cce7a2bce95;hp=1fd0dd497265398d6cb3897c550aaba6c14dc429;hpb=6c4ab3fab36081b7301371328d88da89a634e736;p=fedora-mingw.git diff --git a/xqilla/mingw32-xqilla.spec b/xqilla/mingw32-xqilla.spec index 1fd0dd4..fb0f506 100644 --- a/xqilla/mingw32-xqilla.spec +++ b/xqilla/mingw32-xqilla.spec @@ -5,8 +5,8 @@ %define __find_provides %{_mingw32_findprovides} Name: mingw32-xqilla -Version: 2.1.3 -Release: 1%{?dist} +Version: 2.2.0 +Release: 3%{?dist} Summary: XQilla is an XQuery and XPath 2.0 library, built on top of Xerces-C License: ASL 2.0 @@ -16,7 +16,19 @@ URL: http://xqilla.sourceforge.net/HomePage Source0: http://downloads.sourceforge.net/xqilla/XQilla-%{version}.tar.gz Source1: http://www.apache.org/dist/xerces/c/2/sources/xerces-c-src_2_8_0.tar.gz -Patch1: xqilla-xercesc-libdir.patch +# Patch from Xerces-C. +Patch1000: xerces-c-dllwrap.patch + +# Use ifdef WIN32 instead of MSVC-specific tests. +Patch1001: xqilla-xmark-test-win32.patch + +# XQC (the C API) does not work. The library part compiles OK but for +# reasons unknown the symbols never get added to the libxqilla.dll.a +# implib. The patch disables those sample programs. +Patch1002: xqilla-no-xqc-tests.patch + +# XQLexer uses EOF symbol from stdio. +Patch1003: xqilla-lexer-cstdio.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch @@ -27,12 +39,10 @@ BuildRequires: mingw32-gcc-c++ BuildRequires: mingw32-binutils BuildRequires: mingw32-xerces-c >= 2.8.0 +BuildRequires: flex BuildRequires: autoconf, automake, libtool BuildRequires: doxygen, graphviz -%define xercesc_dir xerces-c-src_2_8_0 -%define xercesc_build_root %{_builddir}/%{xercesc_dir} - %description XQilla is an XQuery and XPath 2.0 implementation written in C++ and based @@ -42,21 +52,52 @@ and XPath 2.0. %prep -%setup -q -b 1 -n XQilla-%{version} -%patch1 +%setup -q -a 1 -n XQilla-%{version} + +pushd xerces-c-src_2_8_0 +%patch1000 -p1 +popd + +%patch1001 -p1 +%patch1002 -p1 +%patch1003 -p1 %build +# 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 + rm -f aclocal.m4 aclocal libtoolize --force --copy automake --add-missing --copy --force autoconf +MINGW32_CFLAGS="%{_mingw32_cflags} -DXQILLA_APIS" \ +MINGW32_CXXFLAGS="%{_mingw32_cflags} -DXQILLA_APIS" \ %{_mingw32_configure} \ --disable-static \ --disable-rpath \ - --with-xerces=%{xercesc_build_root} + --with-xerces=$(pwd)/xerces-c-src_2_8_0 make %{?_smp_mflags} @@ -82,10 +123,16 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc LICENSE -%{_mingw32_bindir}/foo.dll -%{_mingw32_libdir}/foo.dll.a +%{_mingw32_bindir}/i686-pc-mingw32-xqilla.exe +%{_mingw32_bindir}/libxqilla-5.dll +%{_mingw32_libdir}/libxqilla.dll.a +%{_mingw32_includedir}/xqc.h +%{_mingw32_includedir}/xqilla/ %changelog -* Wed Feb 18 2009 Richard W.M. Jones - 2.1.3-1 +* Sat Feb 21 2009 Richard W.M. Jones - 2.2.0-3 +- Rebuild for mingw32-gcc 4.4 + +* Wed Feb 18 2009 Richard W.M. Jones - 2.2.0-1 - Initial RPM release.