1 %define __strip %{_mingw32_strip}
2 %define __objdump %{_mingw32_objdump}
3 %define _use_internal_dependency_generator 0
4 %define __find_requires %{_mingw32_findrequires}
5 %define __find_provides %{_mingw32_findprovides}
10 Summary: XQilla is an XQuery and XPath 2.0 library, built on top of Xerces-C
13 Group: Development/Libraries
15 URL: http://xqilla.sourceforge.net/HomePage
16 Source0: http://downloads.sourceforge.net/xqilla/XQilla-%{version}.tar.gz
17 Source1: http://www.apache.org/dist/xerces/c/2/sources/xerces-c-src_2_8_0.tar.gz
19 Patch1: xqilla-xercesc-libdir.patch
21 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
24 BuildRequires: mingw32-filesystem >= 35
25 BuildRequires: mingw32-gcc
26 BuildRequires: mingw32-gcc-c++
27 BuildRequires: mingw32-binutils
29 BuildRequires: mingw32-xerces-c >= 2.8.0
30 BuildRequires: autoconf, automake, libtool
31 BuildRequires: doxygen, graphviz
33 %define xercesc_dir xerces-c-src_2_8_0
34 %define xercesc_build_root %{_builddir}/%{xercesc_dir}
38 XQilla is an XQuery and XPath 2.0 implementation written in C++ and based
39 on Xerces-C. It implements the DOM 3 XPath API, as well as having it's own
40 more powerful API. It conforms to the W3C proposed recomendation of XQuery
45 %setup -q -b 1 -n XQilla-%{version}
52 libtoolize --force --copy
53 automake --add-missing --copy --force
56 %{_mingw32_configure} \
59 --with-xerces=%{xercesc_build_root}
64 rm -rf $RPM_BUILD_ROOT
67 make install DESTDIR=$RPM_BUILD_ROOT
68 find $RPM_BUILD_ROOT -name '*.la' -exec rm -f '{}' ';'
69 mkdir -p $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}-%{version}
70 cp -pr ChangeLog LICENSE $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}-%{version}
71 cp -pr docs/dom3-api docs/simple-api \
72 $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}-%{version}
73 for file in `find $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}-%{version}`; do\
74 if ! [ -s "$file" ]; then rm -f "$file"; fi;
79 rm -rf $RPM_BUILD_ROOT
85 %{_mingw32_bindir}/foo.dll
86 %{_mingw32_libdir}/foo.dll.a
90 * Wed Feb 18 2009 Richard W.M. Jones <rjones@redhat.com> - 2.1.3-1
91 - Initial RPM release.