From: Richard W.M. Jones <"Richard W.M. Jones "> Date: Wed, 18 Feb 2009 17:13:37 +0000 (+0000) Subject: Added XQilla (NOT WORKING). X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=6c4ab3fab36081b7301371328d88da89a634e736;p=fedora-mingw.git Added XQilla (NOT WORKING). --- diff --git a/xqilla/mingw32-xqilla.spec b/xqilla/mingw32-xqilla.spec new file mode 100644 index 0000000..1fd0dd4 --- /dev/null +++ b/xqilla/mingw32-xqilla.spec @@ -0,0 +1,91 @@ +%define __strip %{_mingw32_strip} +%define __objdump %{_mingw32_objdump} +%define _use_internal_dependency_generator 0 +%define __find_requires %{_mingw32_findrequires} +%define __find_provides %{_mingw32_findprovides} + +Name: mingw32-xqilla +Version: 2.1.3 +Release: 1%{?dist} +Summary: XQilla is an XQuery and XPath 2.0 library, built on top of Xerces-C + +License: ASL 2.0 +Group: Development/Libraries + +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 + +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch + +BuildRequires: mingw32-filesystem >= 35 +BuildRequires: mingw32-gcc +BuildRequires: mingw32-gcc-c++ +BuildRequires: mingw32-binutils + +BuildRequires: mingw32-xerces-c >= 2.8.0 +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 +on Xerces-C. It implements the DOM 3 XPath API, as well as having it's own +more powerful API. It conforms to the W3C proposed recomendation of XQuery +and XPath 2.0. + + +%prep +%setup -q -b 1 -n XQilla-%{version} +%patch1 + + +%build +rm -f aclocal.m4 +aclocal +libtoolize --force --copy +automake --add-missing --copy --force +autoconf + +%{_mingw32_configure} \ + --disable-static \ + --disable-rpath \ + --with-xerces=%{xercesc_build_root} +make %{?_smp_mflags} + + +%install +rm -rf $RPM_BUILD_ROOT + +export CPPROG="cp -p" +make install DESTDIR=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -name '*.la' -exec rm -f '{}' ';' +mkdir -p $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}-%{version} +cp -pr ChangeLog LICENSE $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}-%{version} +cp -pr docs/dom3-api docs/simple-api \ + $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}-%{version} +for file in `find $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}-%{version}`; do\ + if ! [ -s "$file" ]; then rm -f "$file"; fi; +done + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root) +%doc LICENSE +%{_mingw32_bindir}/foo.dll +%{_mingw32_libdir}/foo.dll.a + + +%changelog +* Wed Feb 18 2009 Richard W.M. Jones - 2.1.3-1 +- Initial RPM release. diff --git a/xqilla/xqilla-xercesc-libdir.patch b/xqilla/xqilla-xercesc-libdir.patch new file mode 100644 index 0000000..2f75b8f --- /dev/null +++ b/xqilla/xqilla-xercesc-libdir.patch @@ -0,0 +1,18 @@ +--- ./configure.in 2008-08-29 13:44:16.000000000 +0200 ++++ ./configure.in 2008-08-29 13:45:53.000000000 +0200 +@@ -71,11 +71,11 @@ AC_MSG_RESULT($with_xerces) + if test "$with_xerces" = "no"; then + with_xerces="/usr/local" + fi +-if test `ls $with_xerces/lib/libxerces-c.*2[[6-8]].* 2>/dev/null | wc -l` -gt 0 ; then +- AC_MSG_CHECKING([for Xerces C++ version from source tree]) +- xerces_version=`ls "$with_xerces"/lib/libxerces-c.*[[0-9]][[0-9]].* | tail -1 | sed 's/.*xerces-c.*\([[0-9]]\)\([[0-9]]\).*/\1.\2/'` ++if test `ls $libdir/libxerces-c.*2[[6-8]].* 2>/dev/null | wc -l` -gt 0 ; then ++ AC_MSG_CHECKING([for Xerces C++ version from installed library]) ++ xerces_version=`ls "$libdir"/libxerces-c.*[[0-9]][[0-9]].* | tail -1 | sed 's/.*xerces-c.*\([[0-9]]\)\([[0-9]]\).*/\1.\2/'` + AC_MSG_RESULT([$xerces_version]) +- xerces_lib="$with_xerces/lib" ++ xerces_lib="$libdir" + xerces_include_dir="$with_xerces/src" + xerces_include="-I$with_xerces/src" + elif test `ls $with_xerces/lib/libxerces-c*2[[6-8]].* 2>/dev/null | wc -l` -gt 0 ; then