[xqilla/f16] take ownership of xqilla use system xqc instead of embedded header add man page (courtesy of debian)

Haïkel Guémar hguemar at fedoraproject.org
Tue Aug 9 06:43:34 UTC 2011


commit 43ed6080980b237d253ebe5ea8047c52f97bb21d
Author: Haikel Guemar <hguemar at fedoraproject.org>
Date:   Tue Aug 9 08:37:03 2011 +0200

    take ownership of xqilla
    use system xqc instead of embedded header
    add man page (courtesy of debian)
    spec cleanup

 dead.package                        |    1 -
 sources                             |    1 +
 xqilla-2.2.4-gcc46.patch            |   11 ++
 xqilla-2.2.4-use-system-xqc.h.patch |   22 +++++
 xqilla.1                            |  113 +++++++++++++++++++++++
 xqilla.spec                         |  173 +++++++++++++++++++++++++++++++++++
 6 files changed, 320 insertions(+), 1 deletions(-)
---
diff --git a/sources b/sources
new file mode 100644
index 0000000..e79b137
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+a00672133d06772f54f18d0fda304c02  XQilla-2.2.4.tar.gz
diff --git a/xqilla-2.2.4-gcc46.patch b/xqilla-2.2.4-gcc46.patch
new file mode 100644
index 0000000..83c450a
--- /dev/null
+++ b/xqilla-2.2.4-gcc46.patch
@@ -0,0 +1,11 @@
+diff -up XQilla-2.2.4/include/xqilla/framework/XPath2MemoryManager.hpp.gcc46 XQilla-2.2.4/include/xqilla/framework/XPath2MemoryManager.hpp
+--- XQilla-2.2.4/include/xqilla/framework/XPath2MemoryManager.hpp.gcc46	2010-01-13 17:40:36.000000000 +0200
++++ XQilla-2.2.4/include/xqilla/framework/XPath2MemoryManager.hpp	2011-03-10 13:48:18.679481503 +0200
+@@ -24,6 +24,7 @@
+ 
+ #include <algorithm>
+ #include <assert.h>
++#include <cstddef>
+ 
+ #include <xqilla/framework/XQillaExport.hpp>
+ 
diff --git a/xqilla-2.2.4-use-system-xqc.h.patch b/xqilla-2.2.4-use-system-xqc.h.patch
new file mode 100644
index 0000000..a41c67a
--- /dev/null
+++ b/xqilla-2.2.4-use-system-xqc.h.patch
@@ -0,0 +1,22 @@
+diff --git a/include/Makefile.am b/include/Makefile.am
+index 6461800..19c1cc2 100644
+--- a/include/Makefile.am
++++ b/include/Makefile.am
+@@ -1,5 +1,4 @@
+ nobase_include_HEADERS = \
+-xqc.h \
+ xqilla/xqilla-dom3.hpp \
+ xqilla/xqilla-simple.hpp \
+ xqilla/xqilla-xqc.h \
+diff --git a/include/Makefile.in b/include/Makefile.in
+index ccf0fb8..800fa16 100644
+--- a/include/Makefile.in
++++ b/include/Makefile.in
+@@ -216,7 +216,6 @@ xerces_include = @xerces_include@
+ xerces_include_dir = @xerces_include_dir@
+ xerces_lib = @xerces_lib@
+ nobase_include_HEADERS = \
+-xqc.h \
+ xqilla/xqilla-dom3.hpp \
+ xqilla/xqilla-simple.hpp \
+ xqilla/xqilla-xqc.h \
diff --git a/xqilla.1 b/xqilla.1
new file mode 100644
index 0000000..c262335
--- /dev/null
+++ b/xqilla.1
@@ -0,0 +1,113 @@
+.\"  -*- nroff -*-
+.\"
+.\" This manual page xqilla.1 is based on xqilla help output.
+.\"
+.\" Author: Tommi Vainikainen <thv at iki.fi>
+.\"
+.\" Copyright (c) 2001-2008
+.\"     DecisionSoft Limited. All rights reserved.
+.\" Copyright (c) 2004-2008
+.\"     Oracle. All rights reserved.
+.\" Copyright (C) 2010
+.\"     Tommi Vainikainen. No rights reserved.
+.\"
+.\" Licensed under the Apache License, Version 2.0 (the "License");
+.\" you may not use this file except in compliance with the License.
+.\" You may obtain a copy of the License at
+.\"
+.\"     http://www.apache.org/licenses/LICENSE-2.0
+.\"
+.\" Unless required by applicable law or agreed to in writing, software
+.\" distributed under the License is distributed on an "AS IS" BASIS,
+.\" WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+.\" See the License for the specific language governing permissions and
+.\" limitations under the License.
+.\"
+.\" Created: 2010-01-21
+.\"
+.TH XQILLA "1" "January 2010" "xqilla" "User Commands"
+.SH NAME
+xqilla \- run XQuery and XPath 2 expressions
+.SH SYNOPSIS
+.B xqilla
+[\fIOPTION\fR]... \fXQUERY-FILE\fR...
+.SH DESCRIPTION
+Run XQuery and XPath 2 expressions from QUERY-FILE.
+.TP
+\fB\-h\fR
+Show help and exit
+.TP
+\fB\-p\fR
+Parse in XPath 2 mode (default is XQuery mode)
+.TP
+\fB\-P\fR
+Parse in XPath 1.0 compatibility mode (default is XQuery mode)
+.TP
+\fB\-s\fR
+Parse XSLT 2.0
+.TP
+\fB\-f\fR
+Parse using W3C Full-Text extensions
+.TP
+\fB\-u\fR
+Parse using W3C Update extensions
+.TP
+\fB\-e\fR
+Parse using XQilla specific extensions
+.TP
+\fB\-d\fR
+Run the query in interactive debugging mode
+.TP
+\fB\-x\fR
+Use the Xerces-C data model (default is the FastXDM)
+.TP
+\fB\-i\fR \fIfile\fR
+Load XML document and bind it as the context item
+.TP
+\fB\-b\fR \fIbaseURI\fR
+Set the base URI for the context
+.TP
+\fB\-v\fR \fIname\fR \fIvalue\fR
+Bind the name value pair as an external variable
+.TP
+\fB\-o\fR \fIfile\fR
+Write the result to the specified file
+.TP
+\fB\-n\fR \fInumber\fR
+Run the queries a number of times
+.TP
+\fB\-q\fR
+Quiet mode - no output
+.TP
+\fB\-t\fR
+Output an XML representation of the AST
+.PP
+The
+.B xqilla
+command line tool can be used to run XQuery and XPath 2
+expressions. It is also a good example of how to use the
+.B Simple API
+of the
+.B XQilla
+library.
+.SH "REPORTING BUGS"
+Report bugs to <https://sourceforge.net/projects/xqilla/support>.
+.SH COPYRIGHT
+Copyright \(co 2001-2008 DecisionSoft Limited.
+.br
+Copyright \(co 2004-2008 Oracle.
+.PP
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+<http://www.apache.org/licenses/LICENSE-2.0>
+.PP
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+.SH "SEE ALSO"
+The full documentation for the
+.B XQilla library
+is available at <http://xqilla.sourceforge.net/Documentation>.
diff --git a/xqilla.spec b/xqilla.spec
new file mode 100644
index 0000000..750c938
--- /dev/null
+++ b/xqilla.spec
@@ -0,0 +1,173 @@
+Name:           xqilla
+Version:        2.2.4
+Release:        2%{?dist}
+Summary:        XQuery and XPath 2.0 library, built on top of Xerces-C
+
+Group:          System Environment/Libraries
+License:        ASL 2.0
+URL:            http://xqilla.sourceforge.net/HomePage
+Source0:        http://downloads.sourceforge.net/xqilla/XQilla-%{version}.tar.gz
+Source1:        xqilla.1
+# patch applied upstream
+# http://xqilla.hg.sourceforge.net/hgweb/xqilla/xqilla/rev/a7d2d8d941ad
+Patch0:         xqilla-2.2.4-gcc46.patch
+# since header xqc.h is provided by xqc
+Patch1:         xqilla-2.2.4-use-system-xqc.h.patch
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildRequires:  xerces-c-devel >= 3.0.1 
+BuildRequires:  xqc
+BuildRequires:  doxygen graphviz
+
+%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 recommendation of XQuery
+and XPath 2.0.
+
+%package        devel
+Summary:        XQilla is an XQuery and XPath 2.0 library, built on top of Xerces-C
+Group:          Development/Libraries
+Requires:       %{name}%{?_isa} = %{version}-%{release}
+Requires:       xerces-c-devel%{?_isa} >= 3.0.1
+Requires:       xqc
+
+%description    devel
+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 recommendation of XQuery
+and XPath 2.0.
+
+%package        doc
+Summary:        XQilla documentation
+Group:          Documentation
+BuildArch:      noarch
+
+%description    doc
+simple-api and dom3-api documentation for XQilla.
+
+%prep
+%setup -qn XQilla-%{version}
+%patch0 -p1 -b .gcc46
+%patch1 -p1 -b .xqc
+
+%build
+# ensure that xqc.h is not used
+rm -f ./include/xqc.h
+%configure \
+  --disable-static \
+  --with-xerces=%{_prefix}
+
+# Avoid lib64 rpaths
+sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
+sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
+
+make %{?_smp_mflags}
+make docs
+
+%install
+rm -rf %{buildroot}
+# force timestamp preservation when using install program
+make install DESTDIR=%{buildroot} INSTALL="install -p"
+find %{buildroot} -name '*.la' -exec rm -f '{}' ';'
+install -D -p -m0664 %{SOURCE1} %{buildroot}/%{_mandir}/man1/%{name}.1
+
+%clean
+rm -rf %{buildroot}
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(-,root,root,-)
+%doc ChangeLog LICENSE
+%{_bindir}/xqilla
+%{_libdir}/libxqilla.so.*
+%{_mandir}/man1/%{name}.1.*
+
+%files devel
+%defattr(-,root,root,-)
+%{_libdir}/libxqilla.so
+%{_includedir}/xqilla/
+
+%files doc
+%defattr(-,root,root,-)
+%doc docs/dom3-api/ docs/simple-api/ LICENSE
+
+
+%changelog
+* Fri Aug 05 2011 Haïkel Guémar <hguemar at fedoraproject.org> - 2.2.4-2
+- revive xqilla from deprecated
+- add man page from debian for xqilla command-line tool
+- do not install bundled xqc.h and Requires: xqc
+
+* Thu Mar 10 2011 Kalev Lember <kalev at smartlink.ee> - 2.2.4-1
+- Update to 2.2.4
+- Added a patch to fix build with GCC 4.6
+
+* Thu Mar 10 2011 Kalev Lember <kalev at smartlink.ee> - 2.2.3-10
+- Rebuilt with xerces-c 3.1
+
+* Tue Feb 08 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.2.3-9
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
+
+* Fri May 14 2010 Kalev Lember <kalev at smartlink.ee> - 2.2.3-8
+- Require fully versioned main package for -devel subpackage
+- Don't build static library
+- Removed library Requires which are automatically picked up by rpm
+- Removed spurious BR autoconf automake libtool
+- Build -doc subpackage as noarch
+- Install documentation with %%doc macro
+- Use %%{_prefix} instead of hardcoding /usr
+- Use parallel make
+- Various other spec file clean ups
+
+* Mon Mar  8 2010 Jonathan Robie <jrobie at localhost.localdomain> - 2.2.3-7
+- Removed static library, per Fedora packaging guidelines.
+
+* Mon Feb  8 2010 Jonathan Robie <jrobie at localhost.localdomain> - 2.2.3-6
+- Fixed rpath problem detected by rpmlint
+
+* Fri Feb  5 2010 Jonathan Robie <jrobie at localhost.localdomain> - 2.2.3-3
+- Move to version 2.2.3, using Xerces 3.0.1
+
+* Mon Jul 27 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.1.3-0.7
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
+
+* Tue Apr 14 2009 Robert Scheck <robert at fedoraproject.org> 2.1.3-0.6
+- Added a few #include lines needed to build properly with g++ 4.4
+
+* Thu Feb 26 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.1.3-0.5
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
+
+* Wed Jan  7 2009 Milan Zazrivec <mzazrivec at redhat.com> 2.1.3-0.4
+- fixed requirements for xqilla-devel package
+
+* Tue Dec  2 2008 Milan Zazrivec <mzazrivec at redhat.com 2.1.3-0.3
+- fix for bz #473997 - xqilla : Unowned directories
+
+* Fri Aug 29 2008 Milan Zazrivec <mzazrivec at redhat.com> 2.1.3-0.2
+- Rebased XQilla to latest upstream version 2.1.3
+- Fixed files section in spec (documentation was included twice)
+
+* Fri Feb 29 2008 Milan Zazrivec <mzazrivec at redhat.com> 2.0.0-5
+- Create xqilla-doc package for xqilla documentation
+
+* Wed Feb 20 2008 Milan Zazrivec <mzazrivec at redhat.com> - 2.0.0-4
+- Fix Requires: value for xqilla-devel
+
+* Tue Feb 19 2008 Fedora Release Engineering <rel-eng at fedoraproject.org> - 2.0.0-3
+- Autorebuild for GCC 4.3
+
+* Tue Feb 19 2008 Milan Zazrivec <mazrivec at redhat.com> 2.0.0-2
+- Included Xerces-C 2.8.0 sources
+- Add missing #include <cstring> where needed (g++ 4.3 changes)
+
+* Thu Jan 10 2008 Milan Zazrivec <mzazrivec at redhat.com> 2.0.0-1
+- Removed src/mapm/mapm_mt.cpp
+- Added modified mapm_mt.c, taken from MAPM library ver. 4.9.5
+- Added parallel make
+
+* Tue Jan 08 2008 Milan Zazrivec <mzazrivec at redhat.com> 2.0.0-0
+- Initial packaging of version 2.0.0


More information about the scm-commits mailing list