3 %bcond_without apidocs # do not build and package API docs
5 Summary: XQilla - C++ implementation of XQuery and XPath 2.0 based on Xerces-C
6 Summary(pl.UTF-8): XQilla - implementacja C++ XQuary i XPath 2.0 oparta na bibliotece Xerces-C
12 Source0: http://downloads.sourceforge.net/xqilla/XQilla-%{version}.tar.gz
13 # Source0-md5: 8ece20348687b6529bb934c17067803c
14 Patch0: %{name}-link.patch
15 Patch1: %{name}-soname.patch
16 # https://sourceforge.net/p/xqilla/bugs/48/
17 # https://sourceforge.net/p/xqilla/bugs/48/attachment/patch-src_dom-api_impl_XPathDocumentImpl.cpp
18 Patch2: %{name}-xerces-1.patch
19 # https://sourceforge.net/p/xqilla/bugs/48/attachment/patch-src_dom-api_impl_XPathNamespaceImpl.cpp
20 Patch3: %{name}-xerces-2.patch
21 URL: http://xqilla.sourceforge.net/
22 BuildRequires: autoconf >= 2.59
23 BuildRequires: automake
24 BuildRequires: faxpp-devel
26 BuildRequires: libstdc++-devel
27 BuildRequires: libtool >= 2:1.5
28 BuildRequires: tidy-devel
29 BuildRequires: xerces-c-devel >= 3
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 XQilla - C++ implementation of XQuery and XPath 2.0 based on Xerces-C.
35 %description -l pl.UTF-8
36 XQilla - implementacja C++ XQuary i XPath 2.0 oparta na bibliotece
40 Summary: Header files for XQilla library
41 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki XQilla
42 Group: Development/Libraries
43 Requires: %{name} = %{version}-%{release}
45 Requires: libstdc++-devel
47 Requires: xerces-c-devel >= 3
50 Header files for XQilla library.
52 %description devel -l pl.UTF-8
53 Pliki nagłówkowe biblioteki XQilla.
56 Summary: Static XQilla library
57 Summary(pl.UTF-8): Statyczna biblioteka XQilla
58 Group: Development/Libraries
59 Requires: %{name}-devel = %{version}-%{release}
62 Static XQilla library.
64 %description static -l pl.UTF-8
65 Statyczna biblioteka XQilla.
68 Summary: XQilla API documentation
69 Summary(pl.UTF-8): Dokumentacja API biblioteki XQilla
71 %if "%{_rpmversion}" >= "5"
76 API and internal documentation for XQilla library.
78 %description apidocs -l pl.UTF-8
79 Dokumentacja API biblioteki XQilla.
82 %setup -q -n XQilla-%{version}
101 rm -rf $RPM_BUILD_ROOT
104 DESTDIR=$RPM_BUILD_ROOT
107 rm -rf $RPM_BUILD_ROOT
109 %post -p /sbin/ldconfig
110 %postun -p /sbin/ldconfig
113 %defattr(644,root,root,755)
115 %attr(755,root,root) %{_bindir}/xqilla
116 %attr(755,root,root) %{_libdir}/libxqilla.so.*.*.*
117 %attr(755,root,root) %ghost %{_libdir}/libxqilla.so.6
120 %defattr(644,root,root,755)
121 %attr(755,root,root) %{_libdir}/libxqilla.so
122 %{_libdir}/libxqilla.la
123 %{_includedir}/xqilla
127 %defattr(644,root,root,755)
128 %{_libdir}/libxqilla.a
132 %defattr(644,root,root,755)
133 %doc docs/{dom3-api,simple-api,xqc-api,*.html}