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: 9b77644c8b0d0741d895d3ccfbfe0016
14 Patch0: %{name}-link.patch
15 Patch1: %{name}-soname.patch
16 URL: http://xqilla.sourceforge.net/
17 BuildRequires: autoconf >= 2.59
18 BuildRequires: automake
19 BuildRequires: faxpp-devel
21 BuildRequires: libstdc++-devel
22 BuildRequires: libtool >= 2:1.5
23 BuildRequires: rpm-build >= 4.6
24 BuildRequires: rpmbuild(macros) >= 1.752
25 BuildRequires: tidy-devel
26 BuildRequires: xerces-c-devel >= 3
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 XQilla - C++ implementation of XQuery and XPath 2.0 based on Xerces-C.
32 %description -l pl.UTF-8
33 XQilla - implementacja C++ XQuary i XPath 2.0 oparta na bibliotece
37 Summary: Header files for XQilla library
38 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki XQilla
39 Group: Development/Libraries
40 Requires: %{name} = %{version}-%{release}
42 Requires: libstdc++-devel
44 Requires: xerces-c-devel >= 3
47 Header files for XQilla library.
49 %description devel -l pl.UTF-8
50 Pliki nagłówkowe biblioteki XQilla.
53 Summary: Static XQilla library
54 Summary(pl.UTF-8): Statyczna biblioteka XQilla
55 Group: Development/Libraries
56 Requires: %{name}-devel = %{version}-%{release}
59 Static XQilla library.
61 %description static -l pl.UTF-8
62 Statyczna biblioteka XQilla.
65 Summary: XQilla API documentation
66 Summary(pl.UTF-8): Dokumentacja API biblioteki XQilla
71 API and internal documentation for XQilla library.
73 %description apidocs -l pl.UTF-8
74 Dokumentacja API biblioteki XQilla.
77 %setup -q -n XQilla-%{version}
83 %{__aclocal} -I autotools/m4
94 rm -rf $RPM_BUILD_ROOT
97 DESTDIR=$RPM_BUILD_ROOT
100 rm -rf $RPM_BUILD_ROOT
102 %post -p /sbin/ldconfig
103 %postun -p /sbin/ldconfig
106 %defattr(644,root,root,755)
108 %attr(755,root,root) %{_bindir}/xqilla
109 %attr(755,root,root) %{_libdir}/libxqilla.so.*.*.*
110 %attr(755,root,root) %ghost %{_libdir}/libxqilla.so.6
113 %defattr(644,root,root,755)
114 %attr(755,root,root) %{_libdir}/libxqilla.so
115 %{_libdir}/libxqilla.la
116 %{_includedir}/xqilla
120 %defattr(644,root,root,755)
121 %{_libdir}/libxqilla.a
125 %defattr(644,root,root,755)
126 %doc docs/{dom3-api,simple-api,xqc-api,*.html}