]>
Commit | Line | Data |
---|---|---|
a0c0ca5d JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # do not build and package API docs | |
4 | # | |
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 | |
7 | Name: xqilla | |
8 | Version: 2.3.0 | |
8435e735 | 9 | Release: 4 |
a0c0ca5d JB |
10 | License: Apache v2.0 |
11 | Group: Libraries | |
12 | Source0: http://downloads.sourceforge.net/xqilla/XQilla-%{version}.tar.gz | |
13 | # Source0-md5: 7261c7b4bb5a45cbf6270073976a51ce | |
14 | Patch0: %{name}-link.patch | |
15 | URL: http://xqilla.sourceforge.net/ | |
16 | BuildRequires: autoconf >= 2.59 | |
17 | BuildRequires: automake | |
7df9f4d7 | 18 | BuildRequires: faxpp-devel |
a0c0ca5d JB |
19 | BuildRequires: flex |
20 | BuildRequires: libstdc++-devel | |
21 | BuildRequires: libtool | |
22 | BuildRequires: tidy-devel | |
23 | BuildRequires: xerces-c-devel >= 3 | |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | %description | |
27 | XQilla - C++ implementation of XQuery and XPath 2.0 based on Xerces-C. | |
28 | ||
29 | %description -l pl.UTF-8 | |
30 | XQilla - implementacja C++ XQuary i XPath 2.0 oparta na bibliotece | |
31 | Xerces-C. | |
32 | ||
33 | %package devel | |
34 | Summary: Header files for XQilla library | |
35 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki XQilla | |
36 | Group: Development/Libraries | |
37 | Requires: %{name} = %{version}-%{release} | |
7df9f4d7 | 38 | Requires: faxpp-devel |
a0c0ca5d JB |
39 | Requires: libstdc++-devel |
40 | Requires: tidy-devel | |
41 | Requires: xerces-c-devel >= 3 | |
42 | ||
43 | %description devel | |
44 | Header files for XQilla library. | |
45 | ||
46 | %description devel -l pl.UTF-8 | |
47 | Pliki nagłówkowe biblioteki XQilla. | |
48 | ||
49 | %package static | |
50 | Summary: Static XQilla library | |
51 | Summary(pl.UTF-8): Statyczna biblioteka XQilla | |
52 | Group: Development/Libraries | |
53 | Requires: %{name}-devel = %{version}-%{release} | |
54 | ||
55 | %description static | |
56 | Static XQilla library. | |
57 | ||
58 | %description static -l pl.UTF-8 | |
59 | Statyczna biblioteka XQilla. | |
60 | ||
61 | %package apidocs | |
62 | Summary: XQilla API documentation | |
63 | Summary(pl.UTF-8): Dokumentacja API biblioteki XQilla | |
64 | Group: Documentation | |
65 | ||
66 | %description apidocs | |
67 | API and internal documentation for XQilla library. | |
68 | ||
69 | %description apidocs -l pl.UTF-8 | |
70 | Dokumentacja API biblioteki XQilla. | |
71 | ||
72 | %prep | |
73 | %setup -q -n XQilla-%{version} | |
74 | %patch0 -p1 | |
75 | ||
76 | %build | |
77 | %{__libtoolize} | |
78 | %{__aclocal} | |
79 | %{__autoconf} | |
80 | %{__autoheader} | |
81 | %{__automake} | |
82 | %configure \ | |
7df9f4d7 | 83 | --with-faxpp=/usr \ |
a0c0ca5d JB |
84 | --with-xerces=/usr |
85 | ||
86 | %{__make} | |
87 | ||
88 | %install | |
89 | rm -rf $RPM_BUILD_ROOT | |
90 | ||
91 | %{__make} install \ | |
92 | DESTDIR=$RPM_BUILD_ROOT | |
93 | ||
94 | %clean | |
95 | rm -rf $RPM_BUILD_ROOT | |
96 | ||
97 | %post -p /sbin/ldconfig | |
98 | %postun -p /sbin/ldconfig | |
99 | ||
100 | %files | |
101 | %defattr(644,root,root,755) | |
102 | %doc README TODO | |
103 | %attr(755,root,root) %{_bindir}/xqilla | |
104 | %attr(755,root,root) %{_libdir}/libxqilla.so.*.*.* | |
105 | %attr(755,root,root) %ghost %{_libdir}/libxqilla.so.6 | |
106 | ||
107 | %files devel | |
108 | %defattr(644,root,root,755) | |
109 | %attr(755,root,root) %{_libdir}/libxqilla.so | |
110 | %{_libdir}/libxqilla.la | |
111 | %{_includedir}/xqilla | |
112 | %{_includedir}/xqc.h | |
113 | ||
114 | %files static | |
115 | %defattr(644,root,root,755) | |
116 | %{_libdir}/libxqilla.a | |
117 | ||
118 | %if %{with apidocs} | |
119 | %files apidocs | |
120 | %defattr(644,root,root,755) | |
121 | %doc docs/{dom3-api,simple-api,xqc-api,*.html} | |
122 | %endif |