]> git.pld-linux.org Git - packages/xqilla.git/blame - xqilla.spec
- release 3 (rebuild with tidy 5)
[packages/xqilla.git] / xqilla.spec
CommitLineData
a0c0ca5d
JB
1#
2# Conditional build:
3%bcond_without apidocs # do not build and package API docs
266a3588 4
a0c0ca5d
JB
5Summary: XQilla - C++ implementation of XQuery and XPath 2.0 based on Xerces-C
6Summary(pl.UTF-8): XQilla - implementacja C++ XQuary i XPath 2.0 oparta na bibliotece Xerces-C
7Name: xqilla
56965b8e 8Version: 2.3.3
c606cc05 9Release: 3
a0c0ca5d
JB
10License: Apache v2.0
11Group: Libraries
12Source0: http://downloads.sourceforge.net/xqilla/XQilla-%{version}.tar.gz
56965b8e 13# Source0-md5: 8ece20348687b6529bb934c17067803c
a0c0ca5d 14Patch0: %{name}-link.patch
d531bae8 15Patch1: %{name}-soname.patch
5beb1686
JB
16# https://sourceforge.net/p/xqilla/bugs/48/
17# https://sourceforge.net/p/xqilla/bugs/48/attachment/patch-src_dom-api_impl_XPathDocumentImpl.cpp
18Patch2: %{name}-xerces-1.patch
19# https://sourceforge.net/p/xqilla/bugs/48/attachment/patch-src_dom-api_impl_XPathNamespaceImpl.cpp
20Patch3: %{name}-xerces-2.patch
a0c0ca5d
JB
21URL: http://xqilla.sourceforge.net/
22BuildRequires: autoconf >= 2.59
23BuildRequires: automake
7df9f4d7 24BuildRequires: faxpp-devel
a0c0ca5d
JB
25BuildRequires: flex
26BuildRequires: libstdc++-devel
d531bae8 27BuildRequires: libtool >= 2:1.5
a0c0ca5d
JB
28BuildRequires: tidy-devel
29BuildRequires: xerces-c-devel >= 3
30BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32%description
33XQilla - C++ implementation of XQuery and XPath 2.0 based on Xerces-C.
34
35%description -l pl.UTF-8
36XQilla - implementacja C++ XQuary i XPath 2.0 oparta na bibliotece
37Xerces-C.
38
39%package devel
40Summary: Header files for XQilla library
41Summary(pl.UTF-8): Pliki nagłówkowe biblioteki XQilla
42Group: Development/Libraries
43Requires: %{name} = %{version}-%{release}
7df9f4d7 44Requires: faxpp-devel
a0c0ca5d
JB
45Requires: libstdc++-devel
46Requires: tidy-devel
47Requires: xerces-c-devel >= 3
48
49%description devel
50Header files for XQilla library.
51
52%description devel -l pl.UTF-8
53Pliki nagłówkowe biblioteki XQilla.
54
55%package static
56Summary: Static XQilla library
57Summary(pl.UTF-8): Statyczna biblioteka XQilla
58Group: Development/Libraries
59Requires: %{name}-devel = %{version}-%{release}
60
61%description static
62Static XQilla library.
63
64%description static -l pl.UTF-8
65Statyczna biblioteka XQilla.
66
67%package apidocs
68Summary: XQilla API documentation
69Summary(pl.UTF-8): Dokumentacja API biblioteki XQilla
70Group: Documentation
266a3588
ER
71%if "%{_rpmversion}" >= "5"
72BuildArch: noarch
73%endif
a0c0ca5d
JB
74
75%description apidocs
76API and internal documentation for XQilla library.
77
78%description apidocs -l pl.UTF-8
79Dokumentacja API biblioteki XQilla.
80
81%prep
82%setup -q -n XQilla-%{version}
83%patch0 -p1
d531bae8 84%patch1 -p1
5beb1686
JB
85%patch2 -p0
86%patch3 -p0
a0c0ca5d
JB
87
88%build
89%{__libtoolize}
90%{__aclocal}
91%{__autoconf}
92%{__autoheader}
93%{__automake}
94%configure \
7df9f4d7 95 --with-faxpp=/usr \
a0c0ca5d
JB
96 --with-xerces=/usr
97
98%{__make}
99
100%install
101rm -rf $RPM_BUILD_ROOT
5beb1686 102
a0c0ca5d
JB
103%{__make} install \
104 DESTDIR=$RPM_BUILD_ROOT
105
106%clean
107rm -rf $RPM_BUILD_ROOT
108
109%post -p /sbin/ldconfig
110%postun -p /sbin/ldconfig
111
112%files
113%defattr(644,root,root,755)
114%doc README TODO
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
118
119%files devel
120%defattr(644,root,root,755)
121%attr(755,root,root) %{_libdir}/libxqilla.so
122%{_libdir}/libxqilla.la
123%{_includedir}/xqilla
124%{_includedir}/xqc.h
125
126%files static
127%defattr(644,root,root,755)
128%{_libdir}/libxqilla.a
129
130%if %{with apidocs}
131%files apidocs
132%defattr(644,root,root,755)
133%doc docs/{dom3-api,simple-api,xqc-api,*.html}
134%endif
This page took 0.074492 seconds and 4 git commands to generate.